Sel Interview Questions

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 48

Company Name # Questions

HCL 33
Infosys
CTS 50
Altimetrik 20
Amazon
Paypal 10
Thoughtworks 33
Aspire 16
Sulekha 5
Hexware 16
CSS Corp 9
Wipro 21
Xerago 10
L&T 12
CapGemini
CSC 16
Accenture 45
Payoda 14
ISG Novasoft 12
McWane 9
Virtusa 14
Xchanging 9
Bank of America 25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
What do you know about Selenium? How long you are working with Selenium and what version?
What are the technical challenges that you faced with selenium?
What are the test types supported by Selenium?
Does Selenium support mobile internet testing?
Does Selenium support Google Android Operating System? What mobile devices it may support?
What is Selenese?
How do you connect Database from selenium?
What test can Selenium do?
What is difference between QTP and Selenium?
What are the types of text patterns available in Selenium?
What are the disadvantages of using Selenium as testing tool?
How do you handle the secured connection error in HTTPS?
List the browsers, OS supported by the Selenium
Does selenium support flex? How does it understand those objects?
When you have selenium issues, what approach you take to resolve it?
What langugaes are supported for the selenium development?
Name 5 different exceptions you had in selenium webdriver and mention what instance you got it and how do you resolve it?
How will you execute your login script using chrome browser from your editor using selenium?
How do you create html test report from your test script?
How do you manage the code versions in your project?
What are the other tools that you have used to successfully implement selenium in your project and for what as well?
Have you worked in Maven, Junit, TestNG?
How to use regular expressions in Selenium?
I like to know all the methods supported in webdriver and its syntax. Where do you think you can find it?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
What are the capabilities of Selenium IDE?
What are the challenges with Selenium IDE?
Which are the browsers supported by Selenium IDE?
How to execute a single line command from Selenium IDE?
How to insert a break point in Selenium IDE?
How to debug the tests in Selenium IDE?
How to export the tests from Selenium IDE to Selenium RC/WebDriver in different languages?
How to export Selenium IDE Test Suite to Selenium RC Suites?
Which is the command used for displaying the values of a variable into the output console or log?
What are the limitations of Selenium IDE
Which wildcards does SIDE support?
If a Selenium function requires a script argument, what would that argument look like in general terms?
If a Selenium function requires a pattern argument, what prefixes might that argument have?
What is the difference between an assert and a verify with Selenium commands?
Difference between waitFor and pause commands ?
How to take snapshot using IDE?
How to pass data when rerunning scripts in IDE?
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
How does webdriver identifies UI Elements?
What tools - do you use to identify the Xpath?
How Selenium Grid works?
What are the capabilities of Selenium WebDriver ?
What is selenium Server default port number?
What is new about Selenium 2 vs Selenium 1?
How do you select second value from a drop down menu ?
Which Selenium command(s) simulates clicking a link?
How to scroll the webpage using webdriver?
How to set focus on an object?
Write a sample code to run a javascript using webdriver code?
How to find the present URL on the application?
How to find the number of browsers opened by selenium?
Write a sample code to forcibly close all open browsers
How will you simulate a keyboard action using webdriver? Write a sample code to perform browser refresh
Difference between click and clickandwait statements?
How to run the selenium webdriver scripts in the background? Write a sample code to perform that action.
I am getting "Unable to bind to locking port 7054" . What does that mean?
I have a hidden webelement in a page and like to get the static text. How to do that?
How do I know when a page has finished loading?
How do you handle secured connection error in HTTPS ?
Does WebDriver support file uploads?
I got an unexpected pop up error in my screen, how will you handle in your script?
Have you worked in Ajax? What kind of challenges you have faced during web Ajax and how did you overcome?
How to click an element which resides in a frame? Sample code pls
Desired capabilities and Actual capabilities - What are the differences and how do you use them?
I have to find the color of a specific text. How can I do that?
I need to find each href of all links in a page. How do you do that?
Difference between webdriver and remotewebdriver?
How will you handle the untrusted SSL certificates?
I have a table with 8 rows and 4 columns and I need to read all data from the table. How will you do?
I have menu -> menu item -> child menu item and all works by the mouse over. How will you perform the operation?
I like compare images between 2 browsers. How will you do that?
Write a program tp find the count of number of edit fields in a page.
When running in hub, I have set my desired capabilities for my script to run in IE 8 and but there is no exact matching capabiliti
I like to drag drop several data from one place to another. How shall I do that?
When I start my firefox driver, I like to have the home page is loaded as my project URL . How do I do that without using driver.
Difference between implicit and explicit wait. When will you use what?
Have you worked in Page Factory? When did you use it?
How will you identify the ip address of the machine that is running your specific script in selenium grid?
Write selenium webdriver code to kill the browser when it is not responding?
How will you perform mouse click using htmlunitdriver?
I have 2 firefox versions in my machine. Write a code to open the older version of firefox in my machine?
Write a code to know if there is a valid chrome installed in a specific machine?
How to get the page source using webdriver?
Write webdriver code to resize my browser to full screen?
How will you compare objects size between 2 different browsers say firefox and chrome?
1 Explain the Framework you are using
2 What is data driven framework
3 Where the test data will be stored in the FW
4 Components of Framework
5 How to count the links available in the form
6 Different types of locators. Which locator is your preference and why
7 Syntax of Xpath and cssSelector
8 In what format you are giving your report to client
9 Conversion process of Testing report to XSLT
10 Processor used in report
11 How to handle Authentication window
12 How to handle multiple window
13 Challenges faced in your automation project and how you overcome those
14 How to handle complex interaction - Action class
15 What kind of Frame work using in your organization..?
16 Explain about your framework architecure..?
17 Where did you stored all kind of xpaths in your framework..?
18 What is the HUB & Node..?
19 How do you run your test using a framework..?
20 Write the xpath..?
21 How to handle alerts using web driver..?
22 How to identify two fields(Radio button) in a page with same id..?
23 How to write a xpaths for Dynamic web pages..? (like facebook status, Filpakarts)
24 Junit - how do you used in projects..?
25 How do you handle popup windows in your projects..?
26 Why is Java platform/OS independent ?
27 Have you used collections in your code ?
28 What is the difference between Implicit and Explicit wait ?
29 Write any sample code -- Fibonacci series ...
30
31 Scenario --
32 I have three unique buttons in my page.(Display names are different)
33 The internal ID & Name changes on every page load.
34 I need to click on each button in sequence.
1 What is This keyword? Have you used in your code.
2 What is Interface?
3 Diff b/w Interface & Abstraction?
4 About Static ?
5 how to call static method?
6 how to click the 6th element in webpage - webdriver, but elements not in one frame...
7 how to handle alerts
8 code to retrieve data from excel
9 code to take snapshot
10 some questions frm linux........
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
What are the activities you are doing in your project?
Which frame work you are using?
Tell me about the traceability matrix?
Recursive functionality possible using Selenium IDE ?
SOAP UI - Could a output response obtained from one XML can be used as input for invoking other XML?
Write test cases for a scenario - eg.entering address
Framework - type/flow/structure?
Relative xpath - 3 nodes with same id value , 3rd node having additional character "xyz" - how to find relative xpath for the 3rd
SQL - Inner join related query
Structure of the framework?
where to keep your script files?
What approach you are using for selenium ?
can we do file upload thru selenium?
can we able to locate excel file in a system thru selenium?
what is test plan & test strategy?
Scenario:
Tomorrow your project delivery.Today your onsite co-ordinator saying that you missed one functionality?Then what will be you
1 1
2 2
3 3
4 4
5 5
7 7
8 8
9 9
10 10
Step1:Have a excel sheet with two columns(city,keyword) Step2:Goto sulekha,com,two fields there One button dropdown and
Step3:Pass the data from excel to search field,select city in drop down and when u give keyword to search text field.
Step4:Search field is AJAX field so it loads matching data,we need to verify data loaded as we typed,and collect those list and w
Like that i have to do for six rows with diff values.
eg:
city Keyword rs1 rs2...rs10
chennai nokiashowroom a b c

