0% found this document useful (0 votes)
73 views4 pages

Sirion Labs Interview Questions Set-1

The document contains a series of sample interview questions and answers for candidates applying for QA and Automation Engineer positions. It covers topics such as the candidate's introduction, project involvement, framework details, Page Object Model concepts, test class explanations, reporting integration, and HashMap usage. Additionally, it includes questions for multiple candidates, focusing on their experience and technical skills in automation testing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views4 pages

Sirion Labs Interview Questions Set-1

The document contains a series of sample interview questions and answers for candidates applying for QA and Automation Engineer positions. It covers topics such as the candidate's introduction, project involvement, framework details, Page Object Model concepts, test class explanations, reporting integration, and HashMap usage. Additionally, it includes questions for multiple candidates, focusing on their experience and technical skills in automation testing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Sample interview questions:

For Candidate1:
1. Introduction about yourself
Hi I am Madhusudhan , I am a QA professiona/Sr Automation Engineer with 5.2
years of
experience. I have 3 years of experience in Test Automation and Rest with
Manual Testing
I have experinece in UI Automation using Selenium with Java with very good
understading
of the Framework with TestNG annotations assertions,Extent Reports,logs.
Working with GitHub
& Jenkins.
I have working experience on Insurance,HealthCare Domains. My last project was
Aviva
Insurance application for UK client for which I was involved in TestAutomation
1a.including details about your project involvement.
In my last project I worked as Sr Automation Engineer.
My major responsibilities included:

a.Creation of POM Pages


where we would find elements with diffrerent locator techniques
Writing application specific methods for the page
b.Creation of Automation Scripts
c.Execution of the Individual Scripts,fixing issues.
d.Execution of the Framework with different Suites
f.Analyzing reports,fixing issues,re-execution of the Framework
g.logging defects
h.Buiding application specific methods
i.Participated in all the Sprint activities including Daily standup
meeting,Sprint plan....

2. Describe the framework you have worked with.


What framework
TDD Approach
HybridFramework- Datadriven,Modular driven & Function
driven
Key Components - It as Maven Project - Java (Programming
Language)
- Selenium
(Automation Tool)
TestNG for its annotations & Assertions
Extent Reports as a tool for Reporting
Log4j for logging
Dataproviders for supporting data driven
testing which read the Data from Excel sheet and
runs the tests with different sets of data
Framework structure:
Generic Libraries
Application Specific Libraries
POM Pages
Modular - TestScripts
Framework Flow :We normally execute the framework through
Jenkins with Scheduled excecution
by executing the batch file/TestSuite.xml
and we can also execute it manually for
local run
Execution can be done by anybody even
without the knowledge of the Framework
It needs only configuration of the Execel
File(Controller.xlsx) and double clicking the Batch file.

3.a Explain the concepts of Page Object Model (POM) classes


The Page Object Model (POM) is a design pattern used in test
automation
A Page Object class represents a single web page or Screen(Mobile)
which encapsulates elements on the page which we find using
different locator techniques
and also contains methods related the specific page
The main advantage is it separates the TestCode from UI implementation
and also easy maintenance(UI changes can be easily handled)

b Explain the concepts of test classes.


a. A TestNG test class is a Java class that contains one or more test
methods
b. A test method is a Java method within a TestNG test class that
carries out a particular test case
is represented by @Test Annotation and also supports parameters like
Dataprovides
c.TestNG relies on annotations to define the behavior/control the flow of
Executions of test classes and methods.
d. **Configuration Annotations**: TestNG provides several other
annotations for configuring the behavior of test classes and methods
e.**Parallel Execution**: TestNG supports parallel test execution,
enabling you to run test methods concurrently, thus saving time during test
execution.
f. **Data Providers**: TestNG provides the capability to use external
data sources

4. Differentiate between the usage of findElement and findElements, providing an


example for each.

WebElement we= driver.findElement("xpath");

List<WebElement> lstElements= driver.findElements("xpath");

5. Discuss how you have integrated reporting within your framework.


a.Extent Reports for Reporting(Extent Libraries in POM.xml)
b.We use Listeners provided by TestNG i.e. ITestListener and this is
where
we record the status of each test execution
c.We mention the Listener implementation in TestSuite.xml
d.After the execution we can see the html report in the reports folder

6. Explain your approach to scheduling during test execution.


7. Highlight the distinctions between implicit and explicit waits.
Global Waits - PageLoadTimeout
ImplicitlyWait
Explicit Wait - Element/Group of elements to achieve a specific
condition
8. Can you elaborate on what a HashMap is?
HashMap is class which implements Map interface and is used to hold data as key
value pair
It implements HashTable data struture
HashMap is not indexed
Keys should be unique and can have 1 null key,Values can be duplicate

Map<Integer,String> mpVals = new HashMap<>();


mpVals.put(1,"A");
mpVals.put(2,"B");
mpVals.put(3,"C");

9. Please write the syntax for utilizing a HashMap.


10. Demonstrate how you can use a HashMap to print the following: {1=A, 2=B, 3=C,
4=D}.

Map<Integer,String> mpVals = new HashMap<>();


mpVals.put(1,"A");
mpVals.put(2,"B");
mpVals.put(3,"C");

System.out.println(mpVals.get(1));
Set<Integer> keys=mpVals.keySet();

for(Integer key:keys)
{
System.out.println(key);
System.out.println(mpVals.get(key));
}

System.out.println(mpVals);
}
11. Find the occurrences of the string: "aman aman aman aman".

For Candidate2:
1. Explain the framework you have worked on?
2. Describe the differences between the usage of find element and find elements.
3. Share your approach for identifying broken links in a webpage.
4. Provide the syntax for utilizing a hashmap.
5. Demonstrate different ways to reverse a string.
6. Remove any trailing spaces from the given string, for example: " abc fg/k".

For Candidate3:
1. Introduce yourself.
2. Discuss your recent project experience.
3. Provide an overview of your automation framework.
4. Over the past 6 months, how much has the automation coverage increased in your
project?
5. Explain how to identify broken links on a webpage.
6. Remove both leading and trailing spaces from the given string.
7. Convert and print a given string into an array.
8. Convert and print a given array into a string.
List<WebElement> lstLinks =driver.findElements(By.xpath("//a"));

for(WebElement link: lstLinks)


{
String href= link.getAttribute("href");

if(getStatusCode(href)!=200)
{
fail("broken link");
}

int getStatusCode(String href)


{

You might also like