Question_Set_1-14_merged
Question_Set_1-14_merged
9. What is Listeners?
System.out.printin(str.charAt(5)):
Explanation: Returns the character at the specified index (0-
based).
I nei strindexor's;
System.out.printin(str.indexOf("have")):
Explanation: Returns the index of the first occurrence of the
specified substring.
System.out.printin(str.indexOf("hello"));
Explanation: Returns -1 if the substring is not found.
ystem.out.printin(str.equals(str1));
Explanation: Compares two strings for equality (case-
sensitive).
System.out.printin(str.equalsignoreCase(str1));
Explanation: Compares two strings for equality (case-
insensitive).
System.out.printin(str.substring(0, 9));
Explanation: Returns a new string that is a substring of the
original string.
Bien a = _
System.out.printin(s2.concat("s"));
Explanation: Concatenates the specified string to the end of
this string.
String y = "World":
int a = 100;
int b = 200;
System.out.printin(x + y);
System.out.printin(a + b);
System.out.printin(x + y +a+b);
System.out.printin(a + b + x + y);
System.out.printin(x + y + (a + b));
}
ODET interview questions - 4yrs
String str="123-456-789"//123456789
7. What is abstraction?
SDET/QA Interview
1 Rajesh 2000
2 Akash 3000
3 Om 4000
2 Ak 5000
16. Fetch 2nd and then 3rd largest salary of emp with name.
17. Fetch duplicate emp ID records from the employee table.
1. Common question( Intro+ project + framework
architecture)
services domain?
Why?
Selenium?
5. How do you stay updated with the latest trends and best
practices in
automation testing?
int n, c, d, temp;
{
if (array[j - 1] > array[j])
{
temp = array[j - 1];
array[j - 1] = array[j];
array[j] = temp;
}
}
System.out.printin() ;
{
}
Selenium questions
{
public static void main(String args[])
{
int c, first, last, middle, n, search_element;
first = @;
last = nm - 1;
middle = (first + Last) / 2;
}
if (first > Last)
System.out.println(search_element + " isn’t present in the
list.\n");
Flipkart Interview
Questions-SDET-III
1. Introduce yourself
1 Rajesh 2000
2 Akash 3000
3 Om 4000
2 Ak 5000
16. Fetch 2nd and then 3rd largest salary of emp with name.
17. Fetch duplicate emp ID records from the employee table.
SQL Interview
4. Joins:
- LEFT: All rows from the left table and matching rows
from the right.
- RIGHT: All rows from the right table and matching from
the left.
5. Subqueries:
- Update records:
- Delete records:
8. Advanced Queries:
7. Can you please explain the memory location and how the
string is immutable?
15. | have a table and want to store all table data; which
collection should be used and why?
4. What are the various locators you are using in your day-
to-day life?
32. How do you get to know if the developer has fixed the
issues or not?
Questions - 2+ Yr Exp.
23. What are the steps for reporting the defect in Jira?
24. Define Structure of Selenium?
Interview Questions
7)
8)
String
"a3b2c2")
Ex: given()
-header("Content-Type", "application/json")
.param("key", "value")
Ex: when()
.get("/api/users/2")
Ex: then()
.statusCode(200)
.body("data.id", equalTo(2))
Use Case: Validating the status code & response body after
making a request
EX:
then() .statusCode(200) (as can be seen above)
5. body(): The body() method is used to assert specific
parts of the response body
EX!
then() .body("data.email",
equalTo("janet.weaver@reqres.in"))
Use Case:
Validating that the response body if it contains the expected
data
EX:
given() .log().all() when() .get("/api/users/
2") then() .log().all()
EX:
given() .header("Authorization", "Bearer token")
Use Case:
Including an authorization token in the request header
8. param(): The param(), or queryParam(), method is used
to add query parameters to the request
Example:
given() .param("page", 2)
Use Case:
Example:
given() .contentType(ContentType.JSON)
Use Case:
Specifying that the request payload is in JSON format
10. extract():
Example:
Use Case:
Extracting the response data to perform additional
assertions or operations
CitiusTech Interview
Questions-QA- 5+ yrs
23. What are the types of exceptions that will appear when
finding elements?
33. Scenario: There are five input boxes on a page, and first,
| have to select the 3rd input box, write some data into it,
and return it to 2 input boxes; how do you do it?
35. How do you run the test cases through the command
prompt?
a.
Interview Questions
For QA - Exp 5+ yrs
1st round:
What is REST?
What is namespace?
How do you know whether your test case passed the soap
web service test step?
How many requests have you tested in your soap till now?
Instead of having soap, why are the rest of the web services
required?
under pressure ?
Approach 1:
“I'm not a big fan of working under pressure but over the
course of my career | understand, but it’s a part of the
game. Have learned to manage it with proper planning and
time management and have always delivered under any
such circumstances.
Approach 2:
These are just some examples & thought starters for you.
Be ready to explain or give example for each of these
scenarios.
Tips to ensure Quality of
running tests.
GEERT, share how you implemented detailed reporting
Interview Questions
23. What are the steps for reporting the defect in Jira?
24. Define Structure of Selenium?
Selenium Interview
Questions
23. What are the steps for reporting the defect in Jira?
24. Define Structure of Selenium?
interview Questions
12) If both explicit and implicit wait are used in script then
which one would execute and why?
18..8TLC
what are the reasons that can cause a test case to fail
Daw
Frequently used Git commands
3. git add [file]: Stage changes for commit. Use git add.
to stage all changes.
CZ
Final Call for Automation Test Engineers!
1. Current CTC
2. Expected CTC
3. Notice Period
5. Current Location
xpath
cssSelector
id
name
partialLinkText
linkText
className
tagName
Ly
driver.manage().timeouts().implicitlyWait(Duration.ofSecond
s(5)) = when wait needs to be applied for each selenium
command before execution
driver.manage().timeouts().pageLoadTimeout(Duration.ofSe
conds(5)) = before execution of selenium commands, they
need to wait until the complete page loads
L, driver.switchTo().alert()
> getText(), accept(), dismiss(), or sendKeys(text) = to
interact with the pop-up or alert
> actions.build().perform();
history
L, driver.manage().window().setSize(new Dimension(245,
720)) = helps to set the browser window size.
: | prefer XPath with text or custom
adapt to changes.
How can you pass values from testng.xml into your test
case?
2. What
2
Fal
<
o
Q
ID
Name
Class Name
Xpath
CssSelector
//button[contains(text(), "Submit')]
Waits
Alerts
Frames
14. What are frames, and how do you handle them in Selenium?
Frames are HTML elements that embed another document within the current page.
Switch to the frame before interacting with elements inside it.
General Selenium
driver.manage() .window().maximize();
1) Introduce yourself
Example:
Interview Questions
1. Introduce yourself.
Page Factory:
Partial Link Text: Uses partial link text to find web elements
ID-
10. What is the difference between ‘git push’ and ‘git push
--force ?
2) Sprint
16. Explain the concept of Appium Grid and its use cases.
17. What is the purpose of “BeforeSuite’ and ‘AfterSuite’
annotations in TestNG?
Round # 1 :-
* Proceed to checkout.
Round # 2:-
Delete methods
in API Testing
GET
number
13) What are the Major challenges that come into the
picture when you do parallel testing using TestNG and Grid?
14) How do you integrate your automation framework with
the Jenkins pipeline?
15) What will happen if we remove the main method from
the java program?
18) Write the logic of retrying the failed test case with a
minimum 3 numbers of time in Automation Testing. Which
Interface do you use for it?
33) How do you set priorities for test automation, which test
needs to be automated first?
34) How do you set test case priorities for your team?
‘Content-Type’ header:
softAssert.assertT hat(response.getStatusCode()).isEqualTo
(200);
softAssert.assertT hat(response.getBody().jsonPath().getStri
ng("name")).isEqualTo("John Doe");
softAssert.assertAll();
EY GDs, Hyderabad -
QA Interview Questions
Interview questions
input; “[(])"
output: False
Q4, How will you test the broken links on a web page?
For Chrome:
Example:
Example:
Example:
1. INNER JOIN
Retrieves only the records that match in both tables.
Example: Employees who have recorded sales.
2. LEFT JOIN
Shows all records from the left table, plus any matches from
the right table. If no match, returns NULL.
3. RIGHT JOIN
Shows all records from the right table, plus any matches
from the left table. If no match, returns NULL.
5. What's the best way to sort an array of Os, 1s, and 2s?
->Apply the Dutch National Flag algorithm for linear-time
sorting.
Round 1:
Output: [5,6,7,1,2,3,4]
Round 2:
Input: {1,2,9}
Output:{1,3,0}
3. Regression Testing
Regression Testing ensures that recent code changes have
not adversely affected existing features.
6. Smoke Testing
Smoke Testing is an initial check to determine if the build is
stable enough for further testing.
7. Unit Testing
A type of testing that involves testing individual units or
8. Integration Testing
Integration Testing focuses on verifying the interfaces and
interactions between different modules of the application.
9. Functional Testing
Functional Testing evaluates the system against the
functional requirements and specifications.
UAT is the final phase of testing where actual users test the
software to ensure it can handle required tasks in real-world
scenarios.
Key Concepts
Abstraction:
Polymorphism:
pages:
utils:
tests:
reports:
screenshots:
keywords:
resources/testng.xml:
Advantages of POM:
Round 1: Coding
Selenium Automation:
12. How will you send the up and down arrow keys
as input in a textbox?
Handling Frames:
Miscellaneous:
21. Questions about daily roles and responsibilities.
#Round 1: (Technical )
#Round 2 : (Technical )
Explicit Wait
__. Thiead.sleep)
AARWN>
11. Difference between String and StringBuffer.
31.
BZ.
columns given).
33.
34.
35.
automation scripts?
36.
mis
38.
39.
40.
A1.
42.
43.
interview Questions
Q4. Have you ever been through a moment when you got
feedback from your manager and what were your actions
on it?
200: OK (Success).
Output: [5,6,7,1,2,3,4]
Round 2:
Round 3:
24) Which tool you will use to manage and organised jar
and lib in automation?
Answer:
Answer:
Interview Questions
Round 1-
What are the best practices that you keep in mind during
code review ?
Round 2 -
1. What is an API?
(A way for software systems to talk to each other.)
(All web services are APIs, but not all APIs are web
services. Web services use specific web protocols.)
(Each request has all the info it needs, making APIs more
reliable.)
20. How would you test an API that is not yet fully
developed?
(Use mock APIs or stubs to simulate the missing parts.)
Interview Questions
@ Fundamentals
mm For 6+ Years |
| Experience
sf Round 1: ( Technical )
Collection Framework
Total 3 Rounds
1% - Technical
24 — Technical
3rd _ HR/Managerial
1. Tell me about you and your Roles and Responsibilities
Subhasish Mishra
a OU BP WN
Difference Between
-> @BeforeSuite
-> @BeforeTest
-> @BeforeClass
-> @BeforeMethod
-> @Test
-> @AfterMethod
-> @AfterClass
-> @AfterTest
-> @AfterSuite
co
Interview
Questions For
SD DET/ Q QA
Auto mation
5+ Years Experience
Total 3 Rounds
1% - Technical
2"¢ — Technical
3" — HR/Managerial
~
10.
afb
12.
13.
14.
Learn with
ad
10.
11.
12;
13.
14.
15.
16.
17.
18.
Engineers
5+ Years Experience
WaWNP
10.
ai. ’
12.
13.
14.
15.
Round -1
pom ?
Explain the difference between implicit wait and
explicit wait ? Sieheeh webs
method overriding ?
10.
11.
12:
13.
14.
16.
17.
Round -2
Subhasish Mishra
Write a program to find duplicate words in
string ?.
project ? 2
Learn with
case ?
What is retesting and regression testing ?
Example: /html/body/div[1]/input
Example: //input[@id='username']
Questions - 6+ Yr Exp
Sf Round 1: ( Technical )
: What is 3 Amigos ?
«> : Suppose you have 200 test case and 49 test failed ,
how would you collect the data of only failed test cases
in testNg. Best way ?
4485454
sf Round 2 ( Technical )
«> : You have 10 links how will you print title of each link
using selenium. Give Optimal approach
«> : Write Java code to print all the array elements that
appears atleast 2 times. (means 2 or greater than two)
#Round 3: (HR )
Example: str = "i love coding" > Output: "| Love Coding"
Important QA Automation
Interview Questions
1a) Write a code to fetch data from one excel sheet and
dump into the other excel sheet ?
24) Which tool you will use to manage and organised jar
and lib in automation?
selenium ?
L1 Round:
L2 Round:
automation framework
#Folder 1 (src/test/java)
#Folder 2 (src/test/resources) [7
#Folder 3 (src/mainjjava) @
«> In this folder we have one package named
Interview Questions
aq Self intro
=a Project explanation
What is selenium?
What is Ui testing?
1a) Write a code to fetch data from one excel sheet and
dump into the other excel sheet ?
24) Which tool you will use to manage and organised jar
and lib in automation?
Automation Framework
1. Introduce yourself.
2. Write a test case for the scenario where the search
button on amazon was not working and you raised an
issue.
3. Write complete steps for navigating to google in
selenium ?
4, What is WebDriver ?Interface or class ?
5. Can't we write ChromeDriver instead of WebDriver and
why ?
6. Do you know the difference between class and
interfaces ?
7. Why can't we write class logic in the interface instead
of writing in class implementing it ?
8. Java program to find second max element from an
array ?
9. Please let us know your participation in developing the
framework for your project ?
10. Kindly explain for pojo classes and how to send
requests and extract responses in API automation ?
Write the logic ?
11. DO you know Jenkins can you build a pipeline ?
12. Can we use the script to create Jenkins pipeline ?
13. Write a Linux command to create a file ?
14. We have table
Round 1:
1. Describe your experience with various automation
testing tools?
2. How do you approach designing a robust automation
framework from scratch ? What are the key components
you can consider ?
3. Can you explain the difference between data-driven
testing and keyword-driven testing ? Provide examples
of when you might use each approach ?
4. What strategies do you employ for handling dynamic
elements or elements with changing attribution in
automation scripts ?
5. Have you worked with Continuous integration/
continuous deployment(Cl/CD) pipelines in your
automation projects ?If you so, describe your
Round 3:
3. Salary expectation ?
Zeta Interview Questions
Example
Input:
arr=[2,4,1,5,3,6]
Output:
Explaination:
Example:
Input:
arr=["eat""tea","tan","ate""nat"," bat"]
Output:
[["eat,"tea""ate"],["tan","nat"],["bat"]]
Example:
Input:
arr=[4,3,2,7,3,4,8]
Output:
5+ Years
Experience
| q
: al : | | |
r i | } |
Round -1
of joins available.
au
Round -2
N
“AOU Bh WN
Round -3
Interview Questions:
1
2
e
3
4
5
(
6
7
HCL Tech QA -
Automation .
Interview Questions
Round 1:
4. Reporting in Cucumber
7. Real-Time Scenarios
Questions for 5 to 10
years of Experience
Core Java:
Automation Frameworks:
-> What are the best practices for designing and testing
REST APIs?
BDD (Cucumber):
GIT:
OA Interview Questions
Questions For
Experience
Range 2-5 Years
@ Java Questions:
Questions for
4 Java & OOPs Concepts ¥
@ What is an interface?
“ Scenario-Based Questions ¥
1) Data-Driven Framework
2) Keyword-Driven Framework
3) Hybrid Framework
Combination of Data-Driven & Keyword-Driven.
Uses external test data along with predefined keywords.
5) Modular Framework
Interview Questions
1. Reverse an array?
7. Reverse String?
14. Find max and min with IF, you can use Collection?
15. How to sort array?
Use of OOP's concept in
Automation Frameworks
1) Introduce yourself
Java Automation:
Python Automation:
JavaScript/TypeScript Automation:
CI/CD Tools:
- Jenkins
- Bamboo
- CircleCl
- GitLab
- AWS CodePipeline
- Azure DevOps
FIS QA Interview Questions
1st Round
123°"
12*4
1*34
42 3:4
QA Automation Interview
L, String Manipulation:
* Reversing a string
* Palindromes
L, Array Manipulation:
* Reversing an array
* Finding duplicates
L, Number Operations:
* Fibonacci series
* Factorial calculation
L, Data Structures:
L, OOP Concepts:
11. How would you fetch the text from a text box in
Selenium?
overriding?
Rearrange Array:
Framework explanation?
24 — Technical
3° — HR/Managerial