Step5:After the result file generated it should be sent to a specific mail.


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
50
What is the framework you are using?
Can you explain the framework functionality? deep dive..
Your role in your automation team.
Do you know Robot framework?
Explain TestNG XML structure.
How do you connect to a database in java
What are the different ways your database url can be ? apart from http://
Is it mandate to close statment object in DB code ?
Write code for db connection and walkthrough the code.
Can you explain about List Interface.
Usage of List interface (explained with select class).
Can you impose selectByVisibleText / selectByIndex methods on list interface reference created (continuation to above).
Without those methods how do you select the dropdown values
Ans: (ls.get(index).click()) where ls is the getOptions() reference.
How do you select the 2nd select value from the dropdown (selectByIndex)
How do you do parameterization in testNG.
Give an example for dataprovider.
some questions on Object class (can it have array type? why? etc)
How did you do parameterization in your framework
Why specifically JXL? whynot APACHE POI.
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 a
What type of reports you generate.
What are the ways in you can create your own customized html report (Ans: XML to HTML / directly in notepad)
Can you design a framework on your own and what would be your considerations ?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Explain the Framework you used in selenium
Configuration and Execution of testcases using Selenium/Maven/TestNG/Jenkins
How to find the nearest element to a given element using xpath
How will you trigger an event in selenium
How will you parameterize data in selenium webdriver
TestNG data parameterization using excel
Format of testng.xml and maven pom.xml
How will you take snapshot with Selenium Grid
Consider there are 6 methods in your class, you need to run the first three in sequential order and next three in parallel.How w
Consider there are two elements in a page with same id.How will you locate it ?
You need to identify a element inside a frame and then you need to click on the element/link outside the frame.Write a code fo
Java:
Encapsulation
Diff between overloading and overriding
How will you prevent a method from overriding
Diff between JDK and JRE. Which one of them is platform dependnet?
Inheritance with example. - Can secondary subclass can inherits the methods and variables of super class ?
1 Interface and abstractclass
2 string and stringbuffer
3 string a =""; string a= "";
4 diff btwn jvm and jre
5 diff btwn hashset and hashtable.
6 diff btwn arraylist and array
7 use of set - collection
8 method overloading and method overriding
9 polymorpism
10 assert and verify and waitFor
11 super keyword
12 find links and manipulation
13 print data in IDE - echo
14 Is string immutable.
15 stlc life cycle.
16 If you are getting a showstopper a day before delivery what would you be doing.
17 what ways you can declare string
18 use of javac and java
19 have you use ddata structures in your project
20 how do u rate yourself in java and webdriver
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
Can you brief about yourself.
What is the difference between hashmap and hashtable.
Difference between stringbuffer and string classes.
What is testing
What are different types of testing
What are the types of testing you know apart from functional and performance testing.
what is security testing
Where would you see yourself in the next 2 years
what is compatability testing.
What is code coverage
Why are you looking for change.
What are your achievements in your project.
What are the challenges you had in your project.
How would rate yourself in java out of 5.
What is garbage collector in java
How do you achieve multiple inheritance in java.
What is the difference between interface and abstract class.
My application is dynamic in nature including objects and
Write a program to find the prime number
Some questions of reasoning, probability.
How do you update your knowledge.
What is stlc
Can you tell me the output of each component in STLC.
Have you done anything innovative in the past 3 years for which you felt very happy?
What tools you use in QA automation.
What is selenium.
Explain about your selenium framework.
What is the repositry you have used for objects in framework.
Can you write a sample webdriver script for login functionality of gmail.
What are the different annotations in TestNG.
What is the use of @BeforeTest annotation.
How do you access the methods in TestNG class file along with parameters.
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
Write the structure of TestNG xml file for the above scenario with parallel value as "tests" and "classes"
How do you do parameterization in testNG
How is dataprovider different from passing parameters from testng xml file.
How do you handle dependency tests cases in testNG.
Write codes for the following:
1. Check if the given string is palindrome or not.
2. Check if the given integer is palindrome or not.
3. Write a sample code for hashmap and hashtable.
4. write a sample code for threads
Given an array int a[] = int a{1,2,2,3,4,4,5,5,6,7}
1. Find the duplicates in the above array and store in to a seperate array
2. Find the non duplicates and store in another array.
1 Bug life cycle?
2 Smoke vs Regression testing?
3 Various defect status meaning ?
4 At what case smoke/regression is done ?
5 Defect management tool and its usage ?
6 Arraylist vs list?
7 SQL - how to find second largest value ?
8 How to upload using Selenium?
9 Framework model used?
10 Selenium disadvantages?
11 Static vs final ?
12 final vs finally ?
13 Hub syntax ?
14 What is performance testing?
1
2
3
4
5
6
7
8
9
10
11
12
Write a code to find number of links in a webpage , also print only the enabled links in that page ?
Frame switching method?
Is it possible to execute the webdriver code without opening the browser?
Framework - model ?
How report generation is done through framework?
Bug life cycle and its description in brief ?
Types of testing in detail ?
Testing priority ?
% of automation tests and manual tests in project ?
In what cases automation is carried out ?
Release iterations ?
Critical regression testing to be carried out with limited bandwidth and resource in the last minute....how to handle?
1
2
3
4
5
6
7
8
9
10
Explain about SDLC life cycle.
There is a Website to be given to you which shows information which is based upon the countries you opened. For example in
Assume that you have different antivirus softwares and how will u choose which one is the best.
If u want to add some additional features to insurance application for the user friendliness beyond what was the requirements
The resolution "differ" in the bug report what it means?
What is regression testing and retesting?
What is the purpose of testng framework?
Why we are writing testcases?
How your ticketing system works?
Tell me about yourself.
est them all in the same place?
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
Round 1:
Brief me about your automation career
Explain your framework
How would you connect to your excel? Which class would you use for it?
What is the machine readable format or which class converts any of your document/file into an object?( let me know if you did
How would you click on a button on which webelement.click doesn't work?
You have a webtable.. Consider Column one has name of the country and column 3 has weather conditions of the country.. W
7. 14,28,20,40,32,64,56,112..
Logic -
The difference between 14,20,32,56 is
0,6,12,24
The differences between 28,40,64,112 is
0,12,24,48

Round 2:
Tell me about your career
Why would you want to leave CogniZant
You think your current role isnt challenging?
What is the most challenging issue you faced in your project??

What kind of framework u hav used in ur project?


Tell me the different tools that u hav used till now in ur project and explain?
Draw and explain the folder structure of ur project and different classes that u hav in each folder?
Explain the complete flow of ur code?
Draw and explain ur framework?
How u ll generate report in different format?
Types of reports that u hav used in ur project?
How to read data from excel sheet using apace poi?
How u will handle multiple windows starting from parent window?
Different types of waits in selenium webdriver and explain it with example?
Difference between assert and verify?
Assume we hav a login page, v hav entered login name correctly and entered wrong password and then v tried to login to the
Assume u hav a login page, u entered usernameand password correctly and u cliicked login button.Now the application doesn'
Challenges that u hav faced in selenium?
Explain with example hw u ll handle file uploads?
How to full snapshots in chrome browser?
How to select the drop down value and explain it with example?
Program to print fibonacci series?
Hav u worked in SOAP UI, if so tell me what will u do with that
Hav u developed any framework?
Explain mouseover actions with example?
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
1 Palindrome - code
2 Print all 111, 222,...999 no's.. Code
3 Tell about yourself
4 Handle drop down
5 How to switch bw windows
6 Automation experience in your project
7 Reason for leaving CTS
8 Draw framework diagram in your project
9 Type of reports
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
Telephonic

Give professional introduction about your self


How web services will work?
Explain your framework
Explain important OO concepts
What is reflection class in Java, where have you used in your framework? (Got these because I told I know what it is)
What is factory class? (Got this question because I told I know basic design patterns)
What you know about the thoughtworks?
What are the build tools you have used? What you think maven is better than ANT.

1st Round

Tell me about yourself and project


Explain your framework (Had to right full flow, even with codes wherever they asked to write). {This question took almost 1 ho
Explain inheritance, interface, abstraction and polymorphism
What is virtual invocation (in C# why to use virtual keyword) ?
Since I mentioned DS & Algo in my resume, I got questions from Recursion, HashMap, Stack and Queues (Questions like where
String s = "I am a wonderful person". Find the number of occurrence of each letters using any programming language.
What is maven? What is its life cycle?
What is testNG? How testNG will identify the annotations(How it will decide which one is first, which is next and which is last)?

2nd Round

How can you write custom exceptions?


How will you test a bulb, which is very expensive. Feature to test: Company claims that if you drop the bulb from 100 feet it wo
How to test WinZip. Explain both positive and negative scenarios.
There is application which accepts numbers from 0-9999. And returns the output in words. Write a program for the application
eg: input: 10, output: ten
input: 450, output: Four hundred and fifty
Write the positive and negative test data for the above question.
What is test plan and what are the sections in it?
How you will measure the test coverage?
There is a partially built application for which you don't have test scenario or test cases. How will write the test cases , on what

3rd Round

Aptitude test (There were set of standard 11 questions which consist of flowchart problems, in thought-works hand book)
Speed Test (There were 50 simple questions which need to be completed in 12 minutes, Rule: Should not jump to other questi

4th Round

Manager round: This was more likely to know each other, there were no particular questions. They wanted to know what I am
Later they explained about TW for 15 mins, what business they will do, their work toward government projects, free projects th
5th Round

This was purely non technical. There is no right or wrong for these questions, it is purely opinion based.
Tell about your self which is not there in your resume
Mention 3-4 things that you think which need to be changed in our country.(There were lot of discussion here)
If you become a PM of the country, what are the necessary steps you will take in order to correct/change the points you told fo
Whether 'Ghar Vapsi' program going in north India, is right or wrong. What is your opinion and why?
Supreme court has opposed homo sexuality in India, What is your opinion and why? (I told it should be banned/punished, so t
1
2
3
4
5
6
7
8
9
Difference between FindElement and FindElements
how to locate the Elements using Xpath ,
Difference between X path and Css Selector,
Challenges faced while using selenium,
How to handle windows,frames ,alert,text box,list box,check box,file upload,windows scroll
Difference between implicit wait and explicit wait
hat is constructor,class,object,static method ,method overriding and Method overloading.
TestNg annotations and they gave some scenario and asked which annotation should be used ,
how to start hub and how to register node.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
First Round Technical Questions
1.       Tell about yourself
2.       What kind of Framework have you implemented in your project?
3.       Describe the Structure of the Framework
4.       Write a program of Reverse of String Using String methods
5.       How do you execute your framework test cases
6.       Write a program to copy all contents from one excel sheet to another sheet?
7.       What if I have 50 test cases and how do I execute all those test cases?
8.       What all Test Estimation Technique you know of? What Test estimation technique you applied in your proje
9.       In my browser, I face security certificate violation how do I avoid that using TestNg script? What kind of des
10.   How do you change your webdriver to run in remote machines?
Second Round Technical Questions
1.       Tell about yourself
2.       Explain Framework Implementation in your project
3.       What all Challenges you have faced in selenium
4.       Do you have the knowledge of continuous integration like Jenkins
1
2
3
4
5
6
7
8
9
10
11
12
Draw the architecture diagram of selenium inplementation in your project
Expalin what sdlc model u r using in ur project
How can you check whether a particulat text present in a webpage. What are the predefined method in selenium for checking
How to check whether the check box is selected or in unselected without using
How to find whether the element is in visible or in hidden
difference between findElement and findElements
How you will handle pop up windows
what is testng
how you are handling keyword driven and datadriven framework in your project
What is mean by hybrid framework
How can u upload file in webpage
How u will handle popup in webdriver
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
1
2
3
4
5
6
7
8
9
Your experience and project background
What type of framework do you use?
What are your regular selenium activities?
How do you manage test data for Selenium tests?
Do you know RDBMS and what do you use?
How do you make reporting in Selenium?
How do you verify a given login button is named as “SignUp” and how will you confirm it is not “Login”
What statement do you use verify specific error message in the application?
What is your notice period and can you join earlier than 30 days?
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
Round - 1:-
Tell about yourself
Explain your experience in Automation
Role in Automation
Write a program for registration page : Click on register link in web page. Then fill all the fields with external data source. Finall
Explain each and every line. what it will do [4].
In the same scenario[4] , how you read the data for 10 different test data.
How to get count of all the links in web page
How to read the data from Notepad.
How to read the file which is present in Network [Like SharePoint].
Explain manual testing cycle from requirement
Defect Life cycle
How to instantiate Chrome driver.
Did you attend any Client calls from Onsite
What is Maven, Git, Jenkins

Round - 2:-
Limitations of Selenium
Write a code for taking screenshot
How to handle Alert
How to handle multiple windows
Annotations in TestNg
Hierarchy of TestNg
Diff bw 'Defect Retesting' and 'Regression Testing'
Do u know Database testing
Which project is in which domain
If u have 100 scenarios. In that u have mixture of smoke and sanity scenarios. want to run smoke alone. How to handle this wit
What are the reports u r maintaining

You might also like