Monday, 2 April 2018

LnT - Selenium Automation - 3 plus

Selenium/Java questions at L&T 1st nov 2017

1. What is the difference between list and set?
2. How will you switch to other window?
3. What is the return type of driver.findelement/driver.getwindowhandles()?
4. What is the difference between Private and Protected? 
5. How will you achieve dynamic polymorphism?
6. What is inheritance and encapsulation? 
7. Can you override static methods?
8. Can main method be overloaded?
9. What is Singleton?
10. What is collections in Java?
11. What is nested class?
12. How will you call a protected method in a nested class?
13. In a web page, how will you ensure that page has been loaded completely?
14. What is the difference between build and perform method in Actions Class?
15. What are different annotations in TestNG?
16. What is the difference between before method and before test?
17. How will you display the character count in a string "Steve Jobs" by ignoring space on between? 
18. What is a constructor and when will you use this and super in a constructor?
19. If you want to call a constructor from parent class, what will you do?
20. How will you run your tests using Data Driven Framework?
21. What are static variables and methods?
22. How will you handle Alerts in selenium?
23. How will you handle a file upload window using Selenium?
24. Can I define one class into another class?
25. What are different types of modifiers present in Java?
26. How will you make a build using Jenkins?
27. How will you install ReportNG in your project?
28. How will you control data using XML?
29. How will you display a value of a particular cell in a web table?
30. How will you handle dynamic elements using XPath?
31. What is POM?

Sunday, 25 February 2018

CTS - Automation Testing - 4 plus experience

Cognizant Selenium Automation Testing Interview Questions: 
 

--------- *1st Round* ---------

1) About yourself

2) Write down your project framework structure

3) What is POM.xml

4) What are the annotations in TestNG and it's sequence

5) When your @BeforeSuite will execute?

6) How to do grouping in Testng?

7) Difference between ImpliciteWait and Explicite wait.

8) Suppose one element is there, which will appear after 20 sec. We have given explicitewait of 10 sec to that element and implicitwait of 20 sec in that class, then what will happen? will it show an exception or what?

9) How to prioritize the testng classes using testng.xml? How many ways to do it?

10) Write down any test script that you are currently working in your company.

11) Difference between Abstract class and Interface

12) What are the Access specifiers in Java

13) Difference between Default and Protected

14) Write down the hierarchy of collection

15) Difference between Map and Set. Additional questions related to Map and Set

16) What are the Testing levels and in which role you are currently?

17) Do you know BDD?

--------- *2st Round* ---------

1) Given one String like "My name is ABC" and asked to reverse "ABC is name My"

2) Given 3-4 scenarios like password should accept 6-10 character, only one Alphabet, asked to write down the Regular Expression

3) How to find the broken links on the web page, asked to write it on paper

4) What is encapsulation?

5) What is Abstraction? 

6) Where did you use Abstract class in your project and why didn't you go for Interface?

7) Difference between Abstract class and Interface

8) Difference between Access specifier and Access modifier

9) Can we write only concrete methods in Abstract class? 

10) If we can write only concrete methods, why to declare it as abstract?

11) Can we have Constructor in Abstract class? 

Thursday, 23 November 2017

Collabera - Automation Testing - 5 plus. Experience

Recently got intervied at Collabera

Interview questions-
1. Tell me about yourself explaining your work in automation and Salesforce
2. What is Salesforce lightening
3. User roles in Salesforce.Salesforce journey of customer. What are leads , opportunity
4. Collection, a arraylist- more detailed.
5. Interface and oops concepts
6. Explain any automation framework structure.
7. Repository used?
8. Type of date types we use in webdriver codes
9. What is POM,grid
10. How jetkins works
11. Wait command
12. Some basic SQL n UNix commands.
13. Jira defect lifecycle
14. Test management and reporting.

Tuesday, 21 November 2017

MasterCard - Automation Interview - 5 plus years experience

MasterCard - 5 plus - Automation Experience

1. What reflection

2. What is specflow

3. How to run selected scenario in specflow

4. What is dataprovider

5. What is good to use dataprovider or hashmap

6. String builder vs string buffered

7. Why to use SBuffere and SBuilder, what is difference in them?
8. How to integrate specflow

9. What is BDD AND TDD

10. How to implement it

11. Can we integrate selenium with jmeter
How to run

12.  Algorithm to find duplicate words with count in text file.

13. How to convert binary to decimal

14. Compare two xls file and print the difference with column

15. What does set return

16.  Interface is abstract, polymorphism, or encapsulation

17. Prove that object is parent class of all class

18. Example of polymorphism in selenium

19. What is wait in Selenium all type of wait

20. I have implicit wait of 60 second and 3 seconds of explicitly wait, now how much time it will take to click on button element

21. I have n number of pages like 1,2,3,4.... What is effective way to test all like are working?

22. Strings has a number and alphabets, I just want numbers, how to achieve it

23. What is happening background when driver.find....(...). click() is executed, means how Selenium work with browser?

24.I have run the test cases and it looks 100mini to run, what is other way to achieve running test with less time even after running test in parallel

25. What is the other use of method overriding

26. Which locator u mostly use?