java-selenium-interview-COMP-questions
java-selenium-interview-COMP-questions
com/different-java-selenium-interview-questionsall-service-based-
product-and-start-up-companies/
Softway Solutions
JAVA
Selenium
JAVA
Manual Testing
————–
1. What is the difference between Whitebox and Blackbox testing?
2. What is Agile Methodology? What is Scrum,Sprint?Have you used it?
3. Who will be involved in Agile testing meeting?
4. What is DSR ,WSR?(status reports)
5. Have you done monthly Test plan?
6. Do you know Web testing?
7. Write a program to print to select all columns from Employees table and Departments table
where Department name is “Testing”
8. How many years you have in Manual testing,Automation testing?
9. Have you done testing for Redbus application?
10. Write out some positive and negative scenarios to test “Add Friend” feature in Facebook?
11. What is the test design you have used to write test cases?
12. Imagine you are given a Bank Account Login Page. (userid,password,account no, Submit
button). List out two positive scenarios to test it?
EBay:
3. write functional test cases for ” you have three field A, B, C and one ok button field can take
only two character if by using the fields the triangle is formed then ok button must display valid
triangle else invalid triangle.
5. some logical puzzles he asked like :-
a> how to measure 4 lt. if u have 2 container of 5 and 3 lt.
b> 3 bulb and 3 switch puzzle
c> car parking no. puzzle
6. what is the use of cookies and cache.
7. how to remove cookies
9. if you have opened any web application and it is broken means it has changed its layout and
other thing which type of testing you will perform to check this
Happiest Minds:
1.Explain your prevoius project, ur role
2.how u rate ur self in java?
3.Overloading and Overriding …when u use overLoading and Overriding.
4.What is singleton and have used singleton concept in ur project ??
5.What is TestNG framework and what annotations u have worked on.
6.Write a syntax for the dataprovider in TestNg?
7.What are the frameworks u are aware of?
8.What are issues u faced in ur project while automation
9.Have u followed the agile methodology??What will u do if u find the bug at the end of the sprint
and how fast will u make sure that the bug is fixed and verified.
10.Have u done compatibility testing ?? what all browsers u have used?
11.How do u run the scripts on other browser like IE,Chrome,write the code
12.what are exceptions u have handled in selenium webdriver
************************************************************************************************************************
***************************
Cognizant Interview Question
He give Programes
———————————–
1.Reverse a number
2.1,2,3,4,5,65,76,5,,4,33,4,34,232,3,2323,
find the biggest number among these
simple string programe.
what is exception, types of exception
From manual
———————————-
what is the testcase technique
why we write test case.
bug life cycle
what are the different status of bug
what is the different between functional and smoke testing
what is STLC.
from Selenium
=======================================
what is testng and its advantage
how to handle SSl/
how to handle alert
how to take screenshot
give the diagram write a scrpt..
tell me about Project .What are the challenge face during project
what is the difference between RC and webdriver
what is freamwork explain it.
why we use wait statement.
2nd technical
he gives a application & tell to write the scenario
some manual testing concepts.
===================================
CaterPiller
EF Systems
Happiest Minds
1.Explain ur FramwWork
2.How u will run tests parallely
3.pgm to search ipod in flipkart and sort the results in ascending order based on price
4.give examples for Checked exception and Runtime Exception.
5.Some time application takes 2 sec to load some time 30 sec some times more than 5 min how u
will handle this.**
6.wat is maven and wat is ant
COGNIZANT Questions:
1.Brief Description
2.How will you rate yourself in Selenium.
3.SIDE
4.How will you handle pop-up.
5.Which framework you are using in your project & why.
6.How will you handle java script pop-up.
7.How will you handle SSL issue
8.How will you take screenshot.
9.How will you handle AJAX?Explain it with code.
10.Explain your framework.
11.What is STLC,Test Plan & Defect Life Cycle(Procedure to file a defect)
12.traceability matrix
13.Selenium Grid concepts with code ?RC
14.Project Description
15.Diff between Implicitly Wait and Explicitly Wait
16. When will you stop testing
17.Thread 7 Synchronization in java
18.why you switched three companies in 3 years.
2. What you do with your code when a new version of browser is launched?
3. What are the features in your automation code?
4. How to integrate HPALM/HPQC with Selenium?
5. How you are sending the emails from framework, as .rar files are blocked in most of the
companies?
6. How code review is done for your code?
Erricson:
Tavant:
1) Tell me about ur current project and ur role it?
2) Java Oops Concepts?
3) We have two dropdown boxes if we select 1st same will be displaed in 2nd how u test it?
4) We have a table with different colomns if u click on title it will be sorted how u test it is sorted
or not?
5) u don’t have d.b access if u give data then it will take how u test that data is stored in d.b or
not?(Regestration page)
6) i have 8 marbles of same size and color and same weight excepet one..how u find the odd
one.?
7) how do u find a perticular word in a statement “Hi how ‘are’ you”?
8) Testng
9) Jenkins
10)Grid
11)parallel execution in diff browers ?
12) write complete program for..while login it shows “sucess” is displayed or not?
13)frame work?
14)defect life cycle.
Happiest Minds
1.Explain ur FrameWork
2.How u will run tests parallely
3.pgm to search ipod in flipkart and sort the results in ascending order based on price
4.give examples for Checked exception and Runtime Exception.
5.Some time application takes 2 sec to load some time 30 sec some times more than 5 min how u
will handle this.
6.wat is maven and wat is ant
Maven is dependance tool (used to download latest jar from internet before running) ANT is
Build tool
7.In a String remove duplicate words and duplicate characters.
8.what is checked exception and gve example
Exception which are verified by the compiler before the compilation and it makes it mandatory to
try-catch or throws.
are checked exception example InvalidFormatException, IOException, InterruptedException
9.Script to find ipad in flipkart and the results should store in ascending order
Tavant
CaterPiller
1.Diff b/w final finally and finalize
2.how you will avoid object cloneable
3.wat is synchronize methods
4.wat finalize method will do
5.Quesion on Joints
6.Defect life Cycle
7.wat is Smoke Testing and Regression testing
8.Test case Design Techniques
9.how to run tests parallely in different browsers
10.Explain hashing technique
11.How u will return multiple values in a method
EF Systems
3D PLM:
Selenium
1. Introduce yourself?
2. STLC?
3. What is Interface and Abstract Class?
4. Can we create an object of Abstract class?
5. What are the types of Automation frameworks we have? Can u explain them?
6. What is a sub Query?
7. What are Joins?
8. Queries on Joins and Sub-Query?
9. What is TestNG? Why we use it in Selenium?
10. Explain Automation Framework?
11. Program on Prime Number?
12. SDLC?
13. Program to Read and Write data in to Excel Sheet?
14. How to Right Click in Selenium?
Manager Round
1. About Yourself?
2. Why Testing U r from Electronics Background right?
3. Qualities of Good Test Engineer?
4. Challenges in Testing?
5. Objectives of Developer and Test Engineer?
6. About Family?
7. Explain frame Work?
I want to select two different values in two different dropdown list(without using xpath). which has
same ID . pls help..
HappyestMind& Ness
Selenium
Java
1.JVM is dependent or independent platform
2.diffn bwhashmap and hash set, set and linkedlist, arraylist and
vector list , linkedhash set and hashset
3.abstract and interface
4.throw and throws
5.how to split
6.checked and unchecked exception
7.how to work with ajax aplication
8.why sring is immutable
9.wat is the retruntype of getwindowhandles();
10.what are the types of assertion and what are assertion in java
11.differnce between interface and Abstract classes
12.What is static varaible
13.what is volatile
14. what is trainsient
15.what is the differnece between Final,Finalize and finally
16.what is the differnce between Public,private and protected
Hi Guys,
https://addons.mozilla.org/en-US/firefox/addon/element-locator-for-webdriv/
Steps:
Its very useful to you to develop/create Xpaths and writing the Selenium code.
It saves lot of time
1. If there is a priority bug from production how do you address when the Sprint is in progress?
2. What is the level of involvement of Management in a Scrum team?
3. After a Sprint ends when the planning for next sprint begins?
4. Have you created VBA macros to update status of multiple test cases in QC?
5. I had DB2 exp in resume – so he asked me to write a join query invoving table A & B where only
the values from table B be retrieved excluding those rows from B having matching rows in A.
6. What are the challenges you faced while creating framework?
7. Have you used Selenium Grid?
8. Have you run tests in parallel?
9. How will you wait until all the elements in a page gets loaded, the page is completely dynamic
and you cannot guess which will be the last element to load.
10. When tests run in parallel how will Webdriver know that it has to work on a particular Browser
window only?
11. When you move from one page to another how will you ensure that the proper page is loaded?
12. How will you drag and drop an element in a webpage?
13. If the element for which you are waiting for is not loaded, how will you handle the same?
14. How selenium interacts with Firefox, Chrome and IE (internal aspects)?
15. Have you used Javascript Executor in your scripting?
16. Why is main method Static?
17. Can the main method have return type other than void? (Yes it can, it can have return type int
to provide info about successful execution, this info can be used in batch file/shell scripting –
interviewers answer)
18. I was given a Unstable system of a Agile toolkit (its like our Jira) and was aked to list down the
scenarios for testing Task Creation and editing the same. Also I was asked to find the bugs.
19. For the above scenario (point 18), I was asked to automate Task Creation and drag & drop of
task from ‘To Do’ to ‘In Progress’. This has to be done alongside with TestNG framework.
I was given 2hrs for performing point 18 & 19.
Mind tree
1. Code for Login page / how do you find and store the Elements / Locators ?
2. How to use the same Test Script for Localization testing ( for a different language browser /
different language settings).
3. Why do we upcast FirefoxDriver to Webdriver ?
4. How do you use @parameter Annotation in TestNg ?
5. How do you use load elements through properties file and run using TestNG ?