Selenium Consolidated Questions
Selenium Consolidated Questions
Technologies'!A1
hnologies'!A1
# Questions
1 Can you brief about yourself.
2 What is the difference between hashmap and hashtable.
3 Difference between stringbuffer and string classes.
4 What is testing
5 What are different types of testing
6 What are the types of testing you know apart from functional and performance testing.
7 what is security testing
8 Where would you see yourself in the next 2 years
9 what is compatability testing.
10 What is code coverage
11 Why are you looking for change.
12 What are your achievements in your project.
13 What are the challenges you had in your project.
14 How would rate yourself in java out of 5.
15 What is garbage collector in java
16 How do you achieve multiple inheritance in java.
17 What is the difference between interface and abstract class.
18 Write a program to find the prime number
19 Some questions of reasoning, probability.
20 How do you update your knowledge.
21 What is stlc
22 Can you tell me the output of each component in STLC.
23 Have you done anything innovative in the past 3 years for which you felt very happy?
24 What tools you use in QA automation.
25 What is selenium.
26 Explain about your selenium framework.
27 What is the repositry you have used for objects in framework.
28 Can you write a sample webdriver script for login functionality of gmail.
29 What are the different annotations in TestNG.
30 What is the use of @BeforeTest annotation.
31 How do you access the methods in TestNG class file along with parameters.
32 I have a package which has 10 class files, i would like to run first 6 class files in parallel and rest 4 in sequential how do you that.
33 Write the structure of TestNG xml file for the above scenario with parallel value as "tests" and "classes"
34 How do you do parameterization in testNG
35 How is dataprovider different from passing parameters from testng xml file.
36 How do you handle dependency tests cases in testNG.
37 write the code for following: 1. Check if the given string is palindrome or not.
38 2. Check if the given integer is palindrome or not.
39 3. Write a sample code for hashmap and hashtable.
40 4. write a sample code for threads
41 Given an array int a[] = int a{1,2,2,3,4,4,5,5,6,7}
42 1. Find the duplicates in the above array and store in to a seperate array
43 2. Find the non duplicates and store in another array.
44 Please explain about your professional experience?
45 What is frame work are using currently?
46 Why POM<Page Object Model>?
47 What are the other frameworks have you worked?
48 What are advantages you feel with the current framework compare to the previous one you have used?
49 How do you rate yourself in selenium?
50 What are the different type of locators ?
51 What locators you have used the most?
52 Why you prefer id ?
53 What are the major you have encountered in your projects so far?
54 What are steps you have taken to overcome those?
55 How do you rate yourself in java?
56 How do you rate yourself in DB /query formation?
57 Have you worked in soap UI?
58 What are different kind of websites you have encountered so far? Like what kind of issue < according to the site design> ?
60 What are the challenges you faced in your project
Classification
General
Hash Map & Table
String Concept
General - Testing
General - Testing
General - Testing
General - Testing
General
General - Testing
General - Testing
General
General
General
General
Java Basics
Core Java
Core Java
Core Java
Quantitative Aptitude
General
General - Testing
General - Testing
General
General - Testing
Selenium - Basics
Selenium - Framework
Selenium - Framework
Selenium -
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
General
General
POM
General
General
General
locators
locators
locators
General
General
General
General
General
General
General
S.NO:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Questions:
How to handle the multiple windows
How to handle wait for particular element in the webpage
How to handle different methods in alert
write selenium code for take screenshot
How to fetch values from web table ?
What is dataprovider?
Write the code to read excel values?
Given some set of scenario to write testcase like we need to BVA techniques and testcoverage
scenario given like login to particular site via chrome browser+passing values and entering some text .given some steps and we need to write seleniu
some question which is related to testcase coverage
Selenium web driver code to open a Google page and search
command to run hub and node in Selenium-Grid, Exlplain each step
Write Screenshot code
Write Xpath collections syntax
Multiple selection in drop-down field write code
How to do File comparison in java write code
What do you know about Selenium Exceptions, explain?
write a code to compare webtable contents with Excel data using any API
Asked some Manual test case questions
Tell about professional experience
Draw the Framework design which u used in ur project
Scenario given Select country in country drop down and verify the state drop down whether corresponding states populated
What will be the Runner file when u execute the script using TestNG
Write java program to sum of positive numbers and negative numbers in given array
Asked about Sql queries
Classification
Window
Selenium- Wait
Alert
SnapShort
WebTable
DataProvider
DataProvider
Scenario Based
Scenario Based
Scenario Based
Selenium
Selenium-Grid
Slenium-screenshort
Xpath
dropdown
Java
Exceptions
WebTable
General
General
Selenium-Framework
dropdown
CoreJava
General
# Questions Classification
1st Round
1 Testing basics questions-refer the above link guru 99 , that ll be suffice
2 SQL basic questions- 2 3 questions related to PL/SQL
3 Automation related questions(2 3 questions from QTP)-rest ll selenium questions were easy
4 Logical Reasoning and Data Interpretation questions-Basic level
Technical Round
5 Tell me about yourself
6 About current project (mention the use of selenium and POM or hybrid framework)
7 Your role in Project
8 Challenges faced while automating
9 Java code
a. calculating axes for various salary levels , using if else
b. summing all the numbers which are given as a input in a String array-use a for loop and use Integer.ParseInt
c. using map find the occurrence of all the characters
10 What all type of testing you do for a bicycle
Round 3
HR Round
11 Tell about yourself in a chronological order
12 What you know about Agilysys
Technical Round
13 Concentrate on OOPS concepts , focus more on objective type questions in these areas
14 static blocks , static keyword related questions
15 About current project (mention the use of selenium and POM or hybrid framework)
16 Your role in Project
17 Challenges faced while automating
Java code
18 a. calculating axes for various salary levels , using if else
19 b. summing all the numbers which are given as a input in a String array-use a for loop and use Integer.ParseInt
20 c. using map find the occurrence of all the characters
21 What all type of testing you do for a bicycle
22 What you know about Agilysys
Round 3 HR Round
23 Tell about yourself in a chronological order
24 Agile process
25 When do we go for agile
26 What is Retrospection
27 Java concepts
28 Explain polymorphism
29 What is overriding
30 How's overriding differs from overloading
31 Explain your role in your project
32 How's bank lending process works
33 Program to find string palindrome
34 Delete vs truncate in sql
35 Why can't we use == to compare string
36 Types of testing methodologies
37 How to run 3 cases parallel and next three cases in series
38 Fibonacci program
39 Java star patterns
40 Agile methodology
41 Explain the framework you used
42 What is POM
43 what is testNG
44 What is annotations
45 What is Attributes
46 Why do we need testNG
47 SQL groupby
48 SQL having clause
49 Diff between groupby vs orderby
50 What's junit
51 Advantages of testNG over junit
52 How do you add two strings
53 How to declare strings using array
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
123
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Questions
Interface and abstractclass
string and stringbuffer
string a =""; string a= "";
diff btwn jvm and jre
diff btwn hashset and hashtable.
diff btwn arraylist and array
use of set - collection
method overloading and method overriding
polymorpism
assert and verify and waitFor
super keyword
find links and manipulation
print data in IDE - echo
Is string immutable.
stlc life cycle.
If you are getting a showstopper a day before delivery what would you be doing.
what ways you can declare string
use of javac and java
have you use data structures in your project
how do u rate yourself in java and webdriver
Round 1 and 2
1. Tell me about yourself
2. Explain the framework which you have used in your project
3. Rate yourself in selenium
4. What is an Interface ? Give an example in selenium
5. What is abstract method? Can we write code under abstract method?
6. How to read data from a dynamic web table?
7. How to right click and double click the button?
8. What are the locators available and how xpath is used. Write the syntax?
9. WebDriver is a class or interface?
10. Difference between list and set
Next Round at Ford:
1. Tell me about yourself?
2. Which framework you have used explain
3. Rate yourself in selenium and java
4. What is an interface? Can we create objects for an interface?
5. What is method overloading? Give an example in selenium and Explain where you ha
6. What is the 3rd way to inherit the properties of parent class like apart from creating
7. Write the code to initialize a chrome browser?
8. What are the challenges you faced while automating the project
9. What are the different collections available?
10. Given the scenario how you will write the code for page object model. Login page e
HR Round:
1. Tell me about yourself?
2. Why you are leaving the current organization?
3. What is your Current and Expected CTC?
4. Tell me about your family background?
5. Do you have any constraints on shift timing from 2 pm to 10 pm
Tell me about your selenium experience in projects
Write a program to remove duplicate characters from the string and print the rest
Write a program for Palindrome String
Why use Extent report for generating the reports and write a syntax for log
Explain about Listeners and their usage
Diff b/w String Buffer and String Builder
Limitations of Selenium
When should use Robot class, Actions class and JavascriptExecutor
About multiple inheritance
About Marker interface
Syntax for following and following-sibling in xpath
Diff b/w this and super keyword
hR Round:
About Multithreading
Ways to compare 2 strings
About Window Handling
Explain static and final
public class StaticClass(){
static int a;
public static void main(String Arg[]){
StaticClass obj1=new StaticClass();
StaticClass obj2=new StaticClass();
obj1.a=5;
obj2.a=7;
Sysout(obj1.a);
Sysout(a);
}}}
what will be the output
how static variable are stored in memory?
Give String "abcde" and output required "abc*de"
how do you handle frame in selenium
drivers available in selenium
What is POM.Explain the framework you use.
Just write a sample test case ,for example, for a login page and home page and explain
write the syntax for all three types of wait in selenium
What is maven and how you run a test script with Maven
explain the lifecycles involved in Maven
basic CSS selector syntax. And diff between CSS and xpath
what is the diff between selenium 2 and selenium 3.0
xpath :contains text_ syntax
Between following and following sibling
how will you go into this frame and enter text in the box and come back to the main wi
Alert is there in a webpage but the script is not performing any action on this alert. How
window handles program
how wil you perform roght click operation
diff between interface and abstract class
overloading and overriding and write a sample example for each
Dataprovider program
syntax for groups in TestNG
what are the testNG annotations and what is the sequence they gets executed
Program for reading data from Excel
Reverse string program
5678 "number" should be printed as 8765
Joins in SQL
Explain about the agile methodology followed in your project
what is the regression scenario you do in your project
Explain the top 3 challenges faced in your testing career and how you resolved it
Have you used Jenkins. What do you know about it
Why do we go for grid
how do you register a node and hub
how do you resolve a conflict in github
How do you customize the reports
Static and final keyword and its use
Oops concepts and explain where and how you implemented them in your project
What is Hash map and write a program
List and set difference
Tree, hash and linked hash difference
Webtable syntax
Can abstract classes be declared private
What is constructor and can it be overloaded
Explain your roles and responsibilities in Automation
Explain about your Framework used in your project
Explain the different types of report you use in your project?
How do you take screenshot,write the code for it.
What is data provider?
How you are sending test data to your test ? write the code to read the data from exce
Explain about array list & linked list
Explain static binding and dynamic binding
Explain inheritance,If Super class is put final what will happen
Write a program to reverse a given string, (I write a code using for loop).
Is there any other method you can use ?
Explain String Builder.
Do you have exp in Continuous Integration.
Classification
Core Java
Core Java
Core Java
Core Java
Hash
Array
Core Java
Core Java
Core Java
Selenium - Basics
Core Java
Selenium - Basics
Selenium IDE - Basics
Advanced Java
General - Testing
General
Core Java
Core Java
General
General
submit button should navigate to home page.
in your framework
Cloumn Questions: Classification
1 Explain abt your project
2 What are the roles and responsibilities of you in your project
3 What is "this" in java
4 What is the difference bitween == and .equals
5 How good your in xpath ? (out of 5)
6 xpath - preceding - following sibling when do we use that?
7 ues of pagefactory and where we will use it - advantages of using pagefactory
8 Webtable - from cell1 how to fetch cell2 value
9 windowhandling, How will u move to child window and and how to move back to parent window
10 code for snapshot and explanation for each line
11 what is data provider , why do we use it, which one your using (I told apachi POI ), why not JXL
12 What is Hashmap , where have u used it in ur project?
13 what is testng, why do you use testng and the advantages
14 Have you tested parallel execution in your project
15 What is maven - what is the purpose of POM.xml file
16 Have u used jenkin -why do you use it
17 Have u configured jenkin, what are the steps?
18 I have two submit buttons one on top of the page another one bottom of page. How you click on second button.
and it is not visible in page you need to scroll down how you will do ?
Questions
2 Which frame work you are using?
6 Write test cases for a scenario - eg.entering address
7 Framework - type/flow/structure?
8 Relative xpath - 3 nodes with same id value , 3rd node having additional character "xyz" - how to find relative xpath for the 3rd node?
10 Structure of the framework?
11 where to keep your script files?
13) Print below pattern. like star. if n=5.[n- user input, If n is even, then terminate prg. If odd proceed]
55
O/p will be like,
1
1 2 3
1 2 3 4 5
1 2 3
1
14) X ="Good Looking"[User input]. Have to find unique characters cout. Should not any duplicate.
56
For Ex. g - 2; o - 4; d - 1; l - 1; k - 1; i - 1; n-1. [Have to print like this]
15) Write a code to Reverse a String. Without using any builtin functions like reverse(), charAt()
57
16) Consider one div having 100 spans with unique texts. How to find expected text using Xpath.
58
17) Write code : Need to capture screenshot of the whole page. Need to scroll the page till end.
59
60 18) Write Code: Find the repeated words in a given string.
19) Write Code: Get values from Ui and compare expected values with from any database.
61
20) Write Code: Identify and form a string with unique characters. Ex. X=Good Looking. o/p = godlkin.
62
63 Following sentence was given:
64 0 1 2 3 4 5 6
65 Tommy attending an Interview while Bob Studying
66 a. Reverse only the words that are in Even number in the above sentence
67 b. Odd number words should remain the same
68 c. After the words are reversed, in the reversed words increment the odd
69 characters alone by one alphabet (ex:- a to b, e to f, etc)
70 Write a program to validate the credit card number having the following pattern:[2312] [932E] [12AB]
72 3. What is continous Integration? Tell something about it
73 4. What is the version tool you used in your project?
74 5. Scenario question:
75 There are three pages 1.Create customer, 2.Edit Customer and 3.Delete customer
76 Create customer -> Create the customer and output will be 5 field values
77 Edit customers -> Get search results , edit and output will be 5 updated field values
78 Delete Customer -> Delete customer (get search results and Delete )
79 How will you test these three pages?
80 How will you get and where will you store the dynamically changing 5 fields
81 How will you make sure you run one after the other ( first 'create customer' and then 'edit customer' then 'delete customer')
82 What is the Element Identifier tool you are using?
83 Your application supports only IE then how will you identify the objects?
84 Are you there in your project from the beginning or you joined later?
85 How did you perform POC? (proof of concept)
86 There are 100 Test cases and you want to run only 10 selective Test cases for regression how will you do that?
87 continuation of above question no.10, One test case i have to run as part of Regression and the same test case
88 should not run as part of Smoke Testing. Both Regression and Smoke should run simultaneously. How will you do that?
89 What is the use of Maven? Why do you want it ?
90 What are the challenges you had in your project? explain with the workaround?
91 Any other tool experience you have other than Selenium?
92 Tell me the Excel columns names in the keyword driven framework
93 In keyword driven framework how will you parameterize?
94 How many test scripts you written? and how long it will take to run ?
95 Explain your current project
96 What is the advantage of using Automation in your project?
97 Quality wise what is the benefit of using Automation in your project?
98 What is the reason for selecting SE for Automation in your project?
99 What is current role in Test automation?
100 What is the version tool you used in your project?
101 Which frame work you are using?
102 Page Object Model - Framework - flow/structure?
103 where to keep your script files?
104 How do you rate yourself on Java?
105 Write a program to validate the credit card number having the following pattern:
106 [AC31] [AD22] [DE14]
107 Write a Program on reverse the string on like blow the this.
108 Str = " My School is ABC"
109 Expected : "CBA si loohcs yM"
110 What is OOPS concept - explain
111 What is Abstract Class?
112 What is Interface?
113 What is different between Interface and Abstract class?
114 what is Final and Finally?
115 Can you tell me the example for Runtime exception and Compiletime exception.
116 How many time you can use Catch block while exception handling?
117 Syntax of cssSelector
118 What is the repositry you have used for objects in framework.
119 Difference between webdriver and remotewebdriver?
120 How does webdriver identifies UI Elements?
121 write the syntax on findElement?
122 Do you use to identify the Xpath? (Relative Absolute sibiling and Precding)
123 Write the xpath using Precding and Absolute?
124 Have you used TestNG?
125 What are the different annotations in TestNG.
126 What is the use of @BeforeTest/@BeforeMethod annotation.
127 How do you do parameterization in testNG
128 What is Data provider?
129 Write the program to reterieve the data from excel?
130 Arraylist vs list?
131 Have you used collections in your code ?
132 Explain the List and set?
133 Different between hashset and hashtable.
134 String to count indvual variable and return count only
135 Exception handling
136 Oops concept
137 How to Find dynamically generating object
138 Collections
139 Diff types of testing using automation
140 Project explanation
141 Tell about career evolution
Aspire systems:
142 1. What is the difference between test ng and junit
144 3. Write an xml coding in testng with groups?
145 4. How to print the values in console in hexagon shape?
1st round:
146 1. Tell about yourself
147 2. What are the frameworks that u use in your project
148 3. Explain about your project structure
149 4. Describe about property files. Where u will use
150 5. How I'll find an element in browser
151 6. Difference between findElement and findElements
152 7. What find elements returns and why
8. There is a page having username, password and login button. U have to give input and press login button, then the page redirects
153 to second page in second page your username should display the ur username resides inside a iframe
154 Explain this scenario using POM write the code for verify that the username is displayed or not
155 9. Write palindrome program "MADAM"
156 10. List the basic tags u have know in TestNG
157 11. Difference between @parameter and @Dataprovider
158 12. What do you know about listeners
159 13. Where u have used listeners and why u have used and how
160 14. Explain about constructors
161 15. Explain about exception and name the expectations that u have most encountered in your project
162 16. Method overloading and method overriding difference
2nd round :
170 2. How would you handle when you want to run a @test only after running another @test?
171 3. Explain about your framework
172 4. Explain the biggest challenge you have faced in automation?
173 5. How will you call a method without creating object for the class?
174 6. What is the default port your node uses to connect to the grid hub?
175 7. Given a number, write a program to find the next palindrome number.
176 8. Difference between xpath and css selector
177 9. How will you compare a string and string buffer?
178 10. Difference between treeset and linked hashset
179 11. Why does collections dont accept primitive data types?
180 12. What is BDD framework? And why do we use that? ( since I have mentioned that I worked on it )
181 13. How will you type ten different names one after the other in next line in a text box using selenium?
182 14. Is video recording possible with selenium?
183 15. How will you convert the existing qtp scripts in a project to selenium scripts
16. How will you design your testng.xml if you want to run all your test cases in 15 different machines in parallel (based on my
184 framework explanation)
Round 2:
185 1. There is a widget commom across pages in your application. How will you handle that? Write code for that?
2. There is a dropdown on which you can also type. When you type something it will get added if it is not there inside. If it is already
there it gets added with an index.. the index will keep on incrementing. Now write a code to type your name thrice sequentially and
186 also check whether al the dropdown options are arranged in ascending order.
187 3. What is abstract method? Can it hold all non abstarct methods?
188 I dont want anybody to extend my class.. what ll u do?
189 5. What is call back in java?
190 6. Have you used method overriding in your project? Explain
191 7. Have you ever heard about java 8? Tell me abt it
192 8. What is anonymous class?
193 9. What is finalize in java?
194 10. Write a program to find whether a particular widget is loaded correctly or not?
195 11. How will you handle windows authentication pop up?
196 12. What is dynamic binding?
13. I traverse through my application randomly which opens new browser eachtime. How wil u handle it? And how will u toggle to
197 the nth window at once?
198 14. How will you manage/overcome merge conflicts when u push ur code to git hub repo
199 15. Best challenge you have faced?
200 16. Some questions on my secondary skill to chk whether I have really worked on it.
Round3 with HR:
This round was just to know you better as a person and a professional. Just be on your natural spontaneity. And keep d conversation
201 lively.. they just chk whether you are really vibrant n sound without asking technical questions.
202 How to write for backword and forward cambatiblity?
203 Like here two version of IE browser is v9 &v10 , So here our written code should suppport to both version
204 Star triangle
205 String reverse
206 String palindrome
207 Fibonacci series
208 Find the number of links
209 How to know that a page is loaded
210 Palindrome number
211 Get element from a web table
212 What is regression testing
213 One SQL query
214 Select a drop-down value (Y/N) according to the respective name and emp id value present in the table
254 why you used common methods in separate class instead of using in Pages classes directly.
255 what is reusability
256 Write program which we used for sendkeys in SE methods.
257 Write program for login page.
258 Write xml for which has 3 suites.
when 1st suite should have all classes.
2nd suite should have one class.
3rd suite should have 1 class with only 4 methods.
259 Is there possibility to have multiple data providers for same testcase.
260 what is thread count
261 if we have 100 test cases and have thread count as 150 what will happen
262 If we have 100 test cases and how we exclude the 57th & 59 th test cases alone.
263 what is grouping , write the code for grouping
264 given scenario and asked to program and xpath.
265 What is maven
266 what is the use of page object model.
267 Write the hierarchy of testNG annotations and explain about it.
268 what is @findby annotation.
269 Code to print the length of the string without using any inbuilt methods.
270 How to run the same test for different test data's? Using testng?
271 How to run the same test thrice for same test data?
272 write a code fetch all the Dropdown values, remove the duplicates and null, get the occurances of duplicates.
273 What do you about Agile methology ?
274 How to run the same test for different test data's? Using cucumber ?
275 how you will achieve to run the same test thrice for same test data using cucumber?
276 Read Two values from excel, sum it up and write it in 3 cell
277 Difference between assert and soft assert
278 Fetch the department which has more than 1 employee using DB
279 Fetch the department which has max of salary
280 Fetch the employee name starts with a letter
281 Difference between WebDriver and remote Web driver
282 How
2000 will
testucases
run your
fromframework,?
10 modules,Howonly much time it
5 modules will take
needs to betoautomated
run?? Parallely or sequencially?
in chrome, Edge and safari(iPhone).. What estimation you
283 will give, what are all the criteria you ll look into.?
Have you ever done reviews? If ask u to review the selenium code, what are all the major 5 concepts u will Look into it and
284 eliminate.
Classification
Selenium - FrameWork
Selenium WebDriver
Selenium - FrameWork
Selenium - Xpath
Selenium - FrameWork
Selenium - GITHUB
Core Java
Selenium - Excel
Selenium WebDriver
Selenium WebDriver
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium - Grid
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
General
Selenium - FrameWork
General - Testing
Selenium - FrameWork
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
General - Testing
Selenium WebDriver
Selenium - Xpath
Selenium - Excel
General
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium - Xpath
Selenium - Snapshot
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
General - Testing
General
Selenium - POM
Selenium - POM
Selenium - POM
Selenium - POM
Selenium - POM
Selenium WebDriver
Selenium - TestNG
General
Selenium WebDriver
General
General - Testing
General - Testing
General - Testing
General - Testing
Selenium - Maven
General
General
Selenium - FrameWork
Selenium - FrameWork
General - Testing
General
General
General
General
General
General
General
Selenium - POM
Selenium - GITHUB
General
Selenium - Regex
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium - Locators
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - Xpath
Selenium - Xpath
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - Excel
Selenium - Excel
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
General - Testing
General
General
Selenium - FrameWork
Selenium - TestNG, Maven
Core Java
General
Selenium - FrameWork
General - Testing
Selenium - POM
Selenium - Locators
Selenium - Locators
Selenium - Locators
Selenium - POM
Core Java
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Core Java
Core Java
Core Java
General
General - Testing
General
Core Java
Selenium - FrameWork
Core Java
Core Java
Selenium - TestNG
Selenium - FrameWork
Selenium - FrameWork
Core Java
Selenium - Grid
Core Java
Selenium - Xpath
Core Java
Core Java
Core Java
Selenium - FrameWork
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - TestNG
Seleium - Windows
Selenium WebDriver
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Seleium - Windows
Selenium - Alerts
Core Java
Seleium - Windows
Selenium - GITHUB
General
General
General
General - Testing
General - Testing
Questions Classification
1 I attended amazon but didn't through 1st level.
2 written test questions:
3 1. Test case enumeration for Credit card authorization system. General - Testing
4 2. Write code to remove duplicates from a string. Eg. Input: Call taxi. Output: Cal ta
Core Java
5 3. Write code to find largest sum from contiguous sub array. Core Java
6 4. Generate test data for time difference function. General - Testing
7 5. Debugging scenario for YouTube video not playing General - Testing
17
22
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Questions
How well you find elements in webpage.
How to find broken links
Frame windows and alert
Listeners concept
Collection
testng concept
Actions (mouse over)
Exception concept
Xpath (relative and absolute)
Snapshot code
What is data driven framework and why it is called as data driven?
What is keyword driven?? Bdd is a keyword driven or not?
Write fibbanoci series till 1000 and do dry run.?
Selenium Grid?? Why do use that?? If you say crossbrowser and platform testing?? We can do it in different machines with different capabilities?? Why grid?
Why Jenkins?? Schedule and running the job can be done through window handler, then why u still need Jenkins?
Write a sql to fetch the Dep name which has the maximum no of managers.?? Have to use group by and sub query concepts.
Classification
# Questions
1 Manual testing scenario
2 A program to find more number of positive or negative in an integer array and Preparing test data
3 How would you click on an element which is not on the visible part of the screen
4 10 coins puzzle
5 Write test case for Amazon shopping cart and account
6 Find xpath for a link
7 How would you verify ui using automation
8 What's test scenario and test case
9 How would you prepare test data
10 What is test data optimization
11 Explain test data optimization techniques
12 What's your role in your project
13 What's the reason for change of job
14 Given an integer array, find which two elements gives the maximum product
15 Given an integer array, find which two elements gives the maximum product(Using Sorted Array)
16 Tell me about yourself
17 Reason for job change
18 Given a test condition they asked us to write scenarios and clarification on that test condition.
19 Write valid and invalid data to check an email id field.
20 Write a program to find 2nd largest element in an array.
21 What do you know about Encapsulation?
22 Different types of testing, defects, agile process…
23 About your project and your role..
24 more question on agile and all basic testing questions
25 Given some testing scenario how to handle it.
S.No: Questions:
1 The term push and pop is related to the - a)array b)list c) stack d) all of the above 2. FizzBuzz
2 FIZZBUZZ Write a program that prints the numbers in the given range.
But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”.
For numbers which are multiples of both three and five print “FizzBuzz”. Print a new line after each string or number.
3 Input Format First line will be the number of testcases, T. Next line will have T integers, denoted by N.
Output Format For each testcase, print the number from 1 to N. But follow the rules given in the problem statement.
Constraints
1 <= T <= 10
N is an integer.
4 WAP to get OS name and user name using Java
5 WAP to get data from db And put it in hashmap
6 WAP to get data from xml file and put it in hashmap
7 WAP to get data from csv file and put it in hashmap
8 WAP to get the count of radio buttons which is not selected in a page
9
10
Classification
Java
Java
Java
Java
Java
Java
Java
Java
Java
Questions
Round - 1:-
1 Tell about yourself
2 Explain your experience in Automation
3 Role in Automation
4 Write a program for registration page : Click on register link in web page. Then fill all the fields with external data source. Finally click on submit.
5 Explain each and every line. what it will do [4].
6 In the same scenario[4] , how you read the data for 10 different test data.
7 How to get count of all the links in web page
8 How to read the data from Notepad.
9 How to read the file which is present in Network [Like SharePoint].
10 Explain manual testing cycle from requirement
11 Defect Life cycle
12 How to instantiate Chrome driver.
13 Did you attend any Client calls from Onsite
14 What is Maven, Git, Jenkins
16 Round - 2:-
17 Limitations of Selenium
18 Write a code for taking screenshot
19 How to handle Alert
20 How to handle multiple windows
21 Annotations in TestNg
22 Hierarchy of TestNg
23 Diff bw 'Defect Retesting' and 'Regression Testing'
24 Do u know Database testing
25 Which project is in which domain
26 If u have 100 scenarios. In that u have mixture of smoke and sanity scenarios. want to run smoke alone. How to handle this with TestNg.
27 What are the reports u r maintaining
28 1) Tell me about yourselF
29 2) How to read data from an excel? Write code and explain?
30 3) What are the annotations available in TestNG?
31 4) One question on when to use 'Success percentage' attribute in TestNG
32 5) Explain Defect Lifecycle
33 6) sceniario: clicking on a link in a Window will take you to another window.i want to click a link in another window. how will you do that?
34 7) what are locaters available in Selenium? Which is the least prepared, most prepared & how?
35 8) what are the challenges you faced in selenium?
36 9) what is the report used in your project?
37 Explain what is BDD,TDD, DDD
38 Explain the feature file
39 What are the keywords in feature file.
40 How would you pass the parameters from outside a class.
41 Difference between find elements and find element.
42 What is relative xpath.
43 Explain following-sibling.
44 How many locaters are present in selenium and explain each with an example.
45 How would you do drag and drop
46 How will you find the total number of url's in a page
47 I was asked what version of java that is been currently used in my projects..and the question was the difference between the current version I'm using and it's p
48 Given an array
Int a[ ] = { 1,4,8,3,7,6,2}
How would you sort the first four elements alone.
49 How will you create a jenkins build.
50 What are the plugins required for Jenkins.
51 Explain about the version controlling software you use in your projects.
52 What is bit bucket.
53 Write a program to find whether a given number is prime or not
54 Program to change lowercase letters to uppercase and vice versa.
General
General
General
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
General - Testing
General - Testing
Selenium WebDriver
General
Maven, GIT, Jenkins
Selenium WebDriver
Selenium - Snap shot
Selenium - Alert
Selenium - Windows
Selenium - TestNG
Selenium - TestNG
General - Testing
General - Testing
General
Selenium - TestNG
Selenium - Report Generating
General
Selenium - Interation with Excel
Selenium - TestNG
Selenium - TestNG
General - Testing
Selenium - Window Handling
Selenium WebDriver
General
Selenium - Report Generating
ent version I'm using and it's previous version..what are the new features ?
# Questions
1 write a java program to print pyramid ,
2 reverse a number but need to store in a single number I/p: Dipti Ranjan Das,o/p: D.R.Das,
3 differents between Hashmap and HashTable,
4 read from excel,
5 autoIt,
6 mouse hover, open a browser, go to file and save it.
7 How to handle tooltip,
8 write a program to read from PDF,
9 questions from C and C++ as I mentioned in my CV. Handle windows and we table..
10 Write a Sorting program for String without String inbuilt method
11 Write a singleton program in java with double check locking
12 Write a Binary search program in java using recursive algoritm.
13 Write a java program to implement single linked list and perform adding a new node and
print single linked list in reverse.
14 write a java program for serialization and deserialization .
15 Write a java multithreading program to print even and odd using wait() and notify()
16 Write a email validation program in java
17 Write a java program to find the maximum number in an array
18 What is user defined excption and write a java program to create your own exception
19 Write a java program to find the number of times values duplicated using HashMap for below
String array: { "111","222", "333","444", "555", "222", "111", "333", "111", "222" }
20
Classification
java
java
java
selenium
selenium
selenium
selenium
selenium
Java
java
java
java
java
java
java
java
java
java
java
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Questions
Capgemini interview questions
1st round
explain ur framework
How to handle alerts
Switch to last window - write code
Drag and drop
Some question in action class
Maven advantages
How to handle secured HTTPS site - Firefox profile
Class
2 nd round:
Write code for read excel
Write code for connecting DB
What are the challenges u faced while creating framework
What else u contributed in creating framework apart frm Selenium code.
Explain ur framework , given paper and pen to draw framework structure - explained 20 mins
For some ppl thy asked Java question too. Oops concepts, interface constructor , abstract class, etc
Framework explanation
Explain about Bug life cycle
How to switch the frame
Write a code to Read the data from excel.
How to get the value from dynamic web table
What isRe test and regression testing
What is cucumber? What do you about cucumber
Explain Cucumber tags
What is Hooks ,What is dryRun
What is scenario outline, scenario
Write a java program to print the unique char in a string
Classification
Selenium - FrameWork
Selenium - Alerts
Seleium - Windows
Selenium WebDriver
Selenium - Actions Class
Selenium - Maven
Selenium WebDriver
Core Java
Selenium - Excel
Selenium - Database/MySQL / Oracle / SQL
Selenium - FrameWork
Selenium - FrameWork
Selenium - FrameWork
Core Java
S.No: Questions
1 Code to extract html source
2 Find out file and delete which is older than 12 days
3 Lower case to upper case and viceversa string conversion
4 Quit and close required parameters and does it returns any value
5 Tell about @factory and @dataprovider annotations
6 Get screenshot with vertical scroll bar (hint - external jar can be used)
7 Double and int round off question
8 If program execution is slow, checkpoints used ?
9 Regular expression for converting string to integers (words given )
10 To write x path for selecting 2 ND row 2 ND column in a webtable opened in second window
11 Automation of window based apps
12 Some maths puzzles
13 Tell me about ur Framework
14 Explain about Pom.xml
15 Explain Testng annotations
16 Write a java code to convert GoOd moRniNg to gOoD MOrNInG without using tolowercase and touppercase
17 Java code to find files in folder and delete the old 12 files.
18 Write script to Get screen shot with vertical bar
19 Find HTML source of an web element
20 Write regular expression to get Dynamic 7 integer in string-testing1432567src
21 Existing code is slow how to improve Performance.
22 Set size of the web browser in the script. Set size 420,000
23 Difference between @factory and @dataprovider
24 Script to Get currently focused webelement.
25 Difference between close and quit.
Classification
Java
Selenium
Selenium
Selenium
Java
Selenium
Selenium
Selenium
Selenium
Selenium
Core Java
Core java
Selenium
Selenium
Regex
Selenium
Selenium
TestNG
Selenium
Selenium
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Questions
Can you please explain briefly about you, the projects you handled and the role you played
Can you explain about the framework used in your project
What are the locators that you have used
I want to goto a window , Gettitle of that window, again to goto another window and get its title and return back to the main window. Can you please explain the log
what is a fluent wait
what is difference between webdriver wait and fluent wait
What will implicit wait do
what is overloading. Can you overload a main method
I want to run a program without main method. How to do it
When we use Actions class what is the import that is done in eclipse. Is it selenium import or java import
Syntax for Actions class and how will you use it
Drag and dropby and click and hold with example
Why do we use build.perform in Actions class
What is a constructor
What are access modifiers and their use
What is super and final keyword
How to create object on an interface
What is diff between abstract class and interface
Have you worked in collections
What collections you have used in your project and why you used it
Webtable implementation
What wil you do in git after commit
String builder Nd stringbuffer
What is aggregation
What is innerjoin
What is STLC
What are the types of testing you know and how have you used in your project
Are you ok to work in manual testing project for sometime
Explain about agile methodology
Challenges faced and how you handled it
What all the different phases of STLC(Software Test life cycle)
List out different techniques used in manual testing and explain them in simple words
Choose any one of all the listed product and write out negative scenarios which you think that will fail the product.
Choose any of the product of your choice (Black Pencil ,mobile phone ,white paper )
Classification
# Questions Classification
1 Explain about framework
2 project Explaination
3 defect tracking tool- jira
4 how to handle window based popup
5 how to handle the adveriste in webpage
6 how to check whether radio button is clicked
7 how to take screenshot
8 rate your self in java and selenium
9 Basic question on C#
10 Do you worked in cucmcmber framework
11 what is test driven approch
12 what is page object model
13 how to handle alert
14 xpath sibling following
15 how to scehulde a job in jenkin
16 where u strore test data
17 Microsoft testing tool
18 Do you know paython
19 what is ALM/ Quality Center
20 Bit bucket
21 Jbehave
22 have you do image testing
23 how to get report of only failed test case in testNG
24 how you write script for email creation ( if email alreadsty exists it should not allow to create )
25 Challange face in selenium
26 Code to read Excel file
27 @after suite vs @before test
28 how to determine how much testing can automated. ( explain with example )
29 why you choose selenium for automation
30 your role and reposiblitiy in project
31 What is BDD approch
32 how much test case tested manually in ur porject
33 write a code for any method you implement in your project.
34 where you store you test data and test case
35 Agile
36 Scrum
37 sprint
38 user stories
#
1
2
3
5
6
7
8
9
10
11
12
Questions
In a test, what is the difference between a failure and an error? How do you differentiate between the two in test
You have a test that is failing, what do you do?
You are testing a Java Object that is supposed to be a singleton. How do you prove that it was implemented correc
Given the URL:
https://qarocks.comcast.com/v1/user/77881f73-f3fb-4d92-9e7e-fa556b4c0247
What would you expect GET to do and what would you test.
Given the URL:
https://qarocks.comcast.com/v1/user/
With a JSON body that represents a user, what would you expect POST and PUT to do and how would you test them
What is a feature file in Cucumber and what does it contain?
Given the class belowWhat are the access limits of var1, var2, var3 and var4? How would you test each one?
package sandy.beach;
public class Seashell {
public int var1 = 1;
protected int var2 = 2;
private int var3 = 3;
int var4 = 4;
public Seashell() {
}
}
You are responsible for testing a system composed of 5 different modules that pass data from A -> B -> C -> D -> E.
When testing a web UI with Selenium you often use findElements(args)to aid in validation. How do you choose wh
Given an API with the following signatures:
public int addUser(User u)
public User getUser(int userId) throws NotFoundException
Write a jUnit or TestNG test that covers the positive ‘happy path’. Assume, for this question, that the User constru
Write a test for the above that covers the exception flow of getUser().
The standard Asserts in jUnit and TestNG have a variant with an extra String parameter (e.g., Assert.assertTrue(boo
Classification
st approach (types of tests, etc.) so that you can test things as they are delivered?
he element you wan
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Questions
Configuration and Execution of testcases using Selenium/Maven/TestNG/Jenkins
Core Java
Core Java
Core Java
Core Java
Core Java
Questions Classification
1 Palindrome - code Core Java
2 Print all 111, 222,...999 no's.. Code Core Java
3 Tell about yourself General
4 Handle drop down Selenium WebDriver
5 How to switch bw windows Selenium - Windows
6 Automation experience in your project General
7 Reason for leaving CTS General
8 Draw framework diagram in your project Selenium - FrameWork
9 Type of reports Selenium - Reports
10 Binary search
11 Armstrong number
12 Sorting
13 Remove duplicate string from Array
14 Print a triangle program for value 9
15 Given 4 strings,perform collection operation.
16 Choose the minimum value in the given array, if the value given
17 Use recursive function to write a program
Second round F to F discussion..
18 Tell me abt ur self and ur project
19 Tell me abt ur Framework
20 diff between Webdriver and Remotewebdriver
21 TestNg and Apache POI
22 Java collection
23 SQL related questions
24 write a coding to read excel content......
28
Questions
1 What is the framework you are using?
2 Can you explain the framework functionality? deep dive..
3 Your role in your automation team.
4 Do you know Robot framework?
5 Explain TestNG XML structure.
6 How do you connect to a database in java
7 What are the different ways your database url can be ? apart from http://
8 Is it mandate to close statment object in DB code ?
9 Write code for db connection and walkthrough the code.
10 Can you explain about List Interface.
11 Usage of List interface (explained with select class).
12 Can you impose selectByVisibleText / selectByIndex methods on list interface reference created (continuation to above).
13 Without those methods how do you select the dropdown values
14 Ans: (ls.get(index).click()) where ls is the getOptions() reference.
15 How do you select the 2nd select value from the dropdown (selectByIndex)
16 How do you do parameterization in testNG.
17 Give an example for dataprovider.
18 some questions on Object class (can it have array type? why? etc)
19 How did you do parameterization in your framework
20 Why specifically JXL? whynot APACHE POI.
21 What is the difference between jxl and apache poi.
Can you write a sample code using JXL and walk through the code (they are very keen on the methods along with parameters and try to
22 confuse us).
23 What type of reports you generate.
24 What are the ways in you can create your own customized html report (Ans: XML to HTML / directly in notepad)
25 Can you design a framework on your own and what would be your considerations ?
26 Comparing 2.45.0 jar and 2.46.0 jar what are the advanced features in 2.46.0?
One webElement "India" (text) having same properties in all the builds. But the location of "India" keep changing in each build. Write code to
27 find "India" in every build and click on the checkbox next to it?
28 How will you verify the colour of the heading in a webpage is as expected (colour)?
29 There are multiple frames in a webpage. Say three frames one within another, how will you find an element in the inner most frame?
30 What is WebElement? Is it interface or class? explain?
31 What is compile time and Run time polymorphism?
32 One Element is not identifiable in a webpage. Why it is not identifiable in a webpage? (Note: It is not an Alert)
33 Where will you have your locators in your framework?
34 How will you pass data without using 'Sendkeys' method?
35 What are the methods available in an 'Alert'?
36 How will you click on a button without using 'Click' method? [Keys.ENTER not expected]
37 Difference between Interface and Abstract Class?
38 Load a browser and go to google page
39 I have 100 test cases with me. How will you estimate?
40 How many Scripts you will automate per day ? How many Simple, Medium, Complex test cases?
41 Why do you need a framework? what is the use?
42 Have you used Java Executor?
43 Have you created Abstract class in your project?
44 "driver.findElement(By.id)" - What is driver here? What is 'By' here?
45 What is the IDE you are using? How will you get the Jar files in it?
46 How will you read data from an Excel? write code and explain?
47 What is the folder structure of your framework? Explain?
48 How will you get all the links in a webtable?
49 1. Explain all the oops concept with real-time example
50 2. Write a sample script in selenium for login pages with all coding standards
3.Consider you have 200 test cases and it will take 4 hours to complete. After run 100 test cases got failed, so how do you rerun only the
51 failed test cases ?
4. If you want to rerun the test exactly after the failure you need to call the method that failed. You can get that method name from
52 ITestResult object.
53 5. If you want to rerun all the failed test cases together, then you can give the testng-failed.xml as input xml after the first execution
54 1.
2. Can
Givenyou
andesign a framework
application from scratch?
with 100-200 teat cases and it is stable, what all would you consider for designing a framework and how would you
55 start.
56 3. Explain your framework structure
4. How will you initiate your reports? (I told him about one line that we use to initialize extent reports). Is this one line enough to initiate the
57 reports?
58 5. Draw a block diagram of how tour framework looks like. (He then said no need as I was again going like framework folder structure)
59 6. How are your data sheets? In excel or any other format?
7. I have an excel data sheet with certain number of rows and columns. Can you write a code to read data from that and store it into any
60 collection? (I used Array List)
61 8. Why do you use list here? Why not anything else? Why not hash map?
9. If there are two elements in a Web page (they have unique identifiers for themselves), one of them is underlined and other one is not.
62 How will you identify the one that is underlined.
10. If i have a Web page, when I click on a link in d Web page, another page opens in a new window. Inside that window there is a frame that
63 has another frame within it. Tell me the steps to get the text of an element inside the second frame (starting from first window)
64 11. What if I have to close the second window?
65 12. What Is the difference between quit and close?
66 13. If I have any manually opened browsers, will quit close them?
67 14. Do you know the evolution of selenium? From selenium RC? Do you know selenium RC backed webdriver concepts?
68 15.
16. Why
Whendoyou yougive
usedependencies
maven? Haveinyoutheworked withwill
POM.xml, continuous integration?
maven check for the desired dependencies with your local system or with the
69 Internet?
70 17. What is POM? (Page Object Model). What is the difference between POM and the normal project models?
71 18. I have a home page, search page and results page. Do I need to create objects for each page to access the elements of the page?
72 19. If I'm not creating object for the search page how will I be able to access the elements of that page?
73 20. If my home page is not available, will I be able to move to the further pages?
74 21. What are the exceptions that you have come across?
75 22. How do you handle those exceptions?
23. Suppose in a page, when I click on a link, an alert might appear asking it to wait... Or it may not appear in some cases. How will you
76 handle this situation?
77 24. Reverse the string Cognizant without using reverse Method()
78 25. Cognizant
79 1) Find the length of the String (length)
80 2) Loop from length - 1 to 0 (for length-1 0)
81 3) Get the character of the position - one at a time: right -> left (charAt(i)
82 4) Concentate the character (+ / concat)
83 5) Print
84 26. Find out the most repeating character in the string Cognizant
85 27. Find out the least repeating character in the string Cognizant
86 28. Print diamond in the console
*
***
****
***
*
87 29. Find the position of 2nd last character 'C' in the string "Congizant India Deveopement Centre"
88 30. Write a java program to replace aeiou (with 1,2,3,4,5) in the given string "Photon Info Tech"
89 1.Tell me about the framework used in your project
90 2.How to read data from excel ?
91 3.how to handle multiple windows ?
92 4.TestNG annotations and arrange their structure
93 5.how to ignore test cases?
Java Questions:
94 1.whether interface can have constructor ? Explanation reqd
95 2.how to access private data members from outside the class ?
96 3.
1) difference between
The interviewer hashmap
asked and table
how strong ?
in Selenium and Java to rate myself from 0(Least) to 5(Strong), i answered Selenium as 4 and Java as
97 2.5/3.
2) difference between findelements and findelement ? What is the error occurs if the locator is missing on both will it give error / null /
98 exception for both
99 3) Difference between Array list and linked list?
4) What is Maven?, how we use maven in Eclipse and where, What is the syntax in pom.xml? they are expecting the exact tag names in
100 pom.xml..
101 5) What is TestNg how we integrate TestNG with selenium and how it is linked in POM.xml everytime?
102 6) they given web table like below and asked the Xpath relationship between them,
<tbody>
<tr>
<td> 1 </td>
<td> 2 </td>
<tr>
<tr>
<td> 3 </td>
</tbody>
in the above code tell me what is the relationship between 1st <td> with <tr>, what is the relationship between 1st <td> with <tbody> and
what is the relationship between the 1st <td> and 2nd <td> in Xpath? - Mainly they are expecting the terms used to call like siblings,
103 predecessor / parent and ancestor....
7) why Array list is faster then Linked list? since both are locating the Index what is the difference?only these 7 questions they asked me....
104 other questions asked for other candidates are as follows
105 1) What is Page object model project structure? and benefits over other frameworks?
2) what is TestNG and give the annotations in order and parameters passed in order? he asked me 2 more questions related to TesTNG to
106 me such as
107 8) What is the parameter to be used to execute the testcases repeatedly, and for threadcount, thread pool size, max instance etc?
108 9) difference between depends on group and depends on method?
109 10) difference between priority and depends on methods with e.g
110 11) if we give parameter as both priority=0 AND dependsonmethod=method1which will be executed 1st?
111 3) given as scenario such as the web page with personal information and a submit button given
Click on the submit button -> opens the new webpage in that we will see a button "Sign in" and once clicked the username and password
label
and text box displays and give credentials and click on login button our name displays on the same screen on top left corner -
Verify the text displaying in the position and navigate to the parent screen. in this webpage the close button / any other exit is not available.
112 How will you navigate back to its parent window after verifying?
113 in Xpath if there is no locators and no names or values present....write your own relative Xpath ?
114 1.interviewer wrote Testng annotations in a paper and asked me the order it works
115 2.If @ Test us removed what is the exception we get
116 3.what is POM in maven what is snapshot in pom.
117 4.difference between find element and elements
118 5.how to get the value of the underlined text inside the frame
119 6.do you know about maven and Jenkins? Why we use maven
120 7.write a code to read data from excel using dataprovider
121 8.what is setting .XML in maven
122 9.how does testng works with maven group id and version in pom
123 10.what is artifact id
*
*
*
*
143 5. Find the position of 2nd last character 'C' in the string "Congizant India Deveopement Centre"
144 6. Write a java program to replace aeiou (with 1,2,3,4,5) in the given string "Photon Info Tech"
145 1. What is Implicitwait and explicit wait?
146 2. Asked to write code to launch google page
147 3. Asked to write syntax for relativeXpath
148 4. Asked to write xpath for visibletext
149 5. How to achieve DataDrivenFramework ?
150 6. What is POM?
151 7. What is TestNG ?
152 8. Difference between @BeforeTest and @BeforeMethod
153 9. What is collection? List and Set
154 10. DesiredCapabilities
155 11. There are 100 rows (i.e. <tr> tags) and each row has three test data ( <td> id</td>
<td>name</td>
<td>dept</td>
156 Here 20 rows have duplicate values for name value. How do you check it?
157 13. Difference between List and Set
158 14. Interface
159 15. Difference between Abstract Class and Interface
160 16. Why multiple inheritance not achieved by class?
161 17. Explain about your framework
162 18. Group execution
Technical Round 2:
163 1. Explain about framework
164 2. How datadriven is achieved?
165 3. What is class and package?
166 4.list few packages which you have used in selenium
167 5. What is class and object?
168 6. Can static varibles /methods be overrid?
169 7. few questions on my project
Questions that I have faced today in CTS:
Round1:
Round 2:
201 1)Give brief intro abt yourself??
202 2) how you have implemented your project in testng annotations!!
203 3) tell me how you have implemented maven projects and importance?
204 4) tell me abt Jenkins and implementation
205 5) tell abt wrapper classes and page object model how you implemented in methods
206 6) how you ll implement testng in the page object model
207 7) where reports will store in pom
208 8) What is soap ui tool and soap ui pro tool?
209 9) tell me the implementation of the hub and node in grid, why we should go for the grid.
210 10) Do you know abt mobile automation??
Hr round:
211 Why you wanted to switch the company??
212 Experience and relevant Experience?
213 And package discussion!!
ROUND 1:
322 1. What is selenium
323 2. Consider a web table having employee name and testing domain(manual or automation). Store these values . Then selected dropdown only if domain is autom
324 3. Tell about current project
325 4. What are the challenges faced
326 5. What is the framework currently working and others few questions
327 ROUND 2:
328 1. Right click
329 2. Implicitly wait & explicitly wait
330 3. Fluently wait
331 4. Read from excel
332 5. Firefox profile
333 6. How will you handle proxy
Second Round
514 Tell me about yourself.
515 Explain about your project
516 Explain about your framework
517 How you learnt about selenium (Self learn, online classes)
518 Why Selenium, why not UFT?
519 Failure moment in your life and how did you overcome?
520 Why CTS ?
521 What is your dream job?
522 Suppose if we don't select you then how you will feel?
523 I will select you and I gave manual testing then what will you say?
524 How flexiable you are in work?
525 Tell me about your Strengths and weakness?
HR round
526 Package discussion
527 Explain about Long term and short term goals
528 preferred location
529 Questions from resume
530 Reason for leaving current job
531 questions from my current organization
Selenium WebDriver
Selenium WebDriver
Selenium - Frames
Selenium WebDriver
Core Java
Selenium WebDriver
Selenium - FrameWork
Selenium WebDriver
Selenium - Alerts
Selenium WebDriver
Core Java
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - FrameWork
Core Java
Core Java
Selenium WebDriver
Selenium WebDriver
Selenium - Excel
Selenium - FrameWork
Selenium WebDriver
Core Java
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - FrameWork
Selenium - FrameWork
Selenium - FrameWork
Selenium - Reports
Selenium - FrameWork
Selenium - Excel
Selenium - Excel
Selenium - Excel
Selenium - Xpath
selenium - Alerts
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium - Framework
Selenium - Excel
Seleium - Windows
Selenium - TestNG
Selenium - POM
Core Java
Core Java
Core Java
General
Selenium WebDriver
Core Java
Selenium - Maven
Selenium - TestNG, POM
Selenium - Xpath
Selenium - Xpath
Core Java
Selenium - POM
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium WebDriver
Selenium - Windows
Selenium - Xpath
Selenium - TestNG
Selenium - TestNG
Selenium - Maven, POM, Snapshot
Selenium WebDriver
Selenium - Frames
Selenium - Maven, Jenkins
Selenium - Excel
Selenium - Maven
Selenium - TestNG, Maven
Selenium - Maven
General
Core Java
Selenium - Frames, Windows Handle
General
Selenium - Framework
General
Selenium - Report Generating
General
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium WebDriver
Selenium WebDriver
Selenium - Xpath
Selenium - Xpath
Selenium - FrameWork
Selenium - POM
Selenium - TestNG
Selenium - TestNG
Core Java
Selenium - Grid
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium - FrameWork
General
Selenium - FrameWork
Selenium - FrameWork
Core Java
Selenium WebDriver
Core Java
Core Java
General
aid like we need to add chrome server reference something I was not sure.
all three. How to give input correctly for each text box and when you get an exception how to handle - code and show with try catch
n and click next .this opens up another frame with same properties.do the same process again and after that it moves the next window on clicking next.
ch that exception. explain ?
o i learnt that)
pdown only if domain is automation ( write code)
Scenario
Scenario
Scenario
S.NO: Questions
1 Tell about yourself
2 what is Maven?
3 what is Jenkin's .
4 diff between Thread.sleep , implicit and Explicit waits
5 how do you plan the efforts for the automation and example ?
6 will Maven support to trigger an email after the execution completed ?
7 how Maven is executing the test case?
8 How do you ensure the application is Fit for automation ? [ he told me to take time and answer on this question ... then i realized what did initially with create
9 Answer which he excepts -
1. first we need to create a stand alone program
2. Then we need to include same easy frame work [ where that application is fit into frame work ]
3. Then integrate all them with proper Frame work
10 Diff between Cradle and Jenkin's ?
11 we have 2 class files and both are annotation with @ test . Both has 3 @ test method
ized what did initially with create lead and then Testng and then POM ..]
opdown value..
1
2
3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Questions
Round-1-Written test
Round-2
Find the below Pattern, total of 40 Questions all questions were like find the output of below program, in order to attend next round we have to score more
Second Round
Tips to Prepare:
Make yourself strong in Collections, File handling, Exception handling and JDBC from Java
Java Basics
Selenium WebDriver
Core Java
General
Selenium - FrameWork
Selenium - FrameWork
Selenium - Maven, Jenkins
Selenium - TestNG
General - Testing
General
Core Java
Selenium - Grid
Selenium - Reports
Selenium - Reports
Selenium - GITHUB
Selenium - GITHUB
Selenium WebDriver
Selenium WebDriver
Questions
1 1.How to switch between frames
2 driver.switchTo().defaultContent();
3 2.How to test a canvas in selenium
4 Not possible to test canvas and flash in selenium
5 3.Why can't we test a flash in selenium
6 Because the flash object is not embedded in HTML DOM. Flash objects are seperate object by itself.
7 4.How to get all the links.(optimesed way without using linktext)
8 use tag name a
9 5.How to find the duplicate letter in a word
10 6.From which class the thread.sleep is called
11 Its available in deault java package and no need to import any package to use thread.sleep
12 7.How to upload a file without autoit
13 If the input type of the element is having the type =file then we can directly set the absolute physical path of the file available.
14 8.Dom and com ?
15 Document Object model and Component Object Model
16 9.Various sql queries concentrating on the areas like All Joins and union,agreggate functions with group by,Views,Backup of tables ,Truncate table .
17 10.From which class is thread.sleep comes from
18 11.what is series of errors 200,300,400(EG 404 page not found error)
19 100 - information 200-success , 300 - redirect , 400 - client error ,500 server error
20 12.Have you used macros,vb scripting
21 13.Jsexecutor is it a class of interface or method and how it works what is its implementation
22 15.What does a double slash in a xpath element means
23 16.How to sort (Effecient way) - Not bubble sort.
24 17.How to find the linux version
25 18.String reverse.
26 19.Biggest challenge which you have faced in your automation project and how you over came that .
27 Ans: Will share this shortly (Babu can answer this better than me :-))
28 20.swap the digits in a number (any scripting language)
29 21.What is the use of java script in application developemtn and what is the need of using java script with selenium
30 22.What are listeners and what is the use of testNG listener where you have used it in the your frame work
31 23.How to automate dynamically changing objects in selenium.
32 Ans : Use POM in selenium frame work (www.toolsqa.com/selenium-webdriver/page-object-model/)
33 24.What is your reporting mechanism
34 25.Is it possible to integrate bugzilla with selenium for reporting and If yes How to do that.
35 26.What is OOPS concept - explain
36 27.What is the entry and exit criteria for your automation testing.
37 28.How to estimate time for automation of a functionality/module/application.
38 29.Write xpath to list all the input elements in a page.
use //@input
Classification
Selenium - Frames
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Core Java
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - Xpath
HTML
HTML
Selenium - Database/MySQL / Oracle / SQL
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
General
Core Java
Selenium - Xpath
Core Java
General
Core Java
General
Core Java
Selenium WebDriver
Selenium - TestNG
Selenium - POM
Selenium - Reports
Selenium - Reports
Core Java
General - Testing
General - Testing
Selenium - Xpath
Questions are :- Classification
1 1. Tell abt urself? General
2 2. Which framework u r using? Selenium - FrameWork
3 3. Explain your framework architecture? Selenium - FrameWork
4 4. Webdriver is interface or class? Selenium WebDriver
5 5. List some classes which implements webdriver? Selenium WebDriver
6 6. List some methods in webdriver? Selenium WebDriver
7 7. What is Webelement? Selenium WebDriver
8 8. List some methods in webelements? Selenium WebDriver
9 9. What r the locators? Selenium WebDriver
10 10. Which locator u prefer? Selenium WebDriver - Locators
11 11. If i dont have id or class name, which locartor u use? Selenium WebDriver - Locators
12 12. How to get the count of all links in a webpage? Selenium WebDriver
13 13. How to click ok in alert popup? Selenium - Alerts
14 14.
15. How
How to to right click
get the on particular
count of windowslink?
opened? How to switch to 1st window and click on OK Selenium WebDriver
15 button.? Seleium - Windows
16 16. How to take screenshot? Selenium - Snapshot
17 17. Having a string s = "100", convert this to integer? Core Java
18 18. Explain the methods in String Class? Core Java
19 19. Overloading vs Overriding? Core Java
20 20. List vs Hashmap? Core Java
21 21. How to maximize window? Seleium - Windows
22 1. Write a code to know if there is a valid chrome installed in a specific machine General - Testing
23 22. How will you compare object size between 2 different browsers say Firefox and chrome Selenium WebDriver
24 Today I attended dell telephonic discussion.. Questions are :- 1. Tell abt urself? General
25 2. Which framework u r using? Selenium - FrameWork
26 3. Explain your framework architecture? Selenium - FrameWork
27 4. Webdriver is interface or class? Selenium WebDriver
28 5. List some classes which implements webdriver? Selenium WebDriver
29 6. List some methods in webdriver? Selenium WebDriver
30 7. What is Webelement? Selenium WebDriver
31 8. List some methods in webelements? Selenium WebDriver
32 9. What r the locators? Selenium - Locators
33 10. Which locator u prefer? Selenium - Locators
34 11. If i dont have id or class name, which locartor u use? Selenium - Locators
35 12. How to get the count of all links in a webpage? Selenium WebDriver
36 13. How to click ok in alert popup? Selenium - Alerts
37 14.
15. How
How to to right click
get the on particular
count of windowslink?
opened? How to switch to 1st window and click on OK Selenium - Actions Class
38 button.? Seleium - Frames, Windows
39 16. How to take screenshot? Selenium - Reports
40 17. Having a string s = "100", convert this to integer? Core Java
41 18. Explain the methods in String Class? Core Java
42 19. Overloading vs Overriding? Core Java
43 20. List vs Hashmap? Core Java
44 21. How to maximize window? Selenium WebDriver
S.NO: Questions are
1 How do you decide which test cases to automate
2 Tell me the test case for atm-debit card transaction
3 What exactly Webdriver drivers?
4 when you login to banking application which test case do you automate?
why don't you automate transaction testcases as you said you automate only login test case
5 Tell me about your defect-life cycle
6 Tell me about your Project
7 What are the entry criteria for start testing? What is exit criteria for testing?
8 Do you mark test cases as passed or failed in C?
9 Whare do you execute your test case?
10 Explain the automation Framework architecture?
11 What is priority and severity? Who decides to give priority?
12 In current project what is your role? Automation or manual or both?
13 What are the details that you give while logging a defect?
14 What is maven
15 Who will give priority? Does priority affects application?
16 When we do regression Testing?
17 When do you do smoke testing?
18 Give me the minimal test scenario fir test field with range of 0-100 digits range?
19 Do you know SQL? Tell me about types of joins?
20 what is an inner join
21 When we use having clause?
22 How do you set up eclipse?
23 What does POM class has? What are it's uses?
24 What does POM.xml contains?
25 How to read data from an excel? Write the code
26 What is HSSF and XSSF? When do you use them w.r.t xlsx ans xls?
27 How do you read more rows in excel?
28 What is the jar file used get data from Excel?
29 How do you set the path for Chrome, Firefox and IE driver
Ans: severity, detected by, assigned to,
description, artifacts like screen shots
Ans: Not always
Round 2 :
6 What version of selenium you use General - Testing
7 Tell me about framework you are working on General - Testing
8 About your project General - Testing
9 Why you are planning for a change General
10 Can angular js application be automated using selenium Selenium WebDriver
11 Jenkin CI and CD Selenium - Maven, Jenkins
12 Maven life cycle Selenium - Maven
Round 3:
13 About yourself apart from things which are not in resume General
14 Why fidelity General
15 What fidelity does General
16 Your positive and negative General
17 Have you faced any challenges in your project General
18 What is SVN General - Testing
19 Tfs product backlog General
20 Are you ready willing to work for development if change given General
21 How well are you in java rate yourself out of 5 Core Java
22 Scenario given based on that how you handle it General - Testing
Round 4:
23 HR round was a very casual round without technical General
Round 5:
Technical round with onsite team via video calling
Fidelity interview :
Round 1:
42 Singleton class Core Java
43 Explain the framework you have used Selenium - FrameWork
44 Sql queries : ddl, dml, join Selenium - Database/MySQL / Oracle / SQL
45 Agile General - Testing
46 Scrum General - Testing
47 Some basic programs Core Java
48 Jenkins Selenium - Maven, Jenkins
49 Web elements Selenium WebDriver
50 Some questions about automation General - Testing
Round 2:
51 Oops concepts Core Java
52 Encapsulation Core Java
53 Inheritance Core Java
54 What is leadership General
55 What is quality General
56 Jenkins Selenium - Maven, Jenkins
57 CI and CD.. Selenium - Maven, Jenkins
58 Scrum General - Testing
59 What framework you know General - Testing
60 5 yrs from now General
Round 3:
61 About yourself General
62 Project explanation General
63 Team size General
64 Roles and responsibilities General
65 Strength and weaknesses General
66 What do you know other than selenium General
67 Selenium General
68 Core java with programming (it will be tough) General
69 Question in Testing and automation General
70 Agile Process General
71 Role and behaviour questions like willingness to move to development projects if selected General
72 Different locators, Xpath for dynamic elements.
73 Alert handling.
74 Printing a value next to a specific value in html table.
75 How to do do right click and select third element from the popup.
76 Submit button is enabled only when we mouse over a another element. how to perform this in selenium.
77 Explain your Framework, questions in frame working.
78 Reporting methods used.
79 what is difference between interface and ordinary class,
80 where u used Interface in ur project.
81 difference in abstract ans interface, did u used both in ur project.
82 Program to swap 2 no,
83 Find out all the palindrome words from a string.
84 Which framework bu have used, did u created any framework,
85 what's ur roles nd responsibility in current company,
86 what are all the possible things u can do using Maven, Jenkins.
87 What challenges u have faced,
88 what are TestNG annotations u know,
89 what is data provider and how use it in testng.xml using parameters,
90 Desired capabilities.
1.How to highlight the textbox before sending the sendkeys?
2.How to run the multiple suits using batch without manual intervention or .xml file?
3.Write a script to take the dropdown values one by one in the test case? For eg: Country has 200 values , 1st should be selected then second then so on.
4.Write a script, multiple link are there on a page click on it one will navigate to another page. similarly click on another and so on.
5.Difference between Set and List?
6. Multiple text box which doesnot have any locator or locator is changing, Write a script to enter the values one by one?
7.How to take screenshot?
8.How to add dependency in Maven without using POM.xml
Classificat
# Questions ion
1 Expalin framework
2 code for impletment xtent report
3 what is data provider
4 how to read data from exel sheet
5 program to find reprating character in give string
6 update to salary from 10 to 100000 in slary table
7 find the second hightest salary in table
8 what is maven
9 Maven command to extcute form cmd
10 maven repostory
11 maven build life cycle
12 how to schedule job in jenkin step
13 left join
14 difference between group by and order by
15 testng how to run in parallel
29
Questions are :- Classification
1 Final keyword.
Declared the method using final,how do I need to call the method Core Java
2 Abstract class
what is abstract Class,what is the use Core Java
3 what type of parameterization did you use in your project Selenium WebDriver
4 how to read data from database? Selenium - Database/MySQL / Oracle / SQL
5 what is web drive? Selenium WebDriver
6 what is Interface. Core Java
7 what framework used in the project Selenium - FrameWork
In Day 1 we have only 2 record in excel nd tested those data,in Day2 the record has
8 increase to 10,how you write the program for this dynamic changes. Selenium - Excel
write a program to comapre 2 dates,and need to print which date is greater,need
9 to print the date.Kindly provide the steps Core Java
Have to count the upper and lower case character of particular sting.need to print
10 the no of uper case and lower case Core Java
11 How to handle alert? Write syntax
12 How to check whether the checkbox is selected or not?
13 What are the dependency required for handling MS word and excel?
14 What
Syntaxareforthe wait types
selecting in selenium
an item and write
in a dropdown andsyntax?
how to get the options from the
15 dropdown?
Questions on mostly on keyword - Static, Final, this, super & access modifier, File
16 program
handling,given
inheritance.
with missing code and asked to select right code from the given
17 options to get output.
18 select the right error/exception for the program.
19 diff bt overloading and overriding
20 diff bt list and set
21 diff bt array and arraylist
22 diff bt interface and abstract class
23 diff bt final, finally and finalize
24 program to swap two number witbout temp variable
25 apple find each letter occurance using map
26 static keyword
27 handling frames
28 handling windows
29 handling alert
30 tell abt u r framework
31 Challenges faced
32 Exceptions faced in u r project
33 Implicit wait with syntax and ex
34 Explicit wait with syntax and example
35 fluent wait
36 excel read data coding
37 what is Exception Handling?
38 What is polymorphism?
1ST Round - online test( java oops concepts , multithreading concepts, file
39 handling)
40 Collections
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
Questions are :-
Explain the Framework you are using
What is data driven framework
Where the test data will be stored in the FW
Components of Framework
How to count the links available in the form
Different types of locators. Which locator is your preference and why
Syntax of Xpath and cssSelector
In what format you are giving your report to client
Conversion process of Testing report to XSLT
Processor used in report
How to handle Authentication window
How to handle multiple window
Challenges faced in your automation project and how you overcome those
How to handle complex interaction - Action class
What kind of Frame work using in your organization..?
Explain about your framework architecure..?
Where did you stored all kind of xpaths in your framework..?
What is the HUB & Node..?
How do you run your test using a framework..?
Write the xpath..?
How to handle alerts using web driver..?
How to identify two fields(Radio button) in a page with same id..?
How to write a xpaths for Dynamic web pages..? (like facebook status, Filpakarts)
Junit - how do you used in projects..?
How do you handle popup windows in your projects..?
Why is Java platform/OS independent ?
Have you used collections in your code ?
What is the difference between Implicit and Explicit wait ?
Write any sample code -- Fibonacci series ...
Scenario --
I have three unique buttons in my page.(Display names are different)
The internal ID & Name changes on every page load.
I need to click on each button in sequence.
Write a prog to find the largest of 3 numbers
Write a program to obtain the ipaddress from the user and chk if the ipaddress is valid or not
Write a program to chk if u hav received mail from hcl using webtable
Ur project architecture
Diff between hashmap and hashtable
What is serialization
What is anonymous class
How to create a immutable class
Challenges faced in selenium
How will u locate the dynamic objects in a webpage
Prog to reverse a string
Obtain the number of chars in a text file
Read a property file
How to handle ajax alerts and frames
1. Write a java program, to swap without using 3rd variable?
2. Write a Java program to read text from a file and display it.
3. Write a Java program to get file name from the given string.
Str = "C:\Programs\TextFile.txt"
4. Write a sql sub query to join Employee(T1, T2, T3) and return the table 3 values
5. Write a selenium script to print the table values? Table is like 3X3 table with values A, B, C, 1, 2, 3, 4, 5, 6.
1.explain abt hybrid framework (data&keyword driven)
2.did you involved in initial framework development for your client ?
3.do you know Ruby?
4.write a java program to check a sting is palindrome
5.write a java program to check a no is prime ?
6. what is the use of toCharArray method?
7.diff be assert and verify?
8.consider there are steps in a test case and your second steps fails, here which one you use ? (assert or verify
9tell me diff be smoke and sanity testing ? And which one will go depth ?
10.what is exploratory testing ?
11.do you have performance testing in your project ?
12.what you do in performance testing ?
13.explain about page object model
14.explain about reporting in your project ?
15.formats of your report ?
16.how do you give report for test cases to your client ?
17.draw complete architecture of your client project
18.what development model you use in your client ?
19.tel me about extentreport jar and it's functionalities. Is it rd party tool ?
20.how do you rate yourself in selenium out of ?
21.how many locators available in selenium ?
22.what is most preferred locators ?
23.tell me the list of web elements a web page can have
24.what is synchronization ?
25.what is the diff be implicit wait and explicit wait ?
26.where do use explicit wait ?
27.consider there are three links available in a web page with same Id, name, text and all. How do you click the second link without using xpath ?
28. explain the frame work used in ur project.
29. write code to read data from excel.
29. what is use of POI.
30. how many test scripts do you have in ur project.
31. how many days will take to execute all the scripts.
32. what are the challenges u faced in ur project when u executing Selenium scripts.
33. write a program to given number is palindrome.
34. write a program to write given number is Prime or not
35. Java is what type of language.
36. what is oops and tell me the main concepts in oops.
37. how do you find multiple objects in a web page.
38. diff between findelement and findelements.
39. diff between trow and throws.
40. tell me the types of exceptions, why and how we handle them.
41. diff between checked and unchecked exceptions
42. how you handle popups in windows based applicn.
43. what is diff between close() and quit()
44. some basic qns on Actions like click, right click, double click
45. what is implicit wait and syntax for this, what are the time units types, can we give hours and days also for time units?
46. explain the POM
Explain about you frame work?
Xpath – Parent, Sibling relation
If m1, m2, m3, are the methods in your class and you have given m1, m2, m4 in your xml. Will it skip the methods m1 and m2 or it will throw an error?
What is the most generic exception class in selenium
Write a sample code for the webElements
1. Check box
2. Text box
3. Drop down
4. Alert
5. Popup window
6. Click at the corner of the button
7. Click on the button without using click method
Get the IP address of the local host and check whether it is a valid address
Write a code for data provider.
Explain data driven and hybrid driven framework
Write code to read property file
Write a code to read the text file and print the no. Of vowels in it
Write a sample code for palindrome
You are inspecting a (Tex t box) WebElement and it is pointing to div tag. Will you be able to enter a text when the tag is div
Explain about your project folders
Write a sample code for any of the testcase you have designed using a framework
Difference between hashmap and hashtable with syntax
How will you read a pdf file. What jar file is needed?
GitHub commands. If 2 users are modifying the file in git hub and you want to know the changes and who had made it. What is the command to perform
Maven – explain
How will you schedule a job to run
Will the hidden element (style = hidden) can be retrieved by coding?
does hashmap accept duplicate values
D/B hashmap and hashtable, arraylist & linked list and their methods
wait() & sleep() in thread & questions on thread exceptions
Program to convert a string to palindrome
Maven & Jenkin - general question
Difference between Jenkin & Windows task scheduler
Xml path using following - sibling
code to retrieve element from webtable and click its corresponding check box and verify If the link is enabled in that row. If the check box is clicked and click the link
question on CSS
how to retrieve value of an attribute of an element on xml path
Abstract class, object class & its methods
can a variable declared as private static final can be accesssed by other class in same package/different package
rise of static keyword for variable, method
abouth the report that we provide to customers in our project
challenges faced in your project
when do we use selenium grid
1. Self introduction?
2. Tell about your projects and Role and responsibilities?
3. What are framework you have using in your project?
4. Draw the framework architecture and explain the framework?
5. Different types of locators. Which locator is your preference and why
6. Diff between findElement and findElements()?
7. How will you navigate the pages using selenium?
8. What is data driven framework? Explain poi.jar?
9. Write sample selenium program with verifyEquals and assertEquals that you used in your projects?
10. Diff between driver.findElement(By.id("")) and driver.findElementById("")
11. In what format you are giving your report to client
12. How to handle multiple window
13. How will you handle drop-down?
14. In the mail inbox how will you find the email with attachement?
15. Challenges faced in your automation project and how you overcome those?
16. What is keyword driven framework?
17. Selenium remote execution?
18. What is Css Selector?
19. How do you handle popup windows in your projects..?
20. What is the difference between Implicit and Explicit wait ?
21. Scenario -- I have three unique buttons in my page.(Display names are different). The internal ID & Name changes on every page load.I need to click on each button
22. How will you upload file in a web page using selenium?
23. How to take screen shot using selenium?
24. Do you know about Seleniunm RC?
25. What is Test NG and annotations?
26. What is XPath Axes?
Java
1. How would rate yourself in java out of 5.
2. Write a java program to find number is prime or not?
3. How do you achieve multiple inheritances in java.
4. main() method can be overloaded?
5. main() method can be overridden?
6. Diff between list and set?
7. What is Interface?
8. What is abstract class?
9. Diff between Interface and abstract class?
10. What is Static?
11. Diff between mutable and immutable? I explain with String and StringBuffer but they were not convinced.
12. What is string buffer string and differences between them?
13. Diff between Overloading and Overriding?
14. Diff between throw and throws?
15. final vs finally ?
General
1. What is Maven?
2. How many bugs you found so far?
3. How many testcases you written?
4. How many minimum test cases you can write for a functionality? Eg. I am sitting the room near a table and i have to take a pen from the table?
5. Explain Defect time cycle?
6. Explain the C1 issue you have worked?
7. Expected CTC?
8. Notice Period?
9. Why are you looking for a change?
Hcl interview questions
what is exception and error
Difference between == and .equals
What is command line arguments - customised behavior of main method
diff b/w primitive and non-primitive data type
what is testng and what is its use
What is variable and types
what is the main use of static
Round 1
Google.com
Can you brief about yourself.
Google1.com
abc.com
Difference between WebDriver driver = new WebDriver; and FirefoxDriver driver = new FirefoxDriver
lmn.com
Bug Lifecycle
Google2.com
I need to get Google.com, Google1.com and Google2.com links at a separate location.
DesiredCapabilities for proxy to Firefox browser.
Have you worked on Mac?
Do you know what is component framework?
Which framework do you use in your project and explain.
What type of Reports do you use in project, not asking about TestNG reports.
Round 2
Find No. of mails present in the Inbox
If a button is not getting clicked 2 out of 5 times, Is your script is failing or how do you handle it?
"Ctrl"+"Alt"+"Delete" - Do this in a single line of Code
How do you upload a file by clicking Browse button?
How do traverse to a 3rd frame from 1st frame, Directly or how?
How do you capture a text which is present inside a textbox
What is the class used for Dropdown and what methods for selecting the options?
Can you traverse reverse in X-path to div. Given Textbox with id present inside a span which is in-turn present inside div.
Initialize and insert an item into a HashMap
Difference between LinkedArray and ArrayList
Difference between LinkedHashMap and HashMap
Given 20 Students name. i) Remove the duplicate Names, ii) Sort them Alphabetically.
There is a String like 123ABCD456. You need to store Integer and Char seperately.
U have a webtable like below
Mobile Price
Iphone 500
Samsung 350
Lenovo 250
Iphone. 750
I need to get the Iphone price of 750
Write code for Mouse over, drag and drop, Select Dropdown.
How to scroll horizontally and vertically in a webpage. Code for it..
Switching from one frame to another. Whether you should come out of first frame or can directly switch to other. Same scenario incase of nested frame.
Round 2
Scenario-
Scenario- A particular
Have a pageelement
P1 if youlocators
click on keeps on it
a button changing everyyou
will navigate other
to day howP1would
P2 and youclose
will get handle, write
similar a method
is the for P2
case with it i.e if you click on a button it will navigate to p
p2 will close. How will you be able to launch page p1 from p2 and vice versa? Write two approached for it.
Scenario3- There are two web tables 2*2 each hw would you swap the the values of table one with table two so my output looks alike as shown below write a code fo
hcl second round :
1)string s= new string("hcl"). how many object it will create
2)what is array and list
3)how do u connect ur Db with selenium
4) swap numbers without using temp variable
5)reverse the string without using string buffer method
6)how many type of list
7) how to give sample test data to ur test case
8)what are the challenges u have faced in automation
9) explain your day to day work
10)explain ur project
11)abstract class and interface difference
12)which reporting tool u r using
13)how to get report
14)given one html code and asked me to write 2types of xpath
15)how to automate the image eg. dynamically change image like graph
16)do u have knowledge on autoit
17)what is thread and how to create thread class
18)write a selenium code for drop down by using index
19)diff between get Windowshandle and getwindowhandles
20)IS it possible to create a object for interface?
21)how to take screenshot. write a code for that
1)Explain ur framework
2) Explain about test case execution flow ( from where it start to close the browser )
3) write a code for password validation (first letter should be upper case, alpha numeric, spl character )
4)how to get data from webtable (5th row 8th colum)
Selenium - Xpath
Selenium - Xpath
Selenium - Xpath
Core Java
Selenium WebDriver
Selenium WebDriver
General
Core Java
Core Java
Core Java
Core Java
General
Selenium - Locators
Core Java
Core Java
Selenium WebDriver
Selenium - Alerts & Frames
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium - FrameWork
General
General
Core Java
Core Java
Core Java
Selenium WebDriver
Selenium WebDriver
General - Testing
General - Testing
General - Testing
General - Testing
Selenium - POM
Selenium - Reports
Selenium - Reports
Selenium - Reports
General
General
Selenium - Reports
General
Selenium - Locators
Selenium - Locators
Selenium WebDriver
Core Java
Selenium WebDriver
Selenium WebDriver
Selenium - Locators
General
Selenium - Excel
Selenium - Apache POI
General
General
General
Core Java
Core Java
Core Java
Core Java
Selenium WebDriver
Selenium WebDriver
Core Java
Core Java
Core Java
Seleium - Windows
Selenium WebDriver
Seleium - Mouse action
Selenium WebDriver
Selenium - POM
Selenium - FrameWork
Selenium - Xpath
Selenium - TestNG
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - Alerts
Seleium - Windows
Selenium WebDriver
Selenium WebDriver
Selenium - Grid
Selenium - Excel
Selenium - FrameWork
Selenium WebDriver
Core Java
Core Java
Selenium - Xpath
General
Selenium - FrameWork
Core Java
Selenium - Uploads
Selenium - GITHUB
Selenium - Maven
General
Selenium - Xpath
Core Java
Core Java
Selenium WebDriver
Core Java
Selenium - Maven, Jenkins
Selenium - Jenkins & Windows
Selenium - Xpath
Selenium WebDriver
Selenium - Locators
Selenium - Locators
Core Java
Core Java
Core Java
Selenium - Reports
General
Selenium - Grid
General
General
Selenium - FrameWork
Selenium - FrameWork
Selenium - Locators
Selenium WebDriver
Selenium WebDriver
Selenium - FrameWork
Selenium WebDriver
Selenium WebDriver
Selenium - Reports
Seleium - Windows
Selenium WebDriver
Selenium WebDriver
General
Selenium - FrameWork
Selenium - Grid
Selenium - Locators
Seleium - Windows
Selenium WebDriver
Selenium WebDriver
Selenium - Uploads
Selenium - Snapshot
Selenium WebDriver
Selenium - TestNG
Selenium - Xpath
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium - Maven
General
General
General
General - Testing
General
General
General
General
Core Java
Core Java
Core Java
Core Java
Selenium - TestNG
Core Java
Core Java
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - Locators
General
Core Java
Core Java
Selenium - Excel
Selenium - TestNG
General
General
Selenium - POM
Selenium - Excel
General
Core Java
Core Java
General
Selenium Webdriver
General - Testing
Selenium Webdriver
Selenium Webdriver
General
Selenium Framework
Selenium Framework
ExtendReports
Selenium Webdriver
Selenium Webdriver
Actions
Windows app handling
Selenium Frames
Selenium Webdriver
Selenium Webdriver
Selenium Webdriver
Java Collections
Java Collections
Java Collections
Java Collections
selenium
java
selenium
selenium and java
java
java
selenium and apache POI
32 Selenium WebDriver
Assume u hav a login page, u entered usernameand password correctly and u cliicked login button.Now the
application doesn't response u aft clikcing on login button... how u ll handle it in ur selenium code?
33 Selenium WebDriver
34 Challenges that u hav faced in selenium? General
35 Explain with example hw u ll handle file uploads? General - Uploads
36 How to full snapshots in chrome browser? Selenium - Snapshot
37 How to select the drop down value and explain it with example? Selenium WebDriver
38 Program to print fibonacci series? Core Java
39 Hav u worked in SOAP UI, if so tell me what will u do with that General - Testing
40 Hav u developed any framework? Selenium - FrameWork
41 Explain mouseover actions with example? Selenium - Mouse Over,Keyboard
You hav a web table it contains 3 columns. 1st column contains name of a person and 3rd column contains out
time. U need to print out time of a particular person name. Assume that the values in changing dynamically.
42 Selenium WebDriver
43 1. Write a java program based on below points Core Java
44 a. Take an integer input Core Java
45 b. Find the no. Of digits Core Java
46 c. If the digits count is an even number then divide the input no. By 2 Core Java
d. If the resultant no. Of digits is even similarly in point e. no. Of digits in resultant no
47 Core Java
e. if the resultant no. is odd then remove the centre digit and compare the first half digits with that of the last
half digits
48 Core Java
49 f. if they are equal print equal if not print not equal. Core Java
50 2. How do you run all the failed test cases using testng Selenium - TestNG
51 3. How would you retry a certain test if it fails Selenium - TestNG
52 4. Explain each of the annotations in Testng Selenium - TestNG
5. A webpage has 4 textboxes each has the same class attribute as A , write a script to click on the 3rd textboxes
and add your name prefixed by a tab space.
53 Selenium WebDriver
6. A web page has a link and when right clicked and then open takes you to another page that has a text box in it
and name to be typed in the textbox., write a script for the same
54 Selenium WebDriver
55 7. Explain about the Agile process General - Testing
56 8. Explain about Cucumber framework. Selenium - FrameWork
Hexaware
Round 1:
57 1.Java programs Core Java
58 2.Core java concepts Core Java
59 3.Webdriver and TestNG Selenium WebDriver, TestNG
Round 2:
60 1.Tell me abt yourself General
61 2.Explain ur prj framework General
62 3.Difficulties faced in automation General
63 4.Any value adds you did in your project. General
64 Write java code Fibonacci?
65 Write code for reversing the integer?
66 How to get the text value inside text box? < I Told get attribute of value>
67 How to get the selected in the list box then? < I told the same way- and he convinced>
68 If I click a link multiple pp up gets open how do you close all except parent? Write code for that?
69 How do you rate yourself in selenium?
70 Tell
Whyabout career?
do you leave your company? The position is for automation frame work developer – nbut might be a manual
71 tester some time? Are you okay with that?
72 What is the most challenging issue you faced in your project??
73 Why POM? Have you worked in Hybrid?
74 Whats TOSCA?
75 Why do prefer selenium than tosca?
76 Explain your project architecture and how efficiently you have managed in automating them?
77 What are the different way handling reports for the cases you have executed?
78 How will you delete the 3rd row of dynamic web table using selenium
79 How will you create random characters as a string in text boxes
80 How will you count all the elements in web page
81 Write code to find broken links in webpage
82 How will you handle random pop up in web page
83 Difference between driver.get and driver.navigate.to
84 Whether finally method will be executed everytime . If no at what condition it won't execute
85 How will you take screenshot of failed test cases alone
86 Where do you use abstract class in Ur project ?
87 What are the other alternate ways for send keys
88 Testng test cases with priority as -1 and 0 . Which will execute first . Whether -1 is acceptable
89 Write code for data providers
90 How will you run all test cases in a single shot via testng
91 Write Java code for string buffer (no pseudocode .. full program)
92 Java recursion and it's practical use in selenium project
93 Why build perform is mandatory for action classes
94 Define web driver .
95 How will you access pdf files in selenium . (Project requirement s to handle it via automation ,what are the other
ways to handle it )
96 Write code for sort the alphanumeric values . What are the available options to resolve and best solution
97 command to print in selenium IDE
98 what data type would Case in Switch(Case) statemenr supports
99 Which OS wont be supported by Selenium IDE
100 How to handle cookies in Selenium(2 ques)
101 Which view show the script in HTML format
102 Which method used to retrive text of the field(ans:getText())
103 How to verify a text with the existing feild
104 How to check whether a text is present
105 What is mean by Selenese
106 How to declare field in Selenium
Options:{name},$(name) and few more options
107 java program
Int X,Y=1;
X=10;
If(X==10)
{
Syso(X);
}
Else
{
syso(++Y);
}
108 which data type stores the values in the Selenium Webdriver
109 Explain your Framework
110 Fibonacci series
111 Frames and Switching
112 Inheritance
113 Code for interacting with Excel
114 how to enter the text in text box
115 how to get data from excel (Full code)
116 Framework explanation
117 List ,set, Map explanation
118 static keyword explanation
119 Diff between string, buffer n builder
120 how to overcome diamond prob
121 Abstract class explanation
122 Implicit wait n Explicit wait explanation n difference
123 Windowhandling
124 agile ceremonies
125 how change integer to char
126 method overloading n over riding
127 Select the method which clears all selected entries in selenium web driver
128 Where can u create ur own selenium commands
129 Which command is is used for typing in a text box.
130 Select command which is used to pause execution until the specified element becomes present
131 Scope of implicit wait
132 Command which is used to pause execution until page is loaded completely.
133 Select the view which shows your script in HTML format
134 Features available in IDE to debug an automated case.
135 In which approach tests can be executed with multiple sets of test data.
136 What can be used to flex/flash application using selenium.
137 How many parameters does the selenium object takes when using default selenium.
138 Difference between web driver close and quit methods.
139 what is the method to disable cookies
140 what does submit method does?
141 Where does variable of tc's stored in Java
142 verifytextpresent method patterns
143 assert & verify difference
144 Scope of Implicit wait
145 What r the different modes of Se(Option Firefox,IE,Chrome)
146 Where selectbyvisibletext is used
147 How to get text from a page?
148 What is the method to store the alert?
149 Why relative x path is advantage then relative x path
150 method for context click
151 Find the Xpath for given HTML code
152 how to count the number of elements
153 Difference between breakpoint n start point
154 How to navigate forward in browser
155 Asserttitle returns what
156 syntax for selectbyindex
190
191 A,b,c print all possible combinations of these elements
192 Write a program for print all values on webtable
193 Write a program for print all values on drop down
194 String vs stringbuffer
227
12
13
14
15
16
Questions:
Data binding
Method overriding
What is Constructor
Why constructor called while object creation itself explain it on board
Why main method is public static void main
Why return type is void for main method
What is reference
Programs in string without using built in functions count vowels ,
Find the length of the string without using length() method
Write a program for deletion of alphanumeric
Write a program for to convert upper to lower case & lower to upper case
2st Round(Technical/Managerial)
st Round
1) Introduce about urself?
2) Different components of your framework?
3) Rate yourself in Java?
4) Why are you looking for change.?
5) challenges you faced in your project.?
6) How to achieve multiple inheritance in java.?
7) What is the difference between interface and abstract class.?
8) Tell what ever you know about static keyword. ?
9) Explain about maven in your project?
10) How do you do reporting in your framework?
11) Difference between Array list and linked list?
12) How do you manage if you encounter web table?
13) Different annotations in TestNG you are using in your project?(Explain @Test annotations and is parameters)
14) Scenario :If client give some suggestions and you did a change to the script.
15) How do you estimate your project. (How much time you require to automate 100 test cases) Explain why?
16) What are the different type of meeting you participate?
17) What is product backlog in Agile?
18) What is the pros and cons of using Agile methodology?
Selenium
Selenium
Selenium
Selenium
Questions are :- Classification
1 Write a code to find number of links in a webpage , also print only the enabled links in that page ? Selenium WebDriver
2 Frame switching method? Selenium - Frames
3 Is it possible to execute the webdriver code without opening the browser? Selenium WebDriver
4 Framework - model ? Selenium - FrameWork
5 How report generation is done through framework? Selenium - Reports
6 Bug life cycle and its description in brief ? General - Testing
7 Types of testing in detail ? General - Testing
8 Testing priority ? General - Testing
9 % of automation tests and manual tests in project ? General - Testing
10 In what cases automation is carried out ? General - Testing
11 Release iterations ? General - Testing
12 Critical regression testing to be carried out with limited bandwidth and resource in the last minute....how to handle? General - Testing
Questions are :- Classification
1 1. What version of selenium you started ? General
2 2. What is the current version of selenium Firefox chrome u r using?? General
3 3 how to sort an array of elements ?? Core Java
4 4 how do you check the element s in dropdown are sorted in ascending order or not ?? Selenium WebDriver & Java
5 5 . how do you count the number of rows and columns in a webtable ?? Selenium WebDriver & Java
6 6 what are some of the selenium exceptions you came across?? General
8 . assume there are 50 names every name has a link called edit how will you click on
77 .can
the yourstatic methods be overrided ??
name Core Java
8 if it is present some where in the 39 the row ?? Selenium WebDriver
9 9. if it is present some where in the 39 the row ?? Selenium WebDriver
10 1. Tell me abt yourself? General
11 2. Tell me abt your selenium project experience? General
12 3. How is OOPS concepts related to your project? Core Java
13 4. What is the difference b/ web server and application server? General
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Questions are :-
Tell me about yourself
Explain the framework used in project in detail
Explain abt BDD framework(Cucumber) and flow(asked from my resume)
How do u run the testcase with different inputs in cucumber framework
what is meant by gherkin testcase
what is meant by background in cucumber
About Window Handling
About frames handling
What is abstract
Diff b/w abstract and Interface
Syntax for take screenshot
Explain about robot class
this and super keyword and their difference
Explain about mobile gesture - Appium - TouchAction class(asked from my resume)
How do u identified the element in mobile app
Explain about desired capabilities
Explain about SDLC process(Agile Methodology - day to day activities)
What is advantage of webdriver?
Which is the base browser for selenium. . Suppose if I need to access other browser like chrome ie what will you do
What's webelement?
What are the different types of waits?
What r the locators available?
What's the latest selenium version?
What's selenium grid?
And they asked more from banking perspective loans, interest, clearing, etc. ,
from testing concepts. . Types of testing, levels of testing, test life cycle, bug life cycle, regression testing, priority, severity, etc.,
Classification
# Questions are :- Classification
1 What is constructor?
2 Is constructor overloading possible?
3 Overloading vs overriding?
4 What is an Interface?
5 Difference between ChromeDriver and FirefoxDriver methods?
6 What is geckodriver?
7 How do you run your tests from Jenkins?
8 What are the exceptions have you faced?
9 Why do we get NoSuchElement exception?
10 What will you do when you get ClassNotFound exception?
11 What are the ways to refresh the web page?
12 ImplicitlyWait vs ExplicitWait?
Questions are :- Classification
1 Diff between windows.close and .quit
2 Diff between explicit wait and implicit wait and syntax of them
3 Bug life cyclr
4 Route cause analysis
5 requirements traceability matrix
6 Agile methodology
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Questions:
Infosys Interview Question:
1. Tell About yourself
2. Why are you looking for career change
3. Write a program to reverse a string using for loop
4. Write a program to swap 2 arrays
5. How will you handle SSL certificate
6. Difference between Selenium RC and WebDriver
7. What is Interface and Abstract class and difference between them
8. Which is the headless browser
9. Can we declare a private class inside a main class
10. Explain access modifiers
11. What are the locators used in selenium
12. What will you use if the web element changes dynamically
13. How will you handle changing requirements
14. Can we use this keyword with static method
15. Explain TestNG annotations
16. How can I run multiple test cases
17. TestNG XML structure
18. POM framework and explain your project
19. What is Continuous Integration
20. What is the use of Maven and explain how is it used to take build
21. Have you done any estimates? What type of estimation? Explain for both agile and waterfall methodology
22. How will you categories the test case as critical, medium, simple etc..
23. Write SQL statement for finding the second maximum salary in the table
24. Do you allocate any task to resources and how?
25. Explain test plan and test strategy
26. What are the CMMI Level 5 metrics used
27. What additional tracking and metrics you use for CMMI Level 5
28. If any resource has not completed the work on time and delivery is scheduled tomorrow. How will you manage this situation
29. What is difference between List and Set
30. Explain Java Collections
31. Write code to take screenshot.
32. What are the tools used in your project for tracking.
He touched everything that is mentioned in resume. Whatever we have mentioned in Profile Summary, for every keyword they asked questions
Explain the framework structure
Web table handling, i have a check box in one column and in the 2nd column I have name value. In the rows against the name column, if the name value is gonna be re
Nested frames. I have to enter a name in the text box of a nested frame and hit the ok button!
Explain ur project and the framework used.
how to get input from Excel
how do u have version control
how u use variables in Selenium
how to perform drop-down
inside a frame two text boxes present. Shld get the text from one box and paste in in other box
window handling
diff between implicit n explicit wait
Difference between Assert and verify
In a login page How will you find If the password field is below or not
Accessing table If there is no table name
Test Lead questions with agile methodology
Take numeric values in the screen ex : If its displaying 1,2,3 and add them and display in ur program
Different nethods of opening if browsers other than get method
Accessing Dropdown values
Asked Firebug tool for screenshot
diff types of tags explaination
How will u manage ur team if ur team member is not working
Appraisal system
Db connection .. etc.. There were lot more..
What is static?
What is Hashmap
What is Set
Final and finally difference
What isSingleton class
Array and arraylist difference
Different between overriding and overloading
How to count multiple Windows?
Real time example for explicitly wait
Syntax for implicitly wait
Explain keyword driven framework
Tell me abt ur framework (i explained POM framework)
Draw a diagram of whatever framework u explained
Show the connection between all the packages u explained
Explain ur role
What r TestNG annonations, wat annotaion u used in ur project and explain wat each annotation does
How do u fetch data in DataProvider....asked the program to be written
How do u run ur test scripts
How many test cases do u have in ur testcases package
if there r 100 test cases, u want to run 50, hw to do that
What do u do when there is a Defect
Defect LifeCycle
What do u do in Defect Triage call
What is SDLC? Explain each phase, explain the documentation in each
What r exceptions
Where do u use it and y dont u use it in Pages package
What Reporting technique u use
Hw to pass PASS or FAIL to Reporter class
Wat is Hub and Node
Hw do u handle alert
Hw to get text of Alert
Hw do u take alert snapshot
Hw to handle windows
Which Seleniun version u use nw
What Selenium version u started working
Explain interface with example
What is version control you use in current project
Hw do u schedule execution using Jenkin
What is maven
Difference between Explicit n Implicit wait
Test Leaf Babu: Infosys interview questions:
what is test estimation and how you schedule and estimate your task based on agile methodology?
scenario based question ask me to explain in framework model
i told about POM under which data driven model framework i used..i told from that did u write separate program for reading and passing the excel
explain about read the value from excel and ask me to write the program logic
what is selenium web driver
how you will invoke the test
difference between junit and testng
write the XML for testng to run the test
is parallel testing is possible in junit and testng
how you will rum the parallel testing
explain about the selenium grid
types of locator
what is xpath and what are the types of xpath
scenario based ..when textbox is dynamic changing ,for that how you will write the xpath
how to window handles
once after window handles and i need ti enter into the parent window..tell the logic how will you write
annotation used in testng and where we are using
what is constructor
define abstract class and write sample program
Explain roles and responsibilities
Write script for login page
How to move inside the frame and to back
Notepad read and open
Excel sheets read and open
Tell me about your framework
Select from Webtable
General
General
Core Java
Core Java
Selenium WebDriver
General - Testing
Core Java
Selenium WebDriver
Core Java
Core Java
Selenium - Locators
Selenium WebDriver
General - Testing
Core Java
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - POM
General - Testing
Selenium - Maven
General - Testing
General - Testing
Selenium - Database/MySQL / Oracle / SQL
General - Testing
General - Testing
General - Testing
General - Testing
General
Core Java
Core Java
Selenium - Reports
General
Questions are :-
1 Draw the architecture diagram of selenium inplementation in your project
2 Expalin what sdlc model u r using in ur project
3 How can you check whether a particulat text present in a webpage. What are the predefined method in selenium for checking this
4 How to check whether the check box is selected or in unselected without using
5 How to find whether the element is in visible or in hidden
6 difference between findElement and findElements
7 How you will handle pop up windows
8 what is testng
9 how you are handling keyword driven and datadriven framework in your project
10 What is mean by hybrid framework
11 How can u upload file in webpage
12 How u will handle popup in webdriver
1st round
14 What frame work your are using?
15 How can you handle pagenation in Selenium Webdriver
16 What are all locators?
17 difference between findelements and findelement
18 How to handle Popup window
19 how to handle alert?
20 difference between List and set
21 why we are using Set for Window Handle
22 Explain Map
2 nd Round
25 Explain Agile methodology
26 How you are using Testng with Webdriver
27 Difference in Testnng over Junit
28 draw the architecture diagram of your selenium Framework of your project
29 Waterfall model
30 defect life cycle
29 sdlc life cycle
30 whether u r handling webtable in your project
L&T Round 1:-
--------------------------------------------------------------------------
31 1. Tell about yourself.
2. Explain your project and its architecture.
3. What is the framework you are following, explain it.
4. Excel sheet coding
5. Diff between HSF and XSSF.
6. There may be possibilities for input data comes from .xls or .xlsx file.
21. What are the challenges you faced in your project? I said scrolling window. he asked below question.
22. Write the code for Java Script executor?
23. How will you handle window pop up? I said Robot and AutoIt.
24. What is mean by autoit? Explain its use. Write code for reading autoit file in selenium.
25. How will you go for automation project estimation? What are the factors will you be considering?
26. Who will be gathering the client requirement for your project?
27. How many person in your team? what are your responsibilities?
28. Who will be doing the manual test cases in your team?
29. How will you identify complex scenarios?
60 30. How frequently build is happening in your project? What is the minimum duration it goes to production?
Round 2
---------------------------------------------------------------------
61 1. Tell about your experience and project framework?
2. Diff between QTP and Selenium?
3. What is recovery how will you handle it?
4. How will you generate report in your project?
65 5. What is your automation experience?
HR Round
-----------
66 1. Tell about yourself?
67 2. Why job change?
68 3. You already have an offer. Why are u came here?
69 4. Will you attend other company interviews if we provide offer?
70 5. Will you be able to join bangalore location?
71 6. Did u travelled abroad?
72 7. Did you handled any team?
73 8. what is the take home you are expecting.
74 Array list linked list,hash set
75 dynamic polymorphism,
76 difference between Bug and defect,
77 alert,
78 difference between close and quit,
79 difference between navigate and get url,
80 Window handling,
81 testng annotation,
82 types of wait,
83 What is the purpose of static and constructor
84 How to co-ordinate two pages from this code(login page, Homepage, MyhomePage)
85 What is the purpose of constructor (this, PageFactory)
86 Explain how hashmap will work, what will happen if I provide duplicate key?
87 I have 3 static variables and I created 3 objects. How many copies of static variables will be created?
88 What is fluent wait? Did you ever used fluent wait any where?
Classification
Selenium WebDriver
General - Testing
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - Windows
Selenium - TestNG
Selenium - FrameWork
Selenium - FrameWork
Selenium - Uploads
Selenium - Windows
Selenium - FrameWork
Selenium WebDriver
Selenium - Locators
Selenium WebDriver
Seleium - Windows
Selenium - Alerts
Core Java
Seleium - Windows
Core Java
General - Testing
Selenium - TestNG
Selenium - TestNG
Selenium - FrameWork
General - Testing
General - Testing
General - Testing
General
How will u write the code for reading from diff file extention?
ormal class.
Questions are :- Classification
1 Give one scenario & asking to write the code
2 Code will cover the following points
3 1.Data need to be read from excel/CSV/data base Selenium - Database/MySQL / Oracle / SQL
4 2. Take screen shots Selenium - Snapshot
5 3. Update the pass/fail in excel Selenium - Excel
6 4. Handle exception handling Core Java
Written
1.)Gave 2Test:
text boxes for search. Have to input 2 search terms and
7 count the number of times search keyword appears in the results. Selenium WebDriver
8 2.)Need
3.)write atocode
writeToa test
method
this to pass the test
functionality so data from excel/csv/DB
that parallel execution Selenium - Database/MySQL / Oracle / SQL
9 has to be done in two different browsers. Selenium - TestNG
10 4.)Implement exception handling n take screenshot too. Selenium - Snapshot
Technical:
11 1.)Write Palindrome string code Core Java
12 2.)What are the collections Core Java
13 3.)what are the methods to handle exception Core Java
14 4.)which is the super class in java. Core Java
15 5.)DB connection in Java. Core Java
Managerial:
16 1.)Tell about your technical skills General
17 2.)What is an automation
3.)Will unknown exceptionsframework, hw doinu ur
will be covered create one?
scripts or General
18 framework? General
19 4.)Any challenges faced in the projects? General
Technical & Willingness:
20 1.)Tell abt ur projects from college? General
21 2.)How to get 8th max salary from a table? SQL
22 3.)How good r u in java? General
23 4.)Are you ready to learn? General
Questions: Classification
1 Introduce yourself General
2 Explain your framework Selenium - FrameWork
3 What is your role in your project General
4 What is constructor Core Java
5 Final & Finally Core Java
6 How to create an object Core Java
7 How to double click Selenium - Actions Class
8 How to mousehover Selenium - Actions Class
9 How to handle POPup Seleium - Frames, Windows
10 How to handle Alerts Selenium - Alerts
11 How to handle window Seleium - Windows
12 How do you run your scripts General - Testing
13 There are 2 methods A & B I want to run method B only if method passes. How to run using TestNG Selenium - TestNG
14 What is Maven Selenium - Maven
15 What is Jenkins? Where does Jenkins run. I'm Client or Server/ Selenium - Maven, Jenkins
16 GIT & GITHub Selenium - GITHUB
17 How to Pull & Push from GIT? Commands? Selenium - GITHUB
18 In a set of 100 testCase. I want to run only 20 testcases. how do I achieve that using TestNG? Selenium - TestNG
19 Agile Methodology General - Testing
20 Collections Core Java
21 How to pass values in selenium other than sendkeys Selenium WebDriver
22 How to get the text from Alert? Selenium - Alerts
23 How to pass value to the Alert Selenium - Alerts
24 Xpath - Absolute / Relative Selenium - Xpath
25 Dynamic objects - handling Core Java
26 Assert & Verify Selenium WebDriver
27 Drag & Drop Selenium WebDriver
28 TestNG annotations Selenium - TestNG
29 Listeners Selenium - TestNG
30 JDBC query Selenium - Database/MySQL / Oracle / SQL
31 Download/Upload file using selenium Selenium - Uploads
32 Screenshot Selenium - Reports
33 How do you manage writing your code? Do you write script for the functionality in the same script? General - Testing
34 how to pass parameters in testNG Selenium - TestNG
35 Synchroniation Selenium WebDriver
36 Class A & Class B are present, class A has method 1 and class B has method 2, How to call method 1 from class ACore Java
37 How to get co-ordinates? Selenium WebDriver
38 Frames Selenium - Frames
39 How to navigate back & forward in a browser Selenium WebDriver
40 Keyword driven framework Selenium - FrameWork
41 do you shared repository or single repository Selenium - POM
42 What are types of exceptions you generally use Core Java
43 method signature Core Java
44 1. introduce about yourself General
45 2. what is Agile-scrum process General - Testing
46 3. how many of you will be in scrum call General - Testing
47 4. what is SDLC/STLS/Bug life cycle. General - Testing
48 5. Models in testing General - Testing
49 6. what is OOPS. Core Java
50 7. what is encapsulation, polymorphism, Inheritance Core Java
51 8. Difference between Multiple and multilevel inheritance Core Java
52 9. what is interface and class Core Java
53 10. Define Public static void main Core Java
54 11. what is your folder structure General
55 12. write a program to display links using bylinktext Selenium WebDriver
56 13. write a program to handle alert pop up Selenium - Alerts
57 14. what are the locators Selenium - Locators
58 15. what is the framework used in your project General
59 16. What is the quality standards and structures followed in your Project General - Testing
60 17. what are the types of frameworks used Selenium - FrameWork
61 18. write the git commands to push changes and explain Selenium - GITHUB
62 19. Explain how jenkins is used. Selenium - Maven, Jenkins
63 20. What is synchronization Selenium WebDriver
64 21. How to set priorities and check in threads using java Core Java
65 22. Brief about TestNG annotations Selenium - TestNG
66 23. How to parameterize in testNG Selenium - TestNG
67 24. Explain Grid, can a single system act as both Hub and node Selenium - Grid
68 25. Explain about collections Core Java
69 26. what is the flow of java program Core Java
70 27. How to mousehover How to handle aletrs Selenium - Actions Class
71 28. Syntax of relative and absolute Selenium - Xpath
72 29. Xpath How are you sending reports to your client Selenium - Xpath
73 30. what are the annotations, TestNG Selenium - TestNG
74 31. TestNG annotation - priority, dependson,invocationcount,threadpoolsize,threadsize parallel Selenium - TestNG
75 32. what is dataprovider. Selenium - TestNG
76 33. what are listeners Selenium - TestNG
77 34. what is ©override Selenium - TestNG
78 35. what is the difference between Implicit/Explicit and fluent wait Selenium WebDriver
79 36. What are immutable classes and what is the access modifier for static & final Core Java
80 37. write a command to get database connection Selenium - Database/MySQL / Oracle / SQL
81 38. Regular expression Selenium - Regular Expression
e/MySQL / Oracle / SQL
e/MySQL / Oracle / SQL
Tell about urself?
How do rate yourself in java?
Whats are diff between abstract class and interface?
Whats This refers in java?
Whether static method can be overridden?
Can we call static method without using object?
whats finally block?
What about final?
What are the issue you have aced so far during automation?
How do switch between frames?
Can we execute same test cases in multiple browsers?
How do you achieve concurrent test case run?
What method do you follow to optimize the code?
How with POM structure?
Why do use maven projects?
Any other build mechanism have you heard of?
Jenkins can we automate build time ?
How good are you in SQL?
Questions are :- Classification
1 Bug life cycle? General - Testing
2 Smoke vs Regression testing? General - Testing
3 Various defect status meaning ? General - Testing
4 At what case smoke/regression is done ? General - Testing
5 Defect management tool and its usage ? General - Testing
6 Arraylist vs list? Core Java
7 SQL - how to find second largest value ? SQL
8 How to upload using Selenium? Selenium - Uploads
9 Framework model used? Selenium - FrameWork
10 Selenium disadvantages? Selenium WebDriver
11 Static vs final ? Core Java
12 final vs finally ? Core Java
13 Hub syntax ? Selenium - Grid
14 What is performance testing? General - Testing
Questions are :- Classification
1 java questions constructor Core Java
2 method over riding Core Java
3 why constructor used Core Java
4 Interface and abstract class Core Java
5 Static methods Core Java
6 How failure test cases are handled in selenium Selenium - Reports
8 TestNG attributes Selenium - TestNG
9 1. Write the selenium code to take the screen shot for the webpage ? Selenium - Snapshot
2. how to handle the dropdown in selenium and tell the approches to select the value for
10 the dropdown ? Selenium WebDriver
11 3. write the code to get the element in the table ?? Selenium WebDriver
12 // he gave me one table ..//
13 @Rate yourself in java - out of 10 General
14 4. what is inheritance?? Core Java
15 5.what do know about collections and its advantages ? Core Java
16 6. what is a string ?? Core Java
17 7. what is an abstract class ?? Core Java
18 8. why you choose testNG as your framework rather than taking JUNIT ?? Selenium - TestNG
19 9. what is the difference between ide and selenium webdriver ? Selenium WebDriver
20 10. tell me the list of annotations present in the testNG frame work ?? Selenium - TestNG
21 11. tell me the keywords in java ? Core Java
22 TR 2
23 1. Please explain the testNG framework need in your project? Selenium - FrameWork
24 2. have you used data driven to get the data from xl sheet ? Selenium - Excel
3. write a java program to replace the owels in the given string by its numbers ?? (a-1,e-
25 2,...) Core Java
26 4.Explain me about page object model ?? Selenium - FrameWork
/ photon interactive pvt ltd //
interview questions
27 1. Write the selenium code to take the screen shot for the webpage ? Selenium - ScreenShot
2. how to handle the dropdown in selenium and tell the approches to select the value for
28 the dropdown ? Selenium WebDriver
29 3. write the code to get the element in the table ?? Selenium WebDriver
// he gave me one table ..//
30 @Rate yourself in java - out of 10 General
31 4. what is inheritance?? Core Java
32 5.what do know about collections and its advantages ? Core Java
33 6. what is a string ?? Core Java
34 7. what is an abstract class ?? Core Java
35 8. why you choose testNG as your framework rather than taking JUNIT ?? Selenium - FrameWork
36 9. what is the difference between ide and selenium webdriver ? General - Testing
37 10. tell me the list of annotations present in the testNG frame work ?? Selenium - TestNG
38 11. tell me the keywords in java ? Core Java
TR 2
39 1. Please explain the testNG framework need in your project? Selenium - TestNG
40 2. have you used data driven to get the data from xl sheet ? Selenium - Excel
3. write a java program to replace the owels in the given string by its numbers ?? (a-1,e-
41 2,...) Core Java
42 4.Explain me about page object model ?? Selenium - POM
43 1. How proficient you are on Java? General
44 2. Been asked to write program for the below pattern Core Java
# #
# #
# #
# #
45 3. What would be the output for the following Core Java
int i=10
Switch(i)
{
Case 1:
S.o.pln("1");
Case 2:
S.o.pln("2");
Case 10:
S.o.pln("10");
Default:
}
What the o/p would be? ( There is no break)
46 4. OOPS concepts Java
47 5. can operator overloading be achived by java? Core Java
48 6. Types of inheritance Core Java
49 7. What is TestNG? And its annotations Selenium - TestNG
50 8. Parallel execution Selenium - TestNG
51 9. What is TestRunner? Selenium - TestNG
52 10. Dynamic XPath Selenium - Xpath
53 11. If ID value generates randomly what you would do to locate an element? Selenium - Xpath
54 12. Reverse the following Core Java
Condition : Automation should be reversed first
After then Testing should be reversed
AUTOMATION TESTING
without using string reverse function
55 13. String is mutable or immutable? Why? Core Java
56 14. Collection Core Java
57 15. Exceptions in Selenium Core Java
58 Technical Round 2:
59 1. Asked me to say about few methods available in my framework ( Wrapper methods ) Selenium - FrameWork
60 2. How do you achieve Data Driven Framework ? Selenium - FrameWork
61 3. Write a code to read data from Excel Selenium - Excel
62 4. Difference between Arrays and ArrayList Core Java
63 5. How do you handle exception ? Core Java
64 6. Been asked to write a program to display numbers which is greater than 10 using forlooCore Java
65 7. How forloop works ? Core Java
66 8. How do you handle Windows and Alerts? Selenium - Alerts, Windows
67 9. Been asked to write code for window handles Seleium - Windows
68 10. Why String is immutable? Core Java
69 11 static keyword and explain it in brief Core Java
70 12. What is constructor? Use of constructor Core Java
71 13. Xpath syntax Selenium - Xpath
72 14. deadlock in java Core Java
73 15. What is map? Core Java
74 16. Selenium Grid Selenium - Grid
S.No Questions:
1 To print multiples of 5 up to 50000 write the code
2 Scenario: login page(selenium code)
1. enter username, 2. passwoed, 3. click on login button
3 How to find the searching word from the displaying existing history ( from google)
4 Maven configuration in eclipse
5 Retrospective in agile scrum
6 Java method to find the searching keyword from the similar word?
7 How will you conform , the corresponding web page is loaded successfully or not
Classification:
Java
Selenium
Selenium
Selenium
Agile
Java
Selenium
Questions are :- Classification
1 What is This keyword? Have you used in your code. Selenium - FrameWork
2 What is Interface? Core Java
3 Diff b/w Interface & Abstraction? Core Java
4 About Static ? Core Java
5 how to call static method? Core Java
6 how to click the 6th element in webpage - webdriver, but elements not in one frame... Selenium - Frames
7 how to handle alerts Selenium - Alerts
8 code to retrieve data from excel Selenium - Excel
9 code to take snapshot Selenium - Snapshot
10 some questions frm linux........
11 What s virtual classes interfaces Core Java
12 Code to write TestNG classes and what are the parameters Selenium - TestNG
13 Code to write how to include and exclude groups Selenium WebDriver
14 Code to login to google Selenium WebDriver
15 Code to swap the 2 numbers without using 3rd number Core Java
16 What is polymorphism Core Java
17 Suppose there are 3 interfaces 3 simple functions how interface possible Core Java
18 What s string buffer string and differences between them Core Java
19 How many 1 m cube in 10 m cube Quantitative Aptitude
20 Abstract and concrete classes can we instantiate object Core Java
21 What is composition in java Core Java
22 Suppose there r 2 test cases to be executed in diff sessions is that possible Selenium - Grid
23 Try catch finally...when finally will be executed Core Java
24 What is binding and diff types of bindg Core Java
25 What is java reflection Core Java
26 Can we call private function outside the class Core Java
27 TestNG listeners Selenium - TestNG
28 - Can you brief about yourself. General
29 - Can you explain me about your current roles and responsibilities in your project. General
30 - What type of automation you do in your project. General
31 - Can you explain me your framework. Selenium - FrameWork
32 - What is BDD test approach, How is it different from normal test approaches. Selenium - FrameWork
33 - Explain the architecture of BPT(QTP, QC) and BDD (Cucumber JVM, Webdriver)
34 - What are the differences between C++ and java. Core Java
35 - How do you rate yourself on java on a scale of 1 to 10. General
36 - What is continous integration.
37 - Tools used for continous integration.
38 - What are your achievements in the past 3 years in hcl. General
39 - What is access modifier in java, and difference between protected, private, public. Core Java
40 - What are the challenges you see when do testing in your project. General - Testing
41 - Why are you looking for a change. General
42 - What do you know about paypal General
43 - Are you customer of paypal? General
44 - Can you brief about yourself. General
45 - What tools you use in QA automation. General - Testing
46 - What is selenium. Selenium WebDriver
47 - Explain about your selenium framework. Selenium - FrameWork
48 - What is the repositry you have used for objects in framework. Selenium - FrameWork
49 - Can you write a sample webdriver script for login functionality of gmail. Selenium WebDriver
50 - What are the different annotations in TestNG. Selenium - TestNG
51 - What is the use of @BeforeTest annotation. Selenium - TestNG
52 - How do you access the methods in TestNG class file along with parameters. Selenium - TestNG
53 - I have a package which has 10 class files, i would like to run first 6 class files in paralle Selenium - TestNG & Grid
54 - Write the structure of TestNG xml file for the above scenario with parallel value as "testSelenium - TestNG
55 - How do you do parameterization in testNG Selenium - TestNG
56 - How is dataprovider different from passing parameters from testng xml file. Selenium - TestNG
57 - How do you handle dependency tests cases in testNG. Selenium - TestNG
58 - Write codes for the following:
59 1. Check if the given string is palindrome or not. Core Java
60 2. Check if the given integer is palindrome or not. Core Java
61 3. Write a sample code for hashmap and hashtable. Core Java
62 4. write a sample code for threads Core Java
63 - Given an array int a[] = int a{1,2,2,3,4,4,5,5,6,7} Core Java
64 1. Find the duplicates in the above array and store in to a seperate array Core Java
65 2. Find the non duplicates and store in another array. Core Java
66 - What is the difference between hashmap and hashtable. Core Java
67 - Difference between stringbuffer and string classes. Core Java
68 - What is testing General - Testing
69 - What are different types of testing General - Testing
70 - What are the types of testing you know apart from functional and performance testing.General - Testing
71 - what is security testing General - Testing
72 - Where would you see yourself in the next 2 years General
73 - what is compatability testing. General - Testing
74 - What is code coverage General - Testing
75 - Why are you looking for change. General
76 - What do you know about paypal. General
77 - What are your achievements in your project. General
78 - What are the challenges you had in your project. General
79 - How would rate yourself in java out of 5. General
80 - What is garbage collector in java Core Java
81 - How do you achieve multiple inheritance in java. Core Java
82 - What is the difference between interface and abstract class. Core Java
83 - My application is dynamic in nature including objects and Core Java
84 - Write a program to find the prime number Core Java
85 - Some questions of reasoning, probability. Quantitative Aptitude
86 - How do you update your knowledge. General
87 - What is stlc General - Testing
88 - Can you tell me the output of each component in STLC. General - Testing
89 - Have you done anything innovative in the past 3 years for which you felt very happy? General
121
122 Given a scenario of any, at the end of flow, check the amount present in database is reflected in UI
123 Testing our Thought process: if a new requirement change has come and the entire process of it gets over in 10 days,
how can it be delivered in minimum number of days, what Change of process can b bought to the tables !
124 Current process structure
125 TestNG annotations
126 Web table
127 Processes n general
138
# Questions are :-
1 Functional and non functional test scenarios for google search
2 U have a link on webpage go to the web page check if it is disabled or
enabled if it is disabled then click on refresh button four five times to make it enable click on it multiple times till it gets enabled.
3 Aft the link is enabled click on the download button. U can't click on the link ,
u shld just check whether it is enabled or not.
4 You have to locate a button in a webpage which has nly id attribute which dynamically changes
whenever page is refreshed like 001,002,003,etc. How would you locate it.
Classification
Questions are :-
1 Tell about your professional experience?
2 Why do you want to switch your company?
3 What’s your current framework and why pom? advantages?
4 If I select calendar and I need verify the current date is available for selection how should I do? <Asked to write code>
5 How should I select particular option in the list box?
6 What are the locators you use in your project generally?
7 And then it went related to telecom and CRM questions?
8 What are the waits you know, differences
9 Difference bitween assert and verify
10 What will you do if locators are having dynamic values(xpath)
11 What will do if u want to navigate to previous page(s)
12 Write a java program to print longest even string given on input
Classification
General
General
Selenium - TestNG
Selenium
Selenium
Selenium
Selenium
Java
Selenium
Selenium
Java
# Questions are :- Classification
1 What is static concept with example? Core Java
2 what is array with example and how to implement array? Core Java
3 What is Collections? Core Java
4 what is inheritance ? explain in coding? Core Java
5 what is data types, primitive data types and others? Core Java
6 Arraylist vs list? Core Java
7 object ?
8 constructor ?
9 Methods and construtor difference
10 Exception handling - try throw throws and catch
11 how to type caste double value to interger or string?
12 Agile Methodolgy
13 what is the process in your organizion following in agile?
14 Sprint (Scrum) - how many days will take one iterationsn to complete( Estimations)
15 Scrum matser
16 product owner
17 product backlog
18 what are the annotations
19 diff b/w Invocationtimeout & timeout
20 What is the estame time for to convert junit to TestNG
21 If dropdownlist option india is selected automatically select value to Tamilnadu .
22 verify the value , it changed every single clik is performed.
23 Assertvalue
24 Selenium version
Questions:
Robert bosch first round intervew questions:
9
10
11
12
13
14
15
16
17
18
19
20
21
22
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Questions:
RBS Round 1:
1. How to identify the objects in qtp
2. Write pgm to count the number of Web edit elements displayed in single W
3. What is XPath and how to invoke
4. What is Relative XPath
5. Can user able to work multiple functional libraries at same time
6. What are all the components in automation framework
7. Given the bank transaction scenarios and need to write test Conditions an
8. How to call other action in first action
RBS Round 2:
1. Tell me about your framework
2. Tell me about what are all the methodologies used in your project
3. What is product owner role
4. Different between epic and user stories
5. Different between Test plan and Test strategy
6. Explain about HP ALM
7. Explain Defect life cycle
8. Syntax of Update and Insert query
9. Different between Assert and Verify
10. Challenges faced during automation
11. TestNG annotations
12. What reports you are using..
13. What are the locators you used.
14. What about XPath usage
1. Whats are locators how many are there?
2. Which is the best suited locator?
3. What is risk based testing?
4. What is xpath define it types?
5. What are the components of automation frame work?
6. What is relative xpath? Example?
7. What is absolute xpath? Example?
Explain your automation framework
Tell me the order on which TestNG annotations will be executed.
What is pom, its used
Write code for csv reading and writing
What is a Hashmap
Write test strategy for a new project involving e-mail like application integrat
How will you handle a 'star performer' in your team
How will you manage a team member who is not performing well after the re
Methods to handle multifunctional team
Questions on J meter
How do you convince a performance testing resource that two of his module
How to verify entered text?
There is a text box we need to enter text?
Where we use find elements and find element?
How to clear data from a text box?
How you compare two strings?
What's is inheritance?
How we can get the dynamically changing string value example: test@123?
What is pattern match?
What is regular expression?
There are 10 links in my page with same name how will you get and click the
How will you print all the items in the list?
There is a Web table and there are two columns (Index, Name) I have to find
Explain POM Framework and where will you specify the no. Of times your tes
Syntax for implicit wait?
How to switch to alert window?
Challenges faced in project?
What us autoit, have you have an idea on Cucumber?
ria and types of testing
that the issue is with the webservice stub
ond column?
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Questions:
primitive data types are store in stack
Size of float,double,long?
default value of boolean,char and short?
Access modifier-default,private and protected
what is local variable?
what is class variable?
what is variable?
what is wrapper class?
what is null pointer execption ,when it occurs?
when will the java program show following
error occurs
execption occurs
Both of them occurs
none of the above
Static binding use which informations?
i)type
ii)object
iii)both of them above
iv)none of the above
dinamic binding use which informations?
i)type
ii)object
iii)both of them above
iv)none of the above
what is method overriding?
correct format for main() method
can constructor be inherited?
does class contains a default constructor? True or false
compositoin referr as ?
I)has a relationship
II)is a relationship
which is faster string builder or buffer?
marker interface?
what is abstraction?
Set interface?
is it necessary to have finally after try block?
when is finalize() invoke by garbage collector?
what happen if keyword static is removed from main method?
i)compilation error
ii)programe compiler without any output
iii)programe compiler with expected output
highest precedence operator ?
i)(),[]
ii)++.--
iii)*,/
Iv)>>,<<
which arithmetic operator throws arithmetic execption
i)-*,/
ii)-!,-=
iii)->>,<<-
which is not a keyword?
i)static
ii)booliean
iii)void
iv)private
JRE function?
what is applet in java
what happen when static function in java is invoked using null reference object
which of the following is true in string in java
i)string is mutable
ii)string is immutable
iii)string is data type
Iv) none of the above
# Questions:
S.No Questions
1 Brief about your personal summary
2 Brief about your automation project
3 What is collection, what are the collections u used in your project
4 What is interface , say some interfaces you know?
5 Explain about testNG frame work?
6 What is the use of webdriver?
7 How can test your testcases with multiple inputs
8 Difference between list and set
9 How to handle multiple windows?
10 What is the return type of getWindowHandles ?
11 What is api, say some api names which is used in ur project?
12 How can you pass data to the excel sheet?
13 List some selenium webdriver exceptions
14 what kind of files will return reports
15 What are the difficulties you fased while automating ur project?
16 How to handle an alert
17 Have you involved framework development?
18 How you schedule the test runs
19 Rate your self in java out of 5
20 Any questions from your side?
Classification
General
General
Collections
Selenium
TestNG framework
Selenium
General
list,set
Windows
Windows
API
DataProvider
Exceptions
Reports
Selenium Challenges
Alerts
General
General
General
General
Questions
# are :- Classification
# Questions are :- Classification
1 1. Eclipse IDE and Selenium interaction - Architecture Selenium WebDriver
2 2. System.setProperty("webdriver.ie.driver", "path of ie driver.exe) Selenium WebDriver
3 In the above statement you have provided .exe. then selenium interacts with desktop based appln? Selenium WebDriver
4 Why we need drivers? Selenium WebDriver
5 3. Write a code to read file ( in java) Core Java
6 4. Syntax for Implicitwait and Explicit wait , Explain it in detail Selenium WebDriver
7 5. How to achieve file upload in Selenium ? Selenium - Uploads
8 6. Explain about Javascriptexecutor Core Java
9 7. What is POM? Selenium - POM
10 8. Have you worked on Cucumber? Selenium - FrameWork
11 9. I have to click an element. You are not supposed to use all possible locators. How would you achieve it? Selenium - Locators
12 10. Can main() method return type be int Core Java
13 frame handling c code
14 launch IE browser
15 sql code to pull empl id from two table both when emp id match
16 What is join
17 CVS file reading (flat file read)
18 What is xpath
19 sibling following
20 What is final keyword on variable and methods
21 What isstatic keyword
22 (String[] args)
23 What isOverridding concept
24 How to scroll down at page
25 What is BDD (cucumber framework)
26 What is bit Bucket
27 Different between CSS vs Xpath
28 How to get only string number anfrom special character from string in java
29 Different beteeen selenium 3.0 and older version
30 testnG Anotation
describve following
@test
@beforeclass
31 Continous Intergation tool
32 When Defect is Deferred
33 GIthub
Commit and Push
Pull
How you pull different branch code in your system
# Questions are :- Classification
1 Step1:Have a excel sheet with two columns(city,keyword) Selenium WebDriver
Step2:Goto
Step3:Pass sulekha,com,two
the datais from fields there field,select
One buttoncity
dropdown and another Search Text field. to search text Selenium WebDriver
Step4:Search field AJAX excel to it
field so search in drop
loads matching data,we needdown and data
to verify when u give
loaded keyword
as we typed,and collect
2 field.
those list and write the search result list in the excel file from where we took input.Below is the model how the Selenium WebDriver
3 output excel file should like..rs1,rs2..rs10=is the Ajax search result loaded.. Selenium WebDriver
4 Like that i have to do for six rows with diff values.
eg:
city Keyword rs1 rs2...rs10
chennai nokiashowroom a b c
5 Step5:After the result file generated it should be sent to a specific mail. Core Java
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Questions are :-
1.Exception is a class or interface..?
2.Will the below code work.. if try block throws exception
Try{
driver.findElement....}
Catch(Exception e){
}
Catch(NoSuchElementException){
}
3. If the catch block fails...why and whats the error u get..
4. There are five windows, how to switch to 3rd window to interact..
5. Dynamic webtable handling..
6. The network or URL is not working for you alone.. how do u trouble shoot it.. without any 1 help..
7. How do you handle if security authentication occurs.
8. What kind of negative testcases hav you automated..
9. Get the largest substring of non repeating characters.. in a string..
10. Number to binary..pg
Java program find the first repeated number in the list using very simple program I have used to for loop they didn't accept and ask me to optimize.
Second program given a 4 digit integer and ask me print the corresponding value like one thousand three hundred and thirty five for 1335
Reverse the word Am a hero to ma a oreh
If recursive program don't have an end then when it will stop for 32gb ram 1tb rom and intel core orocessor
Sort a value in object using collections like employee is an object and it has 3 variables like id, name, salary and ask me sort only the name using employee object
What is threat
Difference between synconiza and non synchronize
Difference between interface and abstract class and where to use interface over abstract class and vice versa and explain with a scenario for both cases
What is polymorphism
What is inheritance
Mutiple inheritance
What is constraints
What is normalization
Inner join query
Api testing questions
How to see the request and response
What is 201 response mean
What are the methods in rest api
Difference junit and testNg
Given a scenario like a ui and ask me write test cases
Another scenario write test cases for new launched browser
What is test plan
What is test strategy
What is software test life cycle
What is design pattern
Explain about my project
Explain about my framework
Explain about agile process
How to configure Jenkins
Explain MVC model in Java
Classification
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
Questions are :-
1. What is the framework used and explain the components of it
2. What is grid and how do you implement for your project.
3. I want to execute in two browsers and how can I achieve the same ?
4. What is the difference between Assert and Verify ?
5. How do you upload a file ?
6. How do you perform right click operations ?
7. How do you create a .bat file and configure a job in Jenkins?
1. Tell about yourself.
2. Challenges faced in Selenium? How do you overcome it?
3. In Java, Is it possible to use String object in switch statement?
4. What is Absolute and relative Xpath?
5. How will you handle multiple windows in Selenium ?
6. How will you handle dynamic elements in Selenium ?
7. Locator of an element contains multiple strings , lets say string 1 & 2 are predictable, string 3 is dynamically changing. How will you locate this element?
8. A web application is given to you, How will you automate the web application? Define the framework Structure?
9. What are the details that a automation test report should contain?
1.differemce between implicit and explicit wait
2.methid overloading and overriding
3.have you given any solution to reduce the runtime of regression suite in ur automation experience ...
4.How to read data from excel and what is ye difference between Apache poi and JXL
5.Will Apache POI read the excel row wise ?and how will you specify the sheet name here
6.have you connected to DB from selenium code
7.Have you worked on framework development from scratch ?
8..What are the initial considerations you will do before developing a framework?
9.Can you manage a team of 7 members for writing framework from scratch..rate yourself ...
10.ur day to day activities ...What will you do daily in your project
) why you need to switch job
2) what is webdriver
3) write logic to find even numbers and explain the logic
4) what Is static
5) what is maven and it's uses
6) how to get text from elements inside frames if you have three frames in application
7) write code for taking screenshot
8) what is this keyword used for
9) what are the dependency you used in maven
10) what is the version of selenium you are using and what you started with
11) why do we need main method...
12) what are exception and why we need to handle
13) how would you rate yourself in Java
14) will you extend on Saturday if needed
15) do you know web table
16) have you taken any course for selenium
Second round: This was with delivery manager where the questions were specific to project
1
2
3
4
5
6
7
8
9
Questions are :-
Round 1 F2F
There is a web table with a filter button how will you validate the name column contains the name that only contains the alph
User applied the sort filter for any of the column on the table how would you validate the values are sorted
Sql query for fetching all the names that contains a particular alphabet more than once.
Round 2 F2F
Explain the framework used in your project
Give any real life example of method overloading and overriding
If a class has 5 @Test annotations then how many times @BeforeTest would run
What is a singleton class
What is an interface
can we make a class static
Classification
Column Questions are:
1 How to use "Iterator"
2 what are the different ways to read data available (in market)
3 There is any method available like assert
4 In testng from where execution will start
5 Write Dataprovider code
6 What are the tags available in testNG
7 Difference bitween junit and testNG
8 Performance difference bitween chrome and firefox
9 Typecasting in XL reading
10 How to read the data from .xml
11 Front end questions html/css..
12 SQL queries
Classification
Questions are :-
1 Tell me about yourself.....
2 what is the framework you used in your project
3 What is difference between hybrid and data driven frame work?
4 Can we run multiple suites using Test NG.xml
5 What type of annotations we use?
6 explain about grouping in testng?
7 What is Data Provider?
8 What type of group concepts you use?
9 Difference between Method Overloading and Method Overriding
10 Test Plan and Test Strategy
11 Can we run multiple suites using TestNG
12 Explain about Data Providers in TestNG
13 Interface and Abstract Method
14 How to take Screenshot in WebDriver which method we need to use
15 Palindrome program
16 sorting program
17 explain Interface
18 Constructor
19 abstract class and methods
20 difference between setSpeed and thread.sleep
21 explain about your framework
22 Tell about TestNG Annotations
23 Difference between list and Set
24 what is collections
25 Oops
26 what is stack class
27 program for reverse string
28 What is blank final variable ?
29 What is static class loading and dynamic class loading ?
30 Difference between Iterator and Enumiterator?
31 How to select 3rd element from the list of elements?
32 How to refresh the browser in selenium
33 what is Cucumber feature file? What it will contain?
34 what is Step definition file
35 What is DryRun?
36 What is background in cucumber
37 What is Runner in cucumber
38 Write a prog Reverse string « tech » without using inbuild function or methods
39 Write a prog to add strings in list and use iterator to transverse
40 How you will upload a file
41 Explain about tags in cucumber and where you will mention tags on feature file
42 How you will pass data using parameter in testng
43 Genernal question about API testing
44 Will map keys can be duplicate
45 Is Map inserts collection class ?
46 What is object repository
47 Write a code for scroll using JavaScript executor
48 How to convert list to set write a syntax
49 What is scenario and scenario outline
50 What all java concepts you have used in selenium
51 Explain this keyword in java
52 What is super class and super keyword in java
53 Given a scenario you have multiple data each run the test case should be run in different environment
54 How you will intergrate extend reports in cucumber
55 Write a code for extend reports
56 Given a scenario you have conflict with your developer how you will solve it
57 What is retrospective document in agile
58 How to schedule job in Jenkins
59 What is the format for schedule time in Jenkins
60 Reverse String program in multiple ways
61 How will you get all dropdown values without using select class
62 Cucumber keywords
63 Wath are the tags used in cucumber options
64 How to handle multiple windows
65 Explain alerts, frames?
66 Explain Collections in java
67 Difference between map and set and list?
68 Explain Locators in selenium
69 WAP for Fibonacci program
70 Difference between Testng and cucumber
71 Rate urself in java out of 10…
72 what are the major five parameters to ensure before start the framework in your project?
73 what is the difference between frames and iframes?
74 how to iterate the multiple frames with id is having frame1,frame2 and frame3?
75 how to use jenkins and how it works?
76 What do you know about remote webdriver?
77 write the script for chrome browser initiation and explain how it works
78 Explain synchronization
79 If suppose admin user is having no alert popup and user is having alert popup and then how to handle this alert
80 how to write the script for WebDriverWait for alert
81 Explain hashmap
82 Explain Exceptional handling
83 Can we have multiple catch blocks if yes explain?
84 explain interface and abstract methods
85 Write a program for , string str = "geeks for geeks";
86 convert each first character in each words to upper case
87 String = "vignesh waran.B"; print the letter /letters after the dot(.)
88 Difference between Hashmap and Hash Table
89 What is Method overloading n Method overriding,other name of those?
90 Write a pgm to get input from the user n print it in the console
91 Diff bw String, String buffer and String builder . Explain with a program for immutable.
92 What are the difference between throw and throws.
93 What is the Super class for all the selenium exceptions.
94 What all the exceptions u came to know in selenium.
95 How to print the values from drop-down
96 Write a Pgm to find the duplicate values.
97 Write a property which will not allow the parent class to inherit the child class properties
98 What is Enum, did you used any where in ur project
99 What is Difference between driver.get and driver.navigate
100 Write a selenium code to load Google page and type in the text box.
101 Why do we need System.setProperty
Classification
General
General
Selenium - FrameWork
Selenium - TestNG
Selenium - TestNG
Selenium - TestNG
Selenium - Excel
Selenium - TestNG
Core Java
General - Testing
Selenium - TestNG
Selenium - TestNG
Core Java
Selenium - Snapshot
Core java
Core java
Core java
Core java
Core java
Selenium - TestNG
Core java
Core java
Core java
Core java
Core java
Core java
Core java
Core java
Core Java
Core Java
Selenium - Snapshot
Core Java
Core Java
Column Questions: classification
1 Remote web driver is an interface or class?
2 asked to write about Chromedriver driver=new Chromedriver. And asked the diff between remote webdriver and chrome driver
3 How can we call a method from other class without inheritance
4 Asked to write different xpath for the scenario he gave
5 diff between string and string buffer
6 How to write xpath using css selector
7 How to write xpath using two attributes to locate same web element
8 Tell me overloading method tat u came across in selenium
9 What is the webdriver version tat u started of with ur career and wat version u r using now
10 what is the difference in webdriver version 2 and 3
11 whether windows.maximize will work in version 3
12 How will u write xpath for dynamic values
Questions are :-
1st round was completely on project that we have done and the framework architecture
2nd round
Selenium based
13 1. If you have 100 buttons on a webpage how would you click on all of them
14 2. How would you iterate through all the options from a drop-down
15 3. Difference between class and abstract class
16 4. Write a simple program for thread implementation
17 5. Explain framework architecture
18 6. How do you create a text file in a particular location
19 7. Data provider concept
20 8. driver.findElement(By.id()).Click how do you achieve this type of method chaining in java
Classification
Questions are :- Classification
1 Telephonic
3 Give professional introduction about your self General
4 How web services will work? General
5 Explain your framework Selenium - FrameWork
6 Explain important OO concepts Core Java
7 What is reflection class in Java, where have you used in your framework? (Got Selenium - FrameWork & Reflection
these because I told I know what it is)
8 What is factory class? (Got this question because I told I know basic design Core Java
patterns)
9 What you know about the thoughtworks? General
10 What are the build tools you have used? What you think maven is better than ANT. Selenium - Maven
12 1st Round
14 Tell me about yourself and project General
15 Explain your framework (Had to right full flow, even with codes wherever they Selenium - FrameWork
asked to write). {This question took almost 1 hour to explain them}.
16 Explain inheritance, interface, abstraction and polymorphism Core Java
17 What is virtual invocation (in C# why to use virtual keyword) ? Core Java
18 Since I mentioned DS & Algo in my resume, I got questions from Recursion, Data Structure
HashMap, Stack and Queues (Questions like where to use what)
19 String s = "I am a wonderful person". Find the number of occurrence of each Core Java
letters using any programming language.
20 What is maven? What is its life cycle? Selenium - Maven
21 What is testNG? How testNG will identify the annotations(How it will decide which Selenium - TestNG
one is first, which is next and which is last)?
23 2nd Round
25 How can you write custom exceptions? Core Java
26 How will you test a bulb, which is very expensive. Feature to test: Company claims General - Testing
that if you drop the bulb from 100 feet it won't break. Apply some test
27 How to test WinZip. Explain both positive and negative scenarios.
methodologies. General - Testing
28 There is application which accepts numbers from 0-9999. And returns the output Core Java
in words. Write a program for the application.
29 eg: input: 10, output: ten
30 input: 450, output: Four hundred and fifty
31 Write the positive and negative test data for the above question. Core Java
32 What is test plan and what are the sections in it? General - Testing
33 How you will measure the test coverage? General - Testing
34 There is a partially built application for which you don't have test scenario or test General - Testing
cases. How will write the test cases , on what basis and how will you decide
36 whether
3rd Round your test cases covers all the functionality.
38 Aptitude test (There were set of standard 11 questions which consist of flowchart Quantitative Aptitude
problems, in thought-works hand book)
39 Speed Test (There were 50 simple questions which need to be completed in 12 Quantitative Aptitude
minutes, Rule: Should not jump to other questions, need to go through all the
41 4th Roundone by one).
questions
43 Manager round: This was more likely to know each other, there were no particular General
questions. They wanted to know what I am , my interests, where I want to see
44 Later
myselfthey explained
after aboutlong
4 years. How TWIfor 15 mins,
would like towhat
staybusiness they will do, their work
in TW etc. General
toward government projects, free projects they are doing for society etc.
48 This was purely non technical. There is no right or wrong for these questions, it is General
purely opinion based.
49 Tell about your self which is not there in your resume General
50 Mention 3-4 things that you think which need to be changed in our country.(There General
were lot of discussion here)
51 If you become a PM of the country, what are the necessary steps you will take in General
order to correct/change the points you told for 2nd question. (There were lot of
52 discussion
Whether 'Ghar Vapsi' program
and debate here) going in north India, is right or wrong. What is your General
opinion and why?
53 Supreme court has opposed homo sexuality in India, What is your opinion and General
why? (I told it should be banned/punished, so there were lot of discussion here to
convince him why I am opposing it too)
Questions are :-
1 1. Introduce your self
2 2. How long you are in selenium and pls explain about the process you followed..( frame work explaination)
3 3. Differents betweek absolute xpath and relative xpath
4
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Classification
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Questions are :-
1. If am giving you one project, how will you automate that?
2. How many scripts hav you developed and name some of them?
3. Can we do performance testing in selenium?
4. Application contains menus at the top and at the left side panel there will be 3 links, upon clicking 3 link application will load some datas in a table. How you will com
that datas with database
5. What will you do if the tag name changes dynamically?
6. How to call java class in the sequence java class1-> java class2-> java class3 then from java class2-> java class4?
7. Tell about yourself and your selenium experience?
1. What is selenium and what are the tools available?
2. QTP vs Selenium? Which is better?
3. Possible ways to identify an element
4. Explain your framework
5. Advantages of testNg
6. Problems in using xpath
7. Challenges faced in selenium
8. Briefly explain about your project
9. What are the different types of waits in selenium webdriver and explain it with example?
10.In a given table, email address of the employee is unique and that is any column of the table and you need to find the name of the person and that will in 1st colum
the table based on the email.
11. Without using Select class methods, how can you select the dropdown values?
12. How can you find the parent tagname of an element if given id, name or xpath
13. Tell about yourself
14. what is junit
15. annotation in junit
16. @ Ignore what is this
17. Xpath?
18. SOAP
19. script for google page
20.D/B explcit wait & implicit wait
21. select multiple values from list
22. script for tab
23.how to select the sub tab from tab where subtab is available only on hover
24.handling alert
25.Issue in IE using selenium
26.diff b/w get window handle & getwindow handles
27.selenium tool suite
28. frame work
29.how to get date from excel sheet
30.Apache POI
31.build tool used
32.Selenium or QTP (which one is better)
33.Jenkins & Jenkins
Verizon interview :
Round 1
Xpath- scenarios
Project details
Framework used
Challenges faced
Round 2
Xpath
TestNG
Round 3
Passage reading
Comprehension
5mins have talk bout a picture
5mins have to talk bout a topic
Grammar
Listening skills
WRP to find the max of two numbers an store them in a Map.
Difference between vector and arraylist
Why using generics for map. What is happening inside the collection?
What is an interface - few question around interface and inheritance
Constructor override related questions
Primitive data types.
using generics in java collections..
How is data stored in a String class.
Database jdbc. How to begin a session and close a session. Before Connecting to database he said thr I something we do to begin a session. I dint know. 😐
Related to sikuli.. Uploading multiple files using sikuli.. About the transactions happening during the file upload. How to rollback to the previous file a transaction failed
Roles and Responsibilites in you project
What Framework you use and why you use it?
Tell abt yourself
Advantages of Testng
Diff.Btw Selenium V2 and Selenium V3
What is Data Provider
Code to get values from xl
Selenium Grid
Window Handle scenarios
Extent Reports
Expalin your project and frame work used
Parallel execution
about drivers(firefox, chrome)
Code to launch browser and get url
What is your role
What is Apache POI?
Questions from our project scenarios
What are the difficulties faced in reporting
What is Hash Map and where you use it in your Project
How is Parallel execution done in selenium
What is Maven?Is Maven a Framework?
How to Handle Frames?
Provide some Negative Scenarios you have used
How to Handle Exception?
What is assertion?
Explain Apache POI?
Scenarios regarding Static Method
Difference between Arraylist and linked list ?
How you will do parallel testing at method level ?
How to reverse a string with out inbuilt methods ?
Explain about set and list interface ?
What is web driver ?
Explain about feature file briefly ?
Write a program in Storing array of integers in arraylist
Difference between static and non static methods
Difference between normal array and array list ?
Explain about select class and tell me the methods you avair ?
Explain Git overall flow in your project ?
How you rate yourself in java oops concept
Explain about Synchronize and thread concept in java
when there are multiple windows opened how will navigate to 5th window using for loop
What is maven and how to run testNG and selenium codes if ur maven dependencies are not present
How to read data in excel without using iteration.
What s the use of robot class in selenium
How to handle desktop window based application using selenium??
How to upload desktop files in selenium?
Is it possible to automate the captcha in selenium?
Classification
General
General
General - Testing
Core Java
General
Selenium WebDriver
General
Selenium WebDriver
Selenium - FrameWork
Selenium - TestNG
Selenium - Xpath
General
General
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - Xpath
General
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium - Xpath
General - Testing
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver - Actions
Selenium - Alerts
Selenium WebDriver
Seleium - Windows
Selenium WebDriver
Selenium - FrameWork
Selenium - Excel
Selenium - Apache POI
Selenium WebDriver
General
Selenium - Maven, Jenkins
Selenium - Xpath
General
Selenium - FrameWork
General
Selenium - Xpath
Selenium - TestNG
General
General
General
General
General
General
core java
core java
core java
Selenium WebDriver
Selenium - GITHUB
core java
core java
Selenium WebDriver
Selenium - Maven
Selenium - Excel
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Selenium WebDriver
Questions are :- Classification
1 First Round Technical Questions
2 1. Tell about yourself General
3 2. What kind of Framework have you implemented in your project? Selenium - FrameWork
4 3. Describe the Structure of the Framework Selenium - FrameWork
5 4. Write a program of Reverse of String Using String methods Core Java
6 5. How do you execute your framework test cases Selenium - FrameWork
7 6. Write a program to copy all contents from one excel sheet to another sheet? Selenium - Excel
8 7. What if I have 50 test cases and how do I execute all those test cases? Selenium WebDriver
9 8. What all Test Estimation Technique you know of? What Test estimation technique you General
applied
- Testing
in your project?
10 9. In my browser, I face security certificate violation how do I avoid that using TestNg script?
Selenium
What- TestNG
kind of desired capability you would be using it to avoid it?
11 10. How do you change your webdriver to run in remote machines? Selenium - Grid
12 Second Round Technical Questions
13 1. Tell about yourself General
14 2. Explain Framework Implementation in your project Selenium - FrameWork
15 3. What all Challenges you have faced in selenium General
16 4. Do you have the knowledge of continuous integration like Jenkins Selenium - Maven, Jenkins
1st round
17 Draw the architecture diagram of selenium inplementation in your project Selenium WebDriver
18 Expalin what sdlc model u r using in ur project General - Testing
19 How can you check whether a particulat text present in a webpage. What are the predefinSelenium WebDriver
20 How to check whether the check box is selected or in unselected without using Selenium WebDriver
21 How to find whether the element is in visible or in hidden Selenium WebDriver
22 difference between findElement and findElements Selenium WebDriver
23 How you will handle pop up windows Seleium - Windows
24 what is testng Selenium - TestNG
25 how you are handling keyword driven and datadriven framework in your project Selenium - FrameWork
26 What is mean by hybrid framework Selenium - FrameWork
27 How can u upload file in webpage Selenium - Uploads
28 How u will handle popup in webdriver Selenium - Windows
Round 1:
29 1. What are the Tools you know?. General - Testing
30 2. Draw your application and explain the flow: General
31 Asked to write code for the above and explain. General - Testing
32 Asked to use HTMLdriver. HTML
33 Asked to use Xpath and CSSSelectors for locating. Selenium - Xpath
34 (So i explained the flow covering: dropdown, alert, frame, windowhandles, Excel read data,)
35 3.Asked to write program for the below scenario:
36 Consider a website selling books. After some 20 days: you have to look for the no. of booksSelenium WebDriver
37 I explained with the dynamic webtable concept:
38 Get the no. of available books using findElements and so on.
39 The interviewer said: there will ne flag called sold/ not sold and you can use that... Anyways he was satisfied with my answer.
40 4.Asked about other interests/hobbies. General
41 5.Why looking for change? General
Round 3: HR Round:
48 1.Why looking for change? General
49 2.Your positives & negatives. General
50 3.If we hire you: what would be the 3 things you will be looking for? General
51 4.Ready for relocation? General
52 5.Current CTC and Expected CTC? General
53 1. About framework? Selenium - FrameWork
54 2.structure of framework? Selenium - FrameWork
55 3.Testng annotations in which oder it will execute he gave the senario. Selenium - TestNG
56 4.Testng dependsonmethod senario to explain Selenium - TestNG
57 5.drop-down he said to select last dropdown and 10th drop-down Selenium WebDriver
58 6.how will u click submit button without using locators?(using Actions class). Selenium - Locators
59 7.three windows opened have to click ok button in all the windows and come back to the Seleium - Windows
60 8.Testng groups? Selenium - TestNG
2nd Round -
78 1.Explain about your project and my role
79 2.Explain about my framework
80 3.why i am not using craft and using POM (reason)
81 4.Explain POM framework(On board)
82 5.How I used TestNG annotation
83 6.Why I used jenkin and Maven in project
84 7.Why I want to switch company
85 8.Ready to join in 40 days ?
89
mit button in it. How do you write code for the disclaimer page
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
a.
b.
60
Round 2: (HR Inte
61
62
Wipro Questions:Tech
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
Questions are :-
Tell about urself.
Automation experience in your project
What is Xpath. Write Xpath for given scenario. [Navigate upwards]
Write xpath of two text boxes which don’t have any locators to find.
How to select value from Dropdown
What are the Waits in selenium. Explain briefly. Write code of each. [ImplicitlyWait, Sleep, WebdriverWait]
Exception Handling. Write code for given scenario.
Use "Throws" keyword.
Use of "Finally" keyword
Diff - 'Final' & 'finally'
Diff - 'List' & 'Set'
Diff - 'Abstract Class' & 'Interface' with Code
POM
Page Factory
**Did u develop any Framework
How to take screenshot - Code
**Real time experience in BUILD tool [Apache Ant or Maven]
**Version Controlling
Member access modifiers
Diff - 'Array' & 'ArrayList'
How to Sort using 'Collection
Questions in Round 1:
1. What kind of framework you have worked? Explain it?
2. Write xpath to locate the div that has no tags?
<div class = 'try123'>
<div>
3. How will you run Smoke test cases seperately?
4. Explain about static and final key words?
5. Explain about interface and abstract class? Why interface than abstract class?
6. Do you know collections in java?
7. Write a program to loop through Arraylist?
8. "09/24/2015". seperate numbers only from this string.
9. What is the difference between Commit and Push in Github?
10. Writer a program to keep current browser but close other browsers?
11. There are three webelements having same property. Write a program to go to third one?
12. How will you push your code to server in github?
13. Brief about your automation testing experience?
14. What is protected access modifier?
15. Do you know Page object model framework and Pagefactory?
16. Write script to drag drop a text box?*9
Questions in Round 2:
1. Write a program to find occurrence of every characters in following string:
String s = 'Welcome to Wipro";
2. Have you worked on Page object model framework?
3. Implicit and explicit wait. difference?
4. Thread.sleep and Thread.wait. difference?
5. Inerface and Abstract class. difference?
6. Why interface than abstract class/
7. How will you manage build?
8. What is the purpose of using Maven?
9. I am facing an error says 'Fast forward' while pusing my code to server in Github. How to resolve it/
10. How will you push your code to server in github?
11. How will you handle popups?
12. How will you run a machine in grid?
Wipro Questions:Technical
1. Write Selenium code for login page - enter username and password & login. We have to check resulting page url contains https and verify text of the heading of the
2. Write java program to print nos of integer array in ascending and descending order.
3. Write code to initiate chrome browser
4. Explain framework
5. Write xpath gave 3 scenarios - used contains, * instead of tag name, column in webtable
6. Have you written CSS for a element
7. Annotations in TestNG
8. Explain about Apache POI
9. What reports do you use
HR Round:General HR question
1. About work history
2. About automation experience and challenges faced
3. About current org, family etc
enligted round
take me through your resume
explain automation framework
why should n't we use selenium for .NET applicatoin
Annotation in Test NG
write a simple code in selenium that you developed last in your project
explain about your project
how do you rete your self in java
test data handling in your framework
Java programs like removing duplicates in an array and sorting it , checking for a word in a string
Basic selenium web driver questions and gave a scenario and asked to write a program which would handle both waits, pop ups , alerts and Windows .
TestNG concepts like @Test , handling groups , parallel testing code and was asked to write sample code for above.
Lot of Java questions including collections , real time scenarios were given and asked to write programs which would implement basic oops concepts.
how to find duplicate character in string "spirit of wipro
Write a program to Check two strings whether it is anagram or not
Explain about Page Object Model
Write syntax for Gettitle
How to call Java Script in Selenium
How to run Batch file using Selenium
How to switch to frame
Difference between Implicit/ Explicit wait
How to scroll down in Selenium
First Rount
Give a brief on yourself
Advantages of using BDD
Reason for implementing Cucumber in your project
Web table handling- In specific column check for specific value and Print the value of other column in the same row.
In what memory objects are getting stored in java
Is it possible to save file without anyname(eg:- .java). justify your answer.
What is .jar and .war, What do you know about that, did you used any where in your project?
What are the new modules in latest Java version.
Java prgm to find and print reoccurance of char in a String.
Write prgm- click on "department" menu then list of webelements getting displayed.
select all elements with word "echo" then click on the First element which again displays another list of webelements.
Print all elements with "echo" word from latest list.
2nd Round
General
Selenium - Xpath
General - Testing
Core Java
Core Java
Core Java
Core Java
Core Java
Selenium - GITHUB
Selenium WebDriver
Selenium WebDriver
Selenium - GITHUB
General - Testing
Core Java
Selenium - POM
Selenium WebDriver
Core Java
Core Java
Selenium - POM
Selenium WebDriver
Selenium WebDriver
Core Java
Core Java
Selenium - GITHUB
Selenium - Maven
Selenium - GITHUB
Selenium - GITHUB
Seleium - Windows
Seleium - Windows
Selenium - Grid
Questions are :-
1 Your experience and project background
2 What type of framework do you use?
3 What are your regular selenium activities?
4 How do you manage test data for Selenium tests?
5 Do you know RDBMS and what do you use?
6 How do you make reporting in Selenium?
7 How do you verify a given login button is named as “SignUp” and how will you confirm it is not “Login”
8 What statement do you use verify specific error message in the application?
9 What is your notice period and can you join earlier than 30 days?
10 Explain the framework that we have worked
11 Wat jar file is used for excel and why
12 What build tool is used and whether we have exp in maven
13 What is inheritance
14 What unit framework is used
15 How reports are generated
16 How do we write test cases
17 Asked to write some manual test cases
18 How do we handle dynamic web elements in webpage
19 If a text is displayed in different places in all subsequent pages how do we handle it
27 What are the framework used
29 Whether we worked on custom framework and existing framework - product and what are the possible as
31 How we build framework
33 If there are severity 1 test cases in all modules to automate how do we select and automate
35 How parallelly TestNG can be executed
37 If 1 thread of 1 machine is dependent on 3rd thread of other machine how can we execute
39 How to run the scheduler and to run the bat file
41 If there are 10 link boxes with 10 unique fields each boxes have then how many permutations we can have t
Classification
General
Selenium - FrameWork
General
Selenium - POM
Selenium - Database/MySQL / Oracle / SQL
Selenium - Reports
Selenium WebDriver
Selenium WebDriver
General
Selenium - FrameWork
Selenium - Apache POI
Selenium - Maven
Core Java
Selenium - FrameWork
Selenium - Reports
Selenium - POM
General - Testing
Selenium WebDriver
Seleium - Windows
Selenium - FrameWork
Selenium - FrameWork
Selenium - FrameWork
General - Testing
Selenium - Grid & TestNG
Selenium - TestNG
Selenium - Grid
Selenium WebDriver
Questions are :- Classification
1 Explain about SDLC life cycle. General - Testing
There is a Website to be given to you which shows information which is based upon the
countries you opened. For example in chennai it shows "welcome to chennai" and
2 Canada "welcome to Canada" how do you test them all in the same place? Selenium WebDriver & Java
Assume that you have different antivirus softwares and how will u choose which one is the
3 best. General
If u want to add some additional features to insurance application for the user friendliness
4 beyond what was the requirements to be given what will u prefer? General
5 The resolution "differ" in the bug report what it means? Selenium - Reports
6 What is regression testing and retesting? General - Testing
7 What is the purpose of testng framework? Selenium - TestNG
8 Why we are writing testcases? General - Testing
9 How your ticketing system works? General
10 Tell me about yourself. General
# Questions are :- Classification
1 Program to find string palindrome
2 Delete vs truncate in sql
3 Why can't we use == to compare string
4 Types of testing methodologies
5 How to run 3 cases parallel and next three cases in series
6 Fibonacci program
7 Java star patterns
8 Agile methodology
9 Explain the framework you used
10 What is POM
11 what is testNG
12 What is annotations
13 What is Attributes
14 Why do we need testNG
15 SQL groupby
16 SQL having clause
17 Diff between groupby vs orderby
18 What's junit
19 Advantages of testNG over junit
20 How do you add two strings
21 How to declare strings using array