Monday, August 15, 2016


Softway Solutions

JAVA

  • 1.what is constructor?use of constructor in class?
  • 2.why we  need to compile  a program?
  • 3.upcasting in java?
  • 4.polymorphism
  • 5.singleTon class
  • 6.overloading method


Selenium

  • 1.what is testng?use of testng in framework?
  • 2.how to handle alert,file upload popups
  • 3.method overloading in Selenium?
  • 4.access modifiers public,private,protected use in selenium
  • 5.What is POM.XML
  • 6.difference between .xml & .html
  • 7.handling frames in  selenium

Indeecom  Global Services  
JAVA

  • 1.what is polymorphism?types of polymorphism?
  • 2.Access Modiefiers(Private,public,protected)
  • 3.Object life cycle architecture?
  • 4.singleTON Class?
  • 5.Innerclass &Anonymous class?
  • 6.how to print without main method "hello"?
  • 7.Method overloading & overriding & Inheritance?


Selenium

  • 1.what is selenium webdriver?advantage of against RC,IDE?
  • 2.How to handle javascript popup?
  • 3.How to handle iframes?
  • 4.how to  hadle filedownload popup?
  • 5.what  is the use of TestngListeners?
  • 6.what is POM.XML?
  • 7.what is ant & use in framework?

HCL
  • Write a program to print your name in Java?
  • In the above program what does public static void main signify?
  • Write a program to add elements to a list?
  • What datatype can be added to a List?
  • How we can specify datatype of specific type in List?
  • Write a program to iterate through a List?
  • What is the difference between List and Map?
  • In Selenium, what is WebDriver - a class or interface?
  • Why we can't create instance of WebDriver directly?
  • What is the difference between findElement and findElements? Explain scenario when it is used?
  •  Do you know to create a Framework for test execution ?
  • What is the version of Selenium used?
  • In Selenium write code to access FirefoxDriver?


Manual Testing

  • What is the difference between Whitebox and Blackbox testing?
  • What is Agile Methodology? What is Scrum,Sprint?Have you used it?
  • Who will be involved in Agile testing meeting?
  • What is DSR ,WSR?(status reports)
  • Have you done monthly Test plan?
  • Do you know Web testing?
  • Write a program to print to select all columns from Employees table and Departments table where Department name is "Testing"
  • How many years you have in Manual testing,Automation testing?
  • Have you done testing for Redbus application?
  • Write out some positive and negative scenarios to test "Add Friend" feature in Facebook?
  • What is the test design you have used to write test cases?
  • Imagine you are given a Bank Account Login Page. (userid,password,account no, Submit button). List out two positive scenarios to test it?


EBay:

  • What all collections you have used
  • What is the approch for HybridFW you used to develop.
  • Why KeywordDriven framework you have used.
  • Why Set<Iterator> you have used for handling window Handles
  • Internal Implementation of HashMap,ArrayList and Set Operator if you know ?
  • Have you written any Utilities.?
  • What will PageObject model will consists of ,how do you specify the elements in it.
  • Where all you have used ArrayList,Set and HashMap in your application.
  • What kind of dependencies you have added in the Maven and for what
  • What is your roles and responsibilities for automation.
  • Explain driver.getWindowHandles() in detail,how it will function.
  • Explain each usage of collection used in your project


Manual:

  • what is smoke testing?
  • how can you test Mouse?
  • expline about defect tracking?
  • differance between sanity & smoke testing?
  • what is compatibility testing?
  • What is acceptance testing ?when we do?
  • difference between bug & defect?s?
  • what is automation test life cycle?
  • what is usability testing?




1. 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.
2. Some logical puzzles he asked like :-

  • how to measure 4 lt. if u have 2 container of 5 and 3 lt.
  • 3 bulb and 3 switch puzzle
  • car parking no. puzzle
3. what is the use of cookies and cache.
4. how to remove cookies
5. 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
6.Which application you work on : Web Application or Windows Application?
7. WAP on java: fibonacci series, reverse a string, reverse a string using recursion?
8. Maven - What is Maven , Why do we use it and How do we use it
9. What is maven life cycle?
10. What is StringBuffer and StringBuilder
11. Explain Parallel exection using grid ?
12. Give examples of Polymorphism,Abstraction(simple code explaination)
13. Why do we use singleton class?
14. Explain your framework
10)what is the use of PageFactory.initElements?Can we implement it using PageFactory.initElements or @FindBy?
15. How do we clean the Maven environment?
16. A particular list of buttons are there?Write the xpath for it?
17. How do you configure testNG?what do you write in the .bat file?


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

1.Wat is the diff b/w WebDriver Listerner and TestNG Listener
2.diff b/w Assert and verify
3.count only the non duplicate words in the string
4.Frame Work and advantage of PageFactory classes


HCL Interview Questions

1.which frame work ur using and explain Framework
2.Questions on Nested frames Concept (Scenario given)
3.How ur using Agile Methodology in ur Project?
4.xpath Syntax

HCL interview Question

From Java
1.What is the Difference between final,finally,finalize
2.what is the difference between Call by value and call by referance
3.How to find out the length of the string without using length function
4.How to find out the part of the string from a string
5.difference between throw & throws
6.What is binding(Early and Late binding) **

He give Programs-
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.

CaterPille

  • Diff b/w final finally and finalize
  • how you will avoid object cloneable
  • wat is synchronize methods
  • wat finalize method will do
  • Quesion on Joints
  • Defect life Cycle
  • wat is Smoke Testing and Regression testing
  • Test case Design Techniques
  • how to run tests parallely in different browsers
  • Explain hashing technique***
  • How u will return multiple values in a method


EF Systems

  • how to run tests parallely in different browsers
  • java program to reverse String
  • pgm to sort array in ascending order
  • diff b/w implicit wait and explicit wait
  • Test case Design Techniques
  • dif b/w delete drop and truncate
  • wat is inheritence polymorphism and encapsulation
  • wat is interface


Happiest Minds

  • Explain ur FramwWork
  • How u will run tests parallely
  • pgm to search ipod in flipkart and sort the results in ascending order based on price
  • give examples for Checked exception and Runtime Exception.
  • Some time application takes 2 sec to load some time 30 sec some times more than 5 min how u will handle this.**
  • wat is maven and wat is ant


COGNIZANT Questions:

1. tell me abt urself
 2. what is stlc
 3. what is test planning
 4. defect life cycle
 5. what is inheritance
 6. method overloading and overriding
 7. framework & framework used in the company
 8. what is Parametisation and how do you use it in TestNG
 9. how do you execute the tests based on priority
 10. what are the annotations
 11. what is the order of executing the annotations
 12. when a test suite is executed in the order
 13. Tell me anything about collections
 14. interfaces
 15. what is the difference between interface and a class
 16. what are arrays and list difference between them
 17. Is parameterisation possible and how(Tell the coding)
 18. how do you check whether a test script is passed or not
 19. if a test case fails how will you log the failure and the exception that caused. how will you report the result to your team lead, prj manager and the customer
 20. what is the framework you are using for logging the bugs
 21. How do you submit all the test scripts, execution results to you TL, PM
 22. what is the process followed in you company
 23. what is the difference between agile methodology and spiral modal
 24. what is requirement traceability matrix
 25. how do hover a link which is present on web page which opens a pop up containing a link.how do you click on the link that is in th pop up
 26. prgm for reading a excel file
 27. how do you initialise a chrome browser
 28. SQl-joins,difference between inner joins and outer joins
 29. i am having a table which consists of student details,id, marks and how do i fetch the second maximum value from the table
 30. I am having two tables one having student id, student name,and the college id and the other table having college id,college name, location now i want to get map these two tables and get the students who are studying in a specific college
 31. i want the count of all the students who belongs to same location

Infosys Interview 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.

1. What difficulty you faced in Automation?

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:
How selenium will select/click elements on the webpage.
How you will idenity elements.
How your testscript will look for login page.
If you have 10 testscripts,and in each testscript there are 5 TestNGMethods how you will execute.
If you want to verify data you selected in one Testmethod ,is same displayed in the another testmethod/webpage (Ex:Shopping Cart)
What is Axes in the X path
How do you run tests using Testng  (answer:xml)
How do you execute your fraamework from command prompt
java -cp bin;jars/* org.testng.TestNG <suitename>.xml



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.


HCL Interview Questions
 1.which frame work ur using and explain Framework
 2.Questions on Nested frames Concept (Scenario given)
 3.How ur using Agile Methodology in ur Project?
 4.xpath Syntax

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
  1..write a code for pagination testing.(need to identify one records in a table)
  2.how will u handle frames?
  3.how will u handle calendar popup scenario?
  4.Explain about TestNG.
  5.Explain about POM.
 6.what are the factors should consider before doing automation?

 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
  1.how to run tests parallely in different browsers
  2.java program to reverse String
  3.pgm to sort array in ascending order
  4.diff b/w implicit wait and explicit wait
  5.Test case Design Techniques
  6.dif b/w delete drop and truncate
  7.wat is inheritence polymorphism and encapsulation
 8.wat is interface

 Cognizant Interview Question
  1.Wat is the diff b/w WebDriver Listerner and TestNG Listener
     Both are interface but WebDriver listener are triggered when you call webdriver methods like findElement,
     click etc example-afterClickOn; beforeFindBy.... TestNG Listener are triggered when testng methods are executed such as
      onTestFailure onFinish..
  2.diff b/w Assert and verify
  3.count only the non duplicate words in the string
 4.Frame Work and advantage of PageFactory classes

 3D PLM:

 1. difference between smoke testing and adhoc testing.
 2. difference between integration testing and system testing with examples.
 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.
 4. difference between http and https?
 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
 8. how to test web application
 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
 What is severity and priority in software testing?
  What is Stub?
  What is abstraction ?
  What is Encapsulation in Java and OOPS with Example
  What is Functional Testing? What are the Different Techniques used in it
  Black Box Testing: Types and techniques of BBT
  SQL Questions
  What is the difference between inner and outer join? Explain with example.
  What is the difference between JOIN and UNION?
  What is the difference between UNION and UNION ALL?
  What is the difference between WHERE clause and HAVING clause?
  What is the difference among UNION, MINUS and INTERSECT?
  What is Self Join and why is it required?
  How can we transpose a table using SQL (changing rows to column or vice-versa) ?
  How can we transpose a table using SQL (changing rows to column or vice-versa) ?
  How to select first 5 records from a table?
  What is the difference between ROWNUM pseudo column and ROW_NUMBER() function?
 What are the differences among ROWNUM, RANK and DENSE_RANK?



 ACI Worldwide Interview Questions
  1st Round-Written Test
  Java
  1. What is Polymorphism?
  2. What is Abstraction?
  3. Difference between static and non-static members?
  4. Difference between super and this?
  5. What is a List and Set?
  6. What is Encapsulation?
  7. What is Access Specifies in java?
  8. Diagram and Asked to write Program?

 Selenium

 1. Code to select all the check boxes?
  2. Different Waits in Selenium?
  3. How do you make sure that Checkbox/Radio button is selected or not? Button Enabled or not?
  4. How do you handle drop down list?
  5. Code to select all the options present in multi select list box?
  6. How to perform drag and drop of element and Right clicking on element?
  7. How do you handle Alert popup?
  8. How do you handle element present in Frames? Code to transfer control from frame to main page
  9. How do u setup profile in Firefox browser?
  10. What are Annotations?
  11. Write a code to take screen shot for only failed test scripts?
  12. Write a code to print number of links present on a webpage?
  13. Code for Login page and how do u verify whether it is successfully logged in or not using assert?

 2nd Round – Technical

  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?



QSG interview questions
1.Tell me about yourself
 2.What is difference between array and string
 3.What are different types you have in Microsoft Office
 4.How do you create table in MS Office
 5.How do you add column to a table
 6.what is framework
 7.write a prgm for sorting a string
 8.Why we go for inheritance
 9.what are different types of annotations expl @Groups
 10.tell abt your s/m configuration
11. I want to select two different values in two different dropdown list(without using xpath). which has same ID .How are you going to do this.

List<WebElement> allListBox = driver.findElements(By.id("jasa"));
 for(int i=0;i<allListBox.size();i++)
 {
 WebElement listBox=allListBox.get(i);
 Select select=new Select(listBox);
 select.selectByIndex(i);
 }


HappyestMind& Ness
Selenium
1.Write the syntax of drop down
2.What is Webdriver-Java interface
3.What is the current Version of Selinumwebdriver
4.How to get the text value from text box
5.StrinG x="ABC";
 String x="ab"; does it create two objects?
6.write a program to compare the strings
7.Class a
{
}
class b extends a
{
}
A a= new A();
B b=new B();
A a= new B();
B a=new A();
Which is valid and invalid?
8.How to handle differnt type of pop up.(Wnidow,Alerts,Invisiblepopup)
9.How to handle DropDown menu
10. How to handle SSL certificate
11.How to handle Google search text.
12. How to handle dynamic text box which contains the 3 numbers, get
the number and add the three number and add it other text box.
13.How to handle Ajax Objects
8.Explain webdriver architecture
9.Explain File downloading
10.Explain File attachments other that Auto IT
11.Write the syntax for finding the row count in dynamic web table
12.Differnece between class and Interface
13. What type of class is the string class
14.WHAT are the differnt methods that are used along with Xpath
15.Explain Interface
16 Explain Abstract
17.What is selenum grid
18 what is selenium RC
19.Why is key word drivern frame work only choosen,
1. how to handle dynamic object
2. how to work with button which is in div tag and and u have to click
without using xpath
3. JVM is dependent or independent platform

4.how many Test script you write in day
5. describe your framework
6. how to parameterized your junit
7.how to handle ssl security
8. how to handle window pops
9. diffnct between implicit and explicit
10.what are the types of assertion and what are assertion in junit
11.How to handle ssl certificate
12.What is dom concept
13.What is the challenges u have faced during Automation
14What is genrics
15.What is synchronization

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

Prowareness Interview Questions

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.

Genpact HeadStrong Questions

1. factorial,prime,armstorngnumber,swaping two numbers without temp var--Programs
2. interface,abstraction,encapsulation
3. diff between pagefactory n pageobject model
4. printstacktrace(exception related)
5. diff between string.equals and string1==string2
6. normalisation
7. searching with keyword and copy all the files name into one file
8. how grid works
9. how to debug or fix the issue
10. how to switch from one window to another window
11. mousemover concept
12. explain testNG framework
13. dataprovide,findby annotation
14. how to do exectuion of second method after first method method exectuion only without giving priority
15. what is diff between string,string buffer,string builder
16. diff between method overloading n method overriding
17. exception means? how do u recongnise where to fix in lengthy code if somewhere exception occurs while executing
18. diff between list-iterator and iterator
19. what is hashmap
20. how do u execute testcases using testng
21. how do u run batch execution, which one ur using for tht
22. how to print webtable in same structure on console
23. how do you switch multiple windows
24. how do you switch between tabs
25. How do you find webpage background color
1. How do you write xpath, if last three characters keeps on changing EX : "abc_ _ _".
2. Pagefactory concepts.
3. Collections, list concepts.
4. Have you involved in Framework developement?
5. How do you fetch data from webtable in a webpage?
6. In a webtable, how do you fetch only last column data?
7. How do you handle dynamic element?
8. What is concrete method?
9. Actions, windowhandle and Select concepts.
10 Are you using any build tool?
11. Grid concepts.
12. How much do you rate yourself in Java out of 5?
13. Which API used to fetch data from excel sheet?
Telephonic Questions of Happiest Minds..
1. When do you abstract class and when do you use interfaces.
2. Have you written / are there any interface in your automation frame work.
3. How do you run Java Script directly in Web Driver.
4, If the customer does not want DOM model of automation, what is your suggestion.
5. tell me about your framework.
6. How flexible is your framework.
7. Few Questions on Serialization, Threads and OOPS concepts.

Mind tree
what framework have you worked and used in automation?
How many methods are there in in your framework libraries?
What all methods in libraries?
How many test scripts are there for your application?
How often do you run your automation test?
what is getAttribute and getText?
what is the time taken to run all your scripts?
what all settings do you do before running your automation test?
How do you pass values to method?
who writes the test cases?
write a script to print the multiples of 5?
How do change the run time property values of the element?
How do handle dynamic elements during run time?
what version of selenium do you use and which is the latest version?
Suppose a webtable is there with three columns such as combo box,name and id.I want to search a particular id and also check the checkbox for that particular id.How would you do that?

FICO company technical questions for Core Java +Selenium

.what is the default package in java ?
2.: why we use interface why not abstract class ...what if i implements same method in interface and abstract ....thn ?? any diffrnc??
3. what are inner classes ..name them ?
4.in public static void main(String arr[])... what if i replace public with private ........... remove static ........replace void with string
5.in hash map we have (key and value ) pair , can we store inside a value =(key, value ) again ??
5. what are variable scope in java (in class , in method , in static block)
6. what are the oops concept ? explain them each with real world examples
7.
8. what is singleton classes ?
9.what is difference between .equals() , (==) and compare-to();
10. what is the difference between hash code and equals
11.write a program to get substring of string ex: javais good ... so result : avais
12.write a program to reverse the string
13. wap for binary search
14.what is the use of package
15. why we use interface and abstract
16.we have 2 interface both have print method , in my class i have implemented the print method , how u wil get to know that i have implemented the first interface and how u will use it .. if u want to use it
17.what is the difference between vector list and arraylist
18. difference between hashmap and hash table, what is synchronization , how it is achieved
19. what is the use of collection, when we use it
20. what is priority queue in collection , what is the use , how u have use in your project
21.where to use hashmap and hashtable
22. where u have use the concept of interface and abstract in your framework

HCL Interview Questions.

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 ?


----------------
1)    About Frame work.....with explanation(v v v imp)
2) About Automation Process
3) About TestNG
4) Role and Responsibilities
5) Have u involved in Manual
6) any Challenges faced in TestNG


CA -Baroda :

1) About your Project
2) your involvement in the project
3) how do you start Automation
4) on what basis will u take test cases for automation
5) functional and non-functional testings differences


People10 Technosoft -Bnglre :

1) How do u start automation
2) how do u get test data
3) how will u do parameterization
4) about your company
5) Roles and Responsibilities
6) have u used stored procedures in ur project(bcoz i kept banking)
7) how did u test it
8) location of ur company and heirachy
9) How do u get requirements
10) have u involved in Manual(looking for both)
11) at what place u involved in manual
12) retesting and regression testing differences
13) team size
14) what is a use case
15) simple scenario and how do u write testcases for that scenario..
·         Question 11:  How to execute java scripts function.
·         Answer:
·         JavascriptExecutor js = (JavascriptExecutor) driver;
·         String title = (String) js.executeScript("pass your java scripts");

Question 1: What is Selenium 2.0
Answer: Webdriver is open source automation tool for web application. WebDriver is designed to provide a simpler, more concise programming interface in addition to addressing some limitations in the Selenium-RC API.

Question 2: What is cost of webdriver, is this commercial or open source.
Answer: selenium  is open source and free of cost.

Question 3: how you specify browser configurations with Selenium 2.0?
Answer:  Following driver classes are used for browser configuration
·                     AndroidDriver,
·                     ChromeDriver,
·                     EventFiringWebDriver,
·                     FirefoxDriver,
·                     HtmlUnitDriver,
·                     InternetExplorerDriver,
·                     IPhoneDriver,
·                     IPhoneSimulatorDriver,
·                     RemoteWebDriver
Question 4: How is Selenium 2.0 configuration different than Selenium 1.0?
Answer: In case of Selenium 1.0 you need Selenium jar file pertaining to one library for example in case of java you need java client driver and also Selenium server jar file. While with Selenium 2.0 you need language binding (i.e. java, C# etc) and Selenium server jar if you are using Remote Control or Remote WebDriver.

Question5: Can you show me one code example of setting Selenium 2.0?
Answer: below is example
WebDriver driver = new FirefoxDriver();
driver.get("https://www.google.co.in/");
driver.findElement(By.cssSelector("#gb_2 > span.gbts")).click();
driver.findElement(By.cssSelector("#gb_1 > span.gbts")).click();
driver.findElement(By.cssSelector("#gb_8 > span.gbts")).click();
driver.findElement(By.cssSelector("#gb_1 > span.gbts")).click();

Question 6: Which web driver implementation is fastest?
Answer: HTMLUnitDriver. Simple reason is HTMLUnitDriver does not execute tests on browser but plain http request – response which is far quick than launching a browser and executing tests. But then you may like to execute tests on a real browser than something running behind the scenes

Question 7: What all different element locators are available with Selenium 2.0?
Answer: Selenium 2.0 uses same set of locators which are used by Selenium 1.0 – id, name, css, XPath but how Selenium 2.0 accesses them is different. In case of Selenium 1.0 you don’t have to specify a different method for each locator while in case of Selenium 2.0 there is a different method available to use a different element locator. Selenium 2.0 uses following method to access elements with id, name, css and XPath locator –
driver.findElement(By.id("HTMLid"));
driver.findElement(By.name("HTMLname"));
driver.findElement(By.cssSelector("cssLocator"));
driver.findElement(By. className ("CalssName”));
driver.findElement(By. linkText ("LinkeText”));
driver.findElement(By. partialLinkText ("PartialLink”));
driver.findElement(By. tagName ("TanName”));
driver.findElement(By.xpath("XPathLocator));

Question 8:  How do I submit a form using Selenium?
Answer:
WebElement el  =  driver.findElement(By.id("ElementID"));
el.submit();

Question 9: How to capture screen shot in Webdriver?
Answer:
File file= ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(file, new File("c:\\name.png"));

Question 10: How do I clear content of a text box in Selenium 2.0?
Answer:  
WebElement el  =  driver.findElement(By.id("ElementID"));
el.clear();

Question 11:  How to execute java scripts function.
Answer:
JavascriptExecutor js = (JavascriptExecutor) driver;
String title = (String) js.executeScript("pass your java scripts");

Question 12:  How to select a drop down value using Selenium2.0?
Answer: See point 16 in below post: 

Question 13: How to automate radio button in Selenium 2.0?
Answer:
WebElement el = driver.findElement(By.id("Radio button id"));

//to perform check operation
el.click()

//verfiy to radio button is check it return true if selected else false
el.isSelected()

Question 14: How to capture element image using Selenium 2.0?

Question 15: How to count total number of rows of a table using Selenium 2.0?
Answer: 
List {WebElement} rows = driver.findElements(By.className("//table[@id='tableID']/tr"));
int totalRow = rows.size();

Question 16:  How to capture page title using Selenium 2.0?
Answer:
String title =  driver.getTitle()

Question 17:  How to store page source using Selenium 2.0?
Answer:
String pagesource = driver.getPageSource()

Question 18: How to store current url using selenium 2.0?
Answer: 
String currentURL  = driver.getCurrentUrl()

Question 19: How to assert text assert text of webpage using selenium 2.0?
Answer:
WebElement el  =  driver.findElement(By.id("ElementID"));
//get test from element and stored in text variable
String text = el.getText();

//assert text from expected
Assert.assertEquals("Element Text", text);

Question 20: How to get element attribute using Selenium 2.0?
Answer:
WebElement el  =  driver.findElement(By.id("ElementID"));
//get test from element and stored in text variable
String attributeValue = el. getAttribute("AttributeName") ;

Question 21: How to double click on element using selenium 2.0?
Answer:
WebElement el  =  driver.findElement(By.id("ElementID"));

Actions builder = new Actions(driver);
builder.doubleClick(el).build().perform();

Question 22: How to perform drag and drop in selenium 2.0?
Answer:
WebElement source  =  driver.findElement(By.id("Source ElementID"));
WebElement destination  =  driver.findElement(By.id("Taget ElementID"));

Actions builder = new Actions(driver);
builder.dragAndDrop(source, destination ).perform();

Question 23: How to maximize window using selenium 2.0?
Answer:
driver.manage().window().maximize();

Question 24: How to verify pdf content using selenium 2.0?
Answer: Go through below post: 

Question25: How to capture video of running scripts in selenium 2.0?
Answer: Go below link:

Question 26: How to verify response 200 code using selenium 2.0?
Answer: Go through below post:

Question 27: How to verify image using selenium 2.0?
Answer: go through below post:

Question 28: How to handle http authentication in selenium 2.0?
Answer: go through below post:

Question 29: Can we automate HTML 5 video using selenium 2.0?
Answer: Go through below post:

Question 30:  What is different between findElement and findElements
Answer : go through below link: 

1. Write a program for copying the string to another location and avoid the duplicates
EG: “abc” = “abc”
“aabc”=”abc”
2. Write a test case for the call log in the mobile phone. .
3. What should be your testing approach and trouble shooting tips for a Development unit testing
4.While compressing  a file using what all the problem we face using winZib.
5. Write a program for n(n+1)-1
eg : n=3 …. 1+3+6+18 ….
6. write a test data for the 5.1 nearest to 6
Eg: 5.341 =5.3
5.10 = 5.1
7. There were several questions on various testing methodology like black box, white box testing
8. Some questions were asked around defect management like TDCE ( Total Defect Containment Effectiveness) 
9. Some questions were around multiple iteration approach (various cycle)
10.Many questions were asked around scripting and automation and the usage of different tools like QC, Selenium, bugzilla etc


amazon-interview-questions
0
of 0 votes
amazon-interview-questions
-4
of 4 votes
oracle-interview-questions
0
of 0 votes
·                     How to get the value selected in list box in Selenium Web driver
·                     How to read data from web table in Selenium Web driver
·                     How to check the check box in Selenium Web driver..
·                     How to click the link or web button in Selenium Web driver.
·                     How to enter the data in web edit box in Selenium Web driver.
·                     How to select the value from the web list in Selenium Web driver.
·                     How to close the browser window in Selenium Web driver..
·                     How to get the title of the web page in Selenium Web driver...
·                     How to maximize the browser window in Selenium Web driver...
·                     How to add synchronization in selenium webdriver in java...
·                     How to launch chrome browser using Selenium Web driver.
·                     How to navigate to particular url in Selenium Web driver...
·                     How to install the web driver for chrome, firefox ...
·                     What is selenium webdriver?
·                     What is the difference between Selenium and QTP?

·                     What is Selenium?

---------------
Very Important:
http://learnseleniumautomation007.blogspot.in/2014/07/interview-questions-on-selenium.html

    WIPRO :Bnglre
1) About Frame work.....with explanation(v v v imp)
2) About Automation Process
3) About TestNG
4) Role and Responsibilities
5) Have u involved in Manual
6) any Challenges faced in TestNG


CA -Baroda :

1) About your Project
2) your involvement in the project
3) how do you start Automation
4) on what basis will u take test cases for automation
5) functional and non-functional testings differences


People10 Technosoft -Bnglre :

1) How do u start automation
2) how do u get test data
3) how will u do parameterization
4) about your company
5) Roles and Responsibilities
6) have u used stored procedures in ur project(bcoz i kept banking)
7) how did u test it
8) location of ur company and heirachy
9) How do u get requirements
10) have u involved in Manual(looking for both)
11) at what place u involved in manual
12) retesting and regression testing differences
13) team size
14) what is a use case
15) simple scenario and how do u write testcases for that scenario..


----------
@First round Q-Tell me about your self Q- Rate yourself in selenium Q-Rate yourself in java Q - in a given string fine the occurrence of the character. Q- write how u will fetch data from an excel Q- explain framework Q- in a shopping website filter a mobile in a range of 5000-8000 and fetch the data of mobile brand name is Samsung and its corresponding cost ? I did not answer :-( Q- a simple puzzle @Second round Q-Tell me about your self Q- Explain Hashmap Q - write a code to store in hashmap Q- write a code to retrive value from hashmap Q - Explain framework , to be written over white board and explain .

first round : Telephonic round 1. java concepts like collections, memory types, array and array list, diff between collections and array, list map set differences, java program like reverse string with out using functions. 2. selenium concepts like alert, diff ways to find frames, and alerts. how to handle windows, how to handle dynamic elements, how to find duplicate elements, types of locators in selenium, about jxl and poi jars, explain about maven, testNG, any api used in ur app and what are they, how to handle to upload file or image, autoIT and current version of selenium. 3. manual testing , what is regression testing, white box testing and black box testing, SDLC phases, Bug life cycle, smoke testing.

1. Questions on String , Exceptions and Collections from Java. we have a write a program 2. Questions on TestNg and Selenium

1. Questions on automation framework. 2. Things to consider when choosing a framework/tool for automation. 3. Selenium related questions - Different types of wait, Fluent Wait/Explicit Wait,handling NTLM authentication, etc. 4. Questions on core Java - Polymorphism, Interface/Abstract class, etc.

Draw the architecture of your project.How many packages you wrote/added?

What is difference between dynamic and static Polymorphism?
http://ruchi-myseleniumblog.blogspot.in/2013/12/100-selenium-interview-questions.html


Name some test automation tools ...
  • Selenium (Open Source)
  • HP QuickTest Professional (Commercial)
  • IBM Rational Functional Tester (Commercial)
  • HP WinRunner (Commercial)
  • SilkTest (Commercial)
  • HTTP Test Tool (Open Source)
  • WATIR (Open Source)
  • Maveryx (Open Source)
  • eggPlant (Commercial)