Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Rahul

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 100

BDD is in a more readable format by every stake holder since it is in English, unlike TDD test cases

written in programming languages such as Ruby, Java etc. BDD explains the behavior of an
application for the end user while TDD focuses on how functionality is implemented.

TDD BDD

Stands for Test Stands for Behavior Driven


Driven Development. Development.

The process starts by The process starts by


writing a test case. writing a scenario as per
the expected behavior.

TDD focuses on how BDD focuses on the


the functionality is behavior of an application
implemented. for the end user.

Test cases are Scenarios are more


written in a readable when compared
programming to TDD as they are written
language. in simple English format.

Changes in how the BDD scenarios are not


application functions much impacted by the
impact a lot on the functionality changes.
test cases in TDD.

Collaboration is Collaboration is required


required only between all the
between the stakeholders.
developers.

Might be a better Might be a better approach


approach for projects for projects which are
which involve API driven by user actions. For
and third-party tools. eg: e-commerce website,
application system, etc.

Some of the tools Some of the tools which


TDD BDD

which support TDD support BDD are


are: JUnit, TestNG, SpecFlow, Cucumber,
NUnit, etc. MSpec, etc.

Tests in TDD can Tests in BDD can be


only be understood understood by any person
by people with including the ones without
programming any programming
knowledge, knowledge.

TDD reduces the Bugs in tests are difficult to


likelihood of having track when compared to
bugs in your tests. TDD

1. IMO entry and exit criteria is defined at feature/module or release level

Entry & Exit criteria will have following things:

1. Does all P1, P2 bugs are resolved and verified?

2. Do we have any show toppers?

3. Does all P3, P4 bugs are reviewed with product owners , triaged and can be differed to next release?

4. Does all junits were passing and have good Junit coverage?

5. Does all P1, P2, (P3,P4 if needed) test cases were automated and part of Jenkins pipeline?

6. Do we have any test failures, if so are they properly analyzed and run manually?

7. Do we have good Test pass rate?

8. Does all manual tests (if there are any) were executed and have good coverage?

9. Do we have good functional code coverage?


10. Does non -functional testing perfomed(if applies) and how are the results looks like?

11. Does security testing applies and how are the results looks like?

12. Does any localization and globalization testing applies and how are the results looks like?

13. Does any cross browser/compatability testing applies and how are the results looks like?

14. Does any migration/accessibility testing applies and how are the results looks like?

15. Does any AB testing needs to be done?

16. Does all regression, pre-prod testing completed?

17. Do we need to run any mobile testing?

18. Do we need to do any config changes before it goes to production

19. Finally did we check all different set of application logs?

Most companies call this Entry & Exit criteria as DoD(Definition of Done) and they go through these set
of points to see if we met all these cases or not. It depends from company to company. Some companies
follow all 19 cases but some companies may skip few of them. But overall these are the diff set of things
QA check before they sign off the feature/release. Hope this helps!!

*Maven Lifecycle*

validate - validate the project is correct and all necessary information is available

compile - compile the source code of the project

test - test the compiled source code using a suitable unit testing framework. These tests should not
require the code be packaged or deployed

package - take the compiled code and package it in its distributable format, such as a JAR.

verify - run any checks on results of integration tests to ensure quality criteria are met

install - install the package into the local repository, for use as a dependency in other projects locally

deploy - done in the build environment, copies the final package to the remote repository for sharing
with other developers and projects.
These lifecycle phases (plus the other lifecycle phases not shown here) are executed sequentially to
complete the default lifecycle. Given the lifecycle phases above, this means that when the default
lifecycle is used, Maven will first validate the project, then will try to compile the sources, run those
against the tests, package the binaries (e.g. jar), run integration tests against that package, verify the
integration tests, install the verified package to the local repository, then deploy the installed package to
a remote repository.

*How to find Broken Links on WebPage using Selenium:-*

WebDriver driver = new ChromeDriver();

driver.manage().window().maximize();

driver.get("http://newtours.demoaut.com/");

//capture links from a webpage

List <WebElement> links = driver.findElements(By.tagName("a"));

//number of links

System.out.println(links.size());

for(int i=0;i<links.size();i++)

//by using href attribute we can get URL of required link

WebElement element = links.get(i);

String url= element.getAttribute("href");

URL link = new URL(url);


//create connection using url object 'link'

HttpURLConnection httpconn = (HttpURLConnection) link.openConnection();

Thread.sleep(2000);

httpconn.connect();

int rescode=httpconn.getResponseCode(); //return response code. if res code is above 400: broken
link

if(rescode >= 400){

System.out.println(url +" "+" is a broken link");

else{

System.out.println(url +" "+" is a valid link");

Thanks

Shammi Jha

8305429370

Simple program:
1. int a = [4,1,2,4,3,2,6,7,1];

*What’s the size of the array?

*Index value of the array?

*Write a java program to display the elements of the array in descending order

*Write a java program to remove the duplicate values and explain the logic.

Basic:

1. What’s your roles and responsibilities,

2. Explain about your project and the technologies u have worked on.

3. How much u will rate yourself in java and selenium scripting.

4. Write a small program for a array of values to display it in ascending order.

5. What all tools & framework u have worked on explain in detail.

6. How will u switch between windows in automation.

7. Have u worked on db?

8. How u will connect db?


9.What are the challenges u come across in automation

10. What all queries u know in sql.

11. What API tool u are using currently?

12. (system.out.println) - What is system / out/ println briefly explain.

13.Explain Priority & severity

14.Explain High Priority & low Severity with real time example

15.Explain Regression testing

16.Explain Agile process

17.What are abstract Class in Java give example

18.what are static class in Java give example

19.exception handling in java

20.static and finale

21.uses of finale

22.access modifier
23.switching windows in selenium

24.how do you switch window

25.dynamic elements in web page

26.hash map and hash table

27.inheritance concepts

28.method overloading and overwriting

29.final and finale

30.feature file

31.mouse over concept

32.locator in selenium

Yethi consulting Interview Questions :

AUTOMATION Questions :

1) Tell me about your self

2) What is Action class and explain?

3) How to handle multiple browsers tabs in selenium?


4) How to Upload file using Selenium and give the syntax for that ?

5) How to perform (control + a) through selenium ?

6) How to shift between tabs of the same browser using selenium ?

7) What are the difference between get() and navigate()?

8) What are the difference between findElement() and findElements() and what its will return value for
findElements () and findElement()?

9) Different approaches to click and submit button?

10)HandlingWebTable(static and dynamic) in selenium

11)What does getwindowhandles() and getwindowhandles() return? and its difference

12) Is it possible to use only perform() without build() ?

13)What is perform() and build()?

14) What is page Factory?

15) Explain Implict wait and Explicit wait?

16) Write code for handling multiple browsers ans switch to new browser?

17) What is WebDriver? And why WebDriver is used ?

18) What is StaleElementsReferenceExceptions?When this occurs ? And How to overcome such


exception?

19)How you group the testcases ? Any why?

20) How to include or exclude test cases ?

21) Why we are using System.setproperty("WebDriver.chrome.driver" " path for driver")?

22)Explain WebDriver driver = new Chrome driver() ?

Java Questions -

1) Difference between String and Stringbuffer

2) Explain types of variables ?

3) Explain Abstract and Interface ?

4) Explain polymorphism?

5) Explain Singleton class in Java ?

6) Difference between Hashmap and Hashtable ?


7) Explain Hashset ?

8) What is exceptions and its types ?

9) Difference between static methods and non static methods?

[8/13, 2:09 PM] Shammi Zha: Oracle interview question

1) which framework you have used?

2) how to handle failed test cases.

3) if your test cases depends of previously test cases how did you handle & explain syntax for that?

4) what is regression testing.?

5) what are the different types of wait you have used in your framework and explain.

6) what is the difference between test plan and test strategy..?

7) asked some queries.

8) tell me something about exception.

9) BDD cucumber explain

10) explain framework architecture.

11) related to data base testing

12) level of testing.

13) Defect bug life cycle

[8/13, 2:10 PM] Shammi Zha: TCS Pune Interview Questions -. 1) Tell me about your self?

2) Which Framework you have used for your project ?

3) Explain Page Factory ?

4) Explain Abstract & Interface ?

5) Difference between Implict wait , Explicit wait and Fluient wait ?

6) What is the code for screenshot using selenium ?

TCS Chennai Interview Questions:

1) Tell me about your self

2) Explain Framework

3) What is Inheritance ?
4) What is API Testing and explain in detail ?

5) What is Jasmine Framework?

6) What is Python ?

[8/13, 2:10 PM] Shammi Zha: Capgemini Pune Interview Questions :-. 1) What is abstract class ?
2)Explain Framework? 3) What is Jenkins & explain the connections set up you have done ? 4)
How will you connect DB with Automation? 5) How will you fetch data from Excel sheet and tell me
the syntax for that column? 6) What is Arraylist ? 7) What is Inventible in Java ?
8) What is Hashmap and Hashtable ? 9)Explain collections and explain List and set ? 10)
How will you used CI/CD integration in your project ? 11) Questions on Database Testing
12) Do you have the knowledge of Unix / Linux ?

13) Write SQL Queries .

[8/13, 2:10 PM] Shammi Zha: Quality Kiosk Interview Questions :

1) Tell me about your self

2) What is xpath ?

3) Write the program for Prime Numbers

4) What is constructor and explain types of constructor ?

5) Explain Locators used in selenium

6) How will you get the label from the variable using Selenium?

[6/20, 12:02 AM] Shammi Zha: *Free Online QA/Testing Mock Interview Session (Every Saturday and
Sunday - 11.00 AM to 12.00 PM)*

Please join my meeting from your computer, tablet or smartphone.

https://global.gotomeeting.com/join/522079293

You can also dial in using your phone.

United States: +1 (872) 240-3412

Access Code: 522-079-293


New to GoToMeeting? Get the app now and be ready when your first meeting starts:

https://global.gotomeeting.com/install/522079293

Thanks

Shammi Jha

8305429370

[6/22, 7:26 PM] Shammi Zha: Xoriant first round

1. Diff between list and set

2. How to calculate the size of a string biggest strinf, I have 10 strings

3. What does getwindowhandles return, I have a window and when I click on a button I open
another wndpw ,tell me the flow to goto child window, how will you get to know which is chid window
and which is parent window ?

4. I=explain flow of following code

Try{

Int i=10/0;

Return 10;

Caltch

Return 20;

Finally {

Retun 30;}

5.What are different types of exception you have encountered in selenium , how did you over come
stale lemetn exception ?

6.Why do we use java script, how is the problem of elements not finding resolved using javascript

7. Difference between put and post methid

8 difference between stateless and statefull

9 in git what is the commands


10 how to schedule jobs in Jenkins, what are different commands

11how can we parameterize builds

12 in css seelctors, what is difference between <>, > returns what ? can we replace > with any xpath

Example <div><input><input? What will “> “return

13ommand to checkout code in git

14 difference between merge and rebase

15 I have a metod add(int,string,string,string);

I am implementing this method, what is the optimised way to implement the method , can I reduce the
number of argument if yes how?

[6/24, 6:54 PM] Shammi Zha: Hi Shammi Ji, I had an Interview For QA Profile at Evolent Health today.
They had asked me following questions:

1. Tell me about yourself

2. How to handle Windows based popup

3. How to take screenshots, write the syntax

4. How to perform drag and drop

5. Difference between waits - Implicit and Explicit

6. Difference between driver.close() and driver.quit()

7. What is EventFiring?

8. There is condition which is assert.assertEquals and it fails, how will you be handling this to
take screenshots on failure?

9. Define your framework

10. How to do file upload

11. How to select from the drop down

12. What is Scrum?

13. What is Scrums of Scrum?

14. What are Agile Ceremonies?

15. When Does we have retrospective meeting and who all are there?

16. When does you have grooming and what happen during this?
17. Sprint Planning?

18. Agile: Burndown and BurnUp chart?

19. Velocity in Agile?

20. What is spike in Agile?

21. What is sprint zero?

SQL:

1. Write query to select the count of total employee from one department out of so many

2. Write query to find the total count of employee in each department: i.e. department wise
employee count should be returned

3. Difference between union and union all

4. Two tables have one thing in common employee id: one table has following columns i.e.
employeeid, name, department, and second table has following columns: employeeId, Project, Salary

a. Find out the employees of project p1 and having salary over 10000 and less than
30000

Manual + API:

1. What is RTM?

2. How you write test cases?

3. Difference between Regression Testing and Integration Testing?

4. What is Test Planning? What does it consists of?

5. What are the tools you have used?

6. What is HIPPA?

7. What is Provider and Payer in healthcare domain?

8. What is API?

9. Different methods in API?

10. Explain each method

11. What is 400?

12. What is 401? How to resolve it?


13. What is 500 and when we get this?

14. What is 502?

15. What is 200?

16. Explain the test scenario to test following: POST API: https://abc.com/heathcareId/paitentId

17. How will you generate accessToken under Postman?

[7/3, 12:20 PM] Shammi Zha: Dassault Second technical Round

Time : 1 hour interview

1. Tell me about your self

2. difference between absolute and relative xpath

3. your role and responsibility in current project

4. What is Data Driven Framework

5. How you write Test Script

6. how you decide which test case should be automate and which shouldnt

7. tell me the ATLC life cycle

8. what is Agile Methodology and how you are apply in your project

9. Pron and cons of agile methodology

10. chalenges faces while doing automation testing

11. which version no you are using in your selenium jar

12. after complting the code which tool you are you using to save you suite

13. have you ever made any framework from the Scratch?

14. how much you are rating yourself in Java?

15. gave three java program and asking the output

16. Ask me to share the Screen and with the help of Eclipse perform now and the given scenario is

# Scenario

open browser >> go to IBIBO.com >> Go to DEparture >> HIt to Arrown button >> go to august and come
to july and select 31 july
and he want to see in DOM structure also at that point only

17. SHared screen and there is one program he ask me to do optimise the code

18. Ask my Anual package,notice period

[7/3, 7:15 PM] Shammi Zha: *How To Decorate Your Naukri Profile:*

*1. Resume Headline:*

0.0 Years Exp. in Selenium,WebDriver,Java,TestNG,Maven,Jenkins,SVN,API Testing,Regression,Mobile


Testing,Page Object Model,Agile,Performance,Automation testing,Manual Testing,Framework
Design,SQL,Web Services,Grid,JIRA,VSTS,Appium,Cucumber,JMeter,Git

*2. In Key Skills Section: Please Update as below:*

Page Object Model,Selenium,WebDriver,Grid,TestNG,Manual & Automation


Testing,Eclipse,Postman,Swagger,Jenkins,Maven,Git,Appium,Cucumber,JMeter,MantisBT,Bugzilla,JIRA,V
STS,SQL,Java,HTML,JavaScript,Regression,Mobile Testing,Performance,API Testing,Agile

*Note:*

✔️Recruiter Can see only Resume Headline & Key Skills at first appearance.

✔️Please decorate your naukri profile as it is.

✅ *I will share these below points further :-*

✔️How to write profile Details, Employment Details in Naukri.

✔️How to write your Project Description.

✔️How can we set IT Skills upto 50 on Naukri as we know naukri allow to set only 10 IT Skills.

✔️How to make attractive resume to get call for interview.

✔️How many times and when we should update our naukri profile to keep recruiter eyes.

✔️How to set priority for your preferred job location in naukri by selecting multiple location.
Thanks

Shammi Jha

8305429370

[7/4, 6:54 PM] Shammi Zha: *What are bin & src folders in Java Automation Framework structure?*

*Ans.*'bin' and 'src' are not exclusive to Test automation. These are generic Java folders created to
segregate the written-code and the compiled-code.

-- src: Folder where our written code resides. Human readable code files.

-- bin: Folder where the compiled files reside, that the Java Virtual Machine (JVM) executes..
E.g. .class, .jar etc.

In simple words: Developer writes the Java code, i.e. .Java files >> These .Java files are stored in src
folder >> Compile the code >> Java code is converted to Byte-code which can be read by JVM, i.e. .class
files stored in bin folder.

Thanks

Shammi Jha

8305429370

[7/4, 9:52 PM] Shammi Zha: *Why and How Automation*

1. Before starting Automation, ask yourself what is your goal? Is it to reduce regression cycle or to
reduce technical debt (In sprint Automation) or to enable continuous testing.

2. Once your goal is decided, check who should participate and to what extent?(Product owners, Dev,
QA)

3. Communicate your goal to every team member. Everyone should be aware what we are going to
accomplish.

4. Decide your execution strategy. When and how these cases will be executed?
- Anytime you want? (Locally)

- Multiple times a day?(Separate build)

- When new code checked in?(Developer build)

5. Choose your tool very wisely. Don't go by vague idea to pick only open source tool, maintenance and
triaging will be huge task if you don't have coding knowledge.

6. Choose at what level you want to automate. Unit, Services or UI.

7. Future proof your test automation. Since starting only design your framework in such a way that later
you can run on Multiple environments, diff browsers and parallel execution.

8. Test automation is itself a development project so maintain highest coding standards, choose clean
coding style, choose appropriate design pattern.

Thanks

Shammi Jha

8305429370

[8/9, 5:08 PM] Shammi Zha: *Xoriant Solutions (Exp--3+ years)*

Rate yourself out of 5 in Java, Selenium & Cucumber

1) Tell me about yourself

2) Roles & responsibilities

3) Explain your Framework

4) Explain Drop down concept in different ways(depend on ans they will goes in depth)

5) Flipkart scenario to click on Electronics (using Action Class)

6) What is Polymorphism

7) What is interface? (Depend on ans goes in depth)

8) What is Cucumber?

9) difference of scenario outline & data tables in cucumber


10) What is hooks?

11) What is Tagging in cucumber

12) difference between dryRun & Strict in cucumber

13) Is Cucumber support TestNG

15) What is encapsulation? Explain with example & code

16) Java program to find duplicate characters from word without using for loops.

17) Explain code of object Repository (.properties file)

18) how you store data in .properties file

19) what is page factory

20) difference between @BeforeClass & @BeforeTest

21) which things you are writing in @BeforeTest

22) How skip test case in Cucumber

23) how to run failed test case in TestNG

24) How to Gruop and run that test cases in TestNG

25) what you write in @BeforeSuite annotation

26) different locators

27) what is collection in java

28) Hierarchy of Exception

[8/9, 8:14 PM] Shammi Zha: Smart Energy water interview questions

1.Tell me about yourself

2. Rating in java out of 5

3. Difference between static and instance variable

4. Difference between Abstract and interface

5. Where we use Apache POI

6. How to do Parallel execution in TestNG

7. How to implement Extent report in framework

8. Difference between implicit and Explicit waits

9. How to set priority of test case in testNG

10. How to run single testcase multiple times in testNG


11. How to skip any of the test case in testNG

12. What is the Return type of constructor

13. Can we make constructor as private?

14. Concept of Page Factory and it's implementation and object creation

15. Drag and drop in selenium

16. Types of test annotation in testNG

17. Difference between before test and before method annotation

18. Explain Page object model and it's implementation

19. How to access static variable in another class.

20. Drop-down in selenium

[8/10, 9:06 AM] Shammi Zha: Tech-Mahindra Hyderabad Interview Question

1st Round

1. Write a Code to generate Random numbers.

2. Write code to verify a number is perfect number or not.

3. Fibonacci series from 1 to 10.

4. Write a program to find a Factorial of a number.

5. Swap two number s without using the third variable.

6. Program to find the greatest of three numbers.

7. An Array of numbers given. .Find the largest two number and print it

8. Reverse a number.

9. Verify if a given number is a palindrome or not. (same concept of reversing a number)

10. Armstrong number program.

11. A String is given to remove the white spaces, reverse it and print the only odd position characters.

12. Check if a string is an anagram of another string.

13. A string is given make few characters to upper case as asked.

14. In a String print the occurrence of each character.

15. In a Statement check how any duplicate strings are there and remove them.
16. Use split to print each word of a statement.

17. Find the substring of a String.

18. Remove duplicate characters from a string and print it.

19. Write a code to print the triangle of numbers.

20. Read and Write file program.

21. Calculate the power of a number using a while loop

2nd Round

1. Write a program to take a screenshot of a page and explain?

2. There are 4 frames in a page click the element present in each frame?

3. Write XPath for radio button and checkbox.

4. Why do you use TestNG and why not JUnit?

5. How did u use runtime polymorphism in your project?

6. What is an agile model and explain your involvement in a scrum team?

7. Explain the framework used in your project.

8. What is the need to use Jenkins?

9. Explain driver.quit()?

10Explain your current framework?

While explaining the framework, in-between they will ask a few questions about the framework. Like
why this framework?

Execution flow?

3rd Round

1. How to integrate with TFS?

2.Benefits of Selenium?

3.Benefits of Oops??

4. What is polymorphism??

5. What is the dictionary ??


6. How to handle AJAX elements?

7. What is synchronisation?

8.Difference between implicit wait and explicit wait?

9. What is the automation life cycle?

10. What is the framework?

11. What is Nunit? Explain the capabilities of Nunit?

12. Write a script to open the Firefox without using FirefoxDriver class

13. How to take the screenshot of the web element?

14.How to verify whether the element is present or not using find elements method

15. Write a script to verify whether the checkbox is selected or not.

16.How to verify whether the list box is a dropdown list or multi-select list.

17.Difference between ArrayList and linked list?

18. Explain the vector??

19.Difference between abstraction and encapsulation?

20.Difference between protected and default access specifiers?

21. What is singleton class ??

22.Why POM??

Interview Questions on LoadRunner/Performance Testing:

Say me some thing about your self

Do you have any question?

1) Tell me 10 issues that you faced in load runner

2) How do you debug the script?

Using lr_debug_message

Using check point

3) What is the difference between URL and html based recording?


URL-non browser level (example images are video file)

HTML-browser (checking the browser components)

4) How do you cross check that your test is correct?

5) Say me some of the counters used for web logic and windows resources and database

6) What is environment of load runner?

I send you an image file previously

7) What are you going to do if you don’t have enough resources available in your desktop?

Run it from other

8) What is rendezvous policy?

9) Is there any different way to do stress testing ?

10) What are the resources you are going to monitor when running your script?

11) What is manual correlation? How do you handle it?

12) What is the process of doing manual correlation?

13) How are you going to know where exactly you’re got error?

14) Do you feel reducing the connection to database will increase the response time?

15) What is the different protocol you used in load runner?

Html

16) Did you test web services? No

17) How are you going to know which page the script is running in controllers?

Using transaction points

18) For how many users you have license of load runner?

250 users

19) What is the bench mark for your application?

3 sec for response

30 stress user 150 simultaneous user

20) How to you resolve the issues of server restart?

Pre-requisite before testing (handled by DBA)

Batch jobs in windows

Crone jobs for database


21) How did you handle correlation?

22) Explain each parameter in web_reg_save_param?

23) How can you say that how many hits are taken to database and how many to server?

24) What is meant by stress testing?

25) When will you get step download timeout error?

26) Any other way can you do stress tress with ramp and ramp down.

27) How do you verify in your that the operation your performed has passed?

[4/7, 2:29 PM] samiksha jain: Write a test automation script to create the following output_dict using
Input_dict. (Python or any preferred language)

Input_dict = {“Exp1”: “2+3-5”, “Exp2”:”4x5-3”, “Exp3”:”4/2+5-9”,}

output_dict = {“Ans1”: “0”, “Ans2”:”17”, “Ans3”:”-2”,}

[4/9, 1:22 AM] Shammi Zha: *#Unified Functional Testing*

Unified Functional Testing software, formerly known as HP QuickTest Professional, is a proprietary


automation tool that provides functional and regression test automation for software applications and
environments. It provides keyword and scripting interfaces and features a graphical user interface. Using
UFT, you can automate user actions on a web or client based computer application and test the same
actions for different users, different data set, on various Windows operating systems and/or different
browsers.

In 2017, HPE Software spin merged with Micro Focus. The software arm of HPE merged with Micro
Focus. HPE still hold 50.1% of the merged company. Hence it is now called Micro Focus UFT. HPE
software businesses in areas such as application management (like ALM, LoadRunner, UFT), big data
analytics and enterprise security merged with Micro Focus.

Thanks

Shammi Jha

[4/9, 1:24 AM] Shammi Zha: *Q. Do you have working experience in an Agile environment? What's your
Team composition?*

*A.* We do follow Scrum methodology with 2-week sprints including Sprint Planning, Daily Stand-ups,
Demo sessions & Sprint reviews. The roles include,
• Product Owner: Champion for Business! The communication bridge b/w the team and stakeholders –
writes customer-centric user stories, prioritize, maintains Product Backlog, Demo sessions, define
releases, communicates team status, etc.

• Scrum Team: Champions for sustainable development & QA! Responsible for delivering potentially
shippable increments of product at the end of each Sprint. A mix of software engineers, architects,
programmers, analysts, QA experts, testers, and UI designers.

• Scrum Master: Champion for Scrum! Coach the team, the product owner, and the business on the
scrum process and look for ways to fine-tune their practice of it.

Scrum team is the car, product owner - the driver and Scrum Master - the chief mechanic :-)

Thanks

Shammi Jha

[4/9, 12:25 PM] Shammi Zha: *Why and How Automation*

1. Before starting Automation, ask yourself what is your goal? Is it to reduce regression cycle or to
reduce technical debt (In sprint Automation) or to enable continuous testing.

2. Once your goal is decided, check who should participate and to what extent?(Product owners, Dev,
QA)

3. Communicate your goal to every team member. Everyone should be aware what we are going to
accomplish.

4. Decide your execution strategy. When and how these cases will be executed?

- Anytime you want? (Locally)

- Multiple times a day?(Separate build)

- When new code checked in?(Developer build)

5. Choose your tool very wisely. Don't go by vague idea to pick only open source tool, maintenance and
triaging will be huge task if you don't have coding knowledge.
6. Choose at what level you want to automate. Unit, Services or UI.

7. Future proof your test automation. Since starting only design your framework in such a way that later
you can run on Multiple environments, diff browsers and parallel execution.

8. Test automation is itself a development project so maintain highest coding standards, choose clean
coding style, choose appropriate design pattern.

Thanks

Shammi Jha

8305429370

[4/16, 12:26 PM] Shammi Zha: *What are bin & src folders in Java Automation Framework structure?*

*Ans.*'bin' and 'src' are not exclusive to Test automation. These are generic Java folders created to
segregate the written-code and the compiled-code.

-- src: Folder where our written code resides. Human readable code files.

-- bin: Folder where the compiled files reside, that the Java Virtual Machine (JVM) executes..
E.g. .class, .jar etc.

In simple words: Developer writes the Java code, i.e. .Java files >> These .Java files are stored in src
folder >> Compile the code >> Java code is converted to Byte-code which can be read by JVM, i.e. .class
files stored in bin folder.

[4/21, 11:06 AM] Shammi Zha: *Synechron Interview Questions:*

1) Brief Introduction

2) Brief about the workflow you have worked on

3) Have you used Pagefactory, give an example

4) What all Annotation you have worked on

5) Have you worked on Keyword driven framework


6) Have you handled dynamic web element

7) GetWindowHandle() what would it return

8) How do you handle Excel file

9) Tell me a code which can store String into different character

10) What is the difference between List and Set

11) Have you handled JDBC connections

12) How to read and write a text file in Java

13) What is Reflection in Java

14) How is reporting done in your project

Thanks

Shammi Jha

[4/25, 5:42 PM] Shammi Zha: *Resume Tips:-*

Your resume is the key to getting shortlisted for an interview. It should reflect your actual skill set
including the tools you have worked on. Ideally the professional summary should contain your
experience from QA, Process, Planning, Technology, Tools, roles & responsibilities. Recruiter generally
search for keywords in a resume like – Automation, Performance, JMeter, Selenium, Java, Sanity,
Regression, Agile, etc. Make sure to include these keywords in your professional summary.

[4/25, 8:54 PM] Shammi Zha: I just wanted to share few interview questions asked by recruiter in
*LearningMate Company Mumbai :*

1. Remove duplicate character from string without using array

2.Revrse String prog.

3 . TestNG annotations

4.Do you facing any challenges to finding the web elements. explain how it will resolve.

5 . Some scenarios related to excels and table.

6. Some scenarios related to Frames.


7. How handle Web base popups

8. How to execute 1 test multiple times without using data provider in TestNG.

9. What is statle element exception

10. Opps Concepts.

11. How to capture screenshot in selenium

12. Which type of Framework used your project. Explain it.

13.Dropdown related scenario.

Thanks

Shammi Jha

[4/25, 9:10 PM] Shammi Zha: *Synechron Interview Questions:*

1) Brief Introduction

2) Brief about the workflow you have worked on

3) Have you used Pagefactory, give an example

4) What all Annotation you have worked on

5) Have you worked on Keyword driven framework

6) Have you handled dynamic web element

7) GetWindowHandle() what would it return

8) How do you handle Excel file

9) Tell me a code which can store String into different character

10) What is the difference between List and Set

11) Have you handled JDBC connections

12) How to read and write a text file in Java

13) What is Reflection in Java


14) How is reporting done in your project

Thanks

Shammi Jha

[4/27, 11:17 AM] Shammi Zha: infrasoft

1st round

1)About yourself and roles , responsibilities

2) difference between / and // in selenium xpath

3)what is the difference between absolute and relative xpath

4) how do you choose a test case is fit for automation

5)test scenarios for elevator

6)contents of test plan

7)test stratergy

8) difference Between product owner and scrum master , can one person play both roles?

2 nd round

1) significance of jre,jdk,jvm

2)how do you achieve inheritance in java, what is the keyword used

3)can we use multiple inheritance in java

4)how do we use interface in class

5)do we need to create instance of class while creating instance of interface

6) difference between method overloading and method overriding

7)can we change return type of method in method overloading, will it give error of yes when ?

8)what all ceremonies were performed as part of your agile project

9)what types of testing you performed in your project

10)what is difference between sit and uat

11) project specific questions


[5/13, 5:13 AM] Shammi Zha: *Top 22 Java Interview Programs:-*

*01 - Check if number is palindrome* ----------------------------------

// String s1 = "madam";

// StringBuilder sb = new StringBuilder(s1);

// StringBuilder temp = sb.reverse();

// String s2 = temp.toString();

// if(s1.equals(s2))

// System.out.println("String is palindrome");

// else

// System.out.println("String is NOT palindrome");

*02 - Reverse a number* -----------------------------------------------

// int n =12345, rev=0;

// while(n!=0){

// int r = n%10;

// n = n/10;

// rev = rev*10+r;

// }

// System.out.println("Reversed = "+rev);

*03 - Reverse string by Words* ----------------------------------------

// String s = "life is beautiful enjoy it";

// String[] parts = s.split(" ");

// for(int i=parts.length-1;i>=0;i--)

// System.out.print(parts[i]+" ");
*04 - Reverse string by character* ------------------------------------

// String s = "life is beautiful enjoy it";

// for(int i=s.length()-1;i>=0;i--)

// System.out.print(s.charAt(i));

*05 - Convert First Character of String to UpperCase* -----------------

// String s = "life is beautiful enjoy it";

// String[] parts = s.split(" ");

// for(int i=0;i<parts.length;i++){

// char[] ch = parts[i].toCharArray();

// for(int j=0;j<ch.length;j++){

// ch[0] = Character.toUpperCase(ch[0]);

// System.out.print(ch[j]);

// }

// System.out.print(" ");

// }

*//-------------- 06 - Count of Characters in String* (Incomplete)-----------------------

// Create an array of size 256 i.e. ASCII_SIZE

// String s = "abbcccdddd";

// char[] ch = s.toCharArray();

//

// for(int i=0;i<ch.length;i++){

// int counter=0;

// char c=s.charAt(i);
// for(int j=0;j<s.length();j++){

// if(c==ch[j]){

// counter++;

//// ch[j] = '\u0000'; // OR ch[j] = 0;

// }

// }

// if(counter>0)

// System.out.println(c+" "+counter);

// }

*//-------------- 07 - Swap two numbers without using 3rd* ------------------------------

// int a=100, b=300;

// a=a+b;

// b=a-b;

// a=a-b;

// System.out.println("a="+a);

// System.out.println("b="+b);

*//-------------- 08 - Sort Integer Array in ASC/DSC* -----------------------------------

// int[] a = new int[]{5,4,1,2,3};

// int temp = 0;

// for(int i=0;i<a.length;i++){

// for(int j=i+1;j<a.length;j++){

// if(a[i]>a[j]){

// temp = a[i];

// a[i] = a[j];

// a[j] = temp;
// }

// }

// }

// for(int i=0;i<a.length;i++)

// System.out.println(a[i]+" ");

*//-------------- 09 - Program to Generate random number* -------------------------------

// Random r = new Random();

// int n = r.nextInt();

// System.out.println(n);

*//-------------- 10 - Check Number of Vowels in String* -------------------------------

// String s = "life is beautiful enjoy it";

// char[] letters = s.toCharArray();

// int count = 0;

// for(char c : letters){

// switch(c){

// case 'a' :

// case 'e' :

// case 'i' :

// case 'o' :

// case 'u' :

// count++;

// break;

// default:

// }

// }
// System.out.println("Total Vowels in String = "+count);

*//-------------- 11 - First Non-Repeated Character in String --------------------------*

// String s = "aabbbcdddd";

// char ch[] = s.toCharArray();

// for(char c : ch){

// if(s.indexOf(c)==s.lastIndexOf(c)){

// System.out.println("First non-repeat char = "+c);

// break;

// }

// }

*//-------------- 12 - Find If String is Palindrome* -----------------------------------

// String s1 = "madam";

// StringBuilder sb = new StringBuilder(s1);

// StringBuilder temp = sb.reverse();

// String s2 = temp.toString();

// if(s1.equals(s2))

// System.out.println("String is Palindrome");

// else

// System.out.println("String is NOT Palindrome");

*//-------------- 13 - Find 1st & 2nd Greater Number from Array* -----------------------

// int[] a = {1,2,3,4,5,6,7,8,9};

// int g1=0,g2=0;

// for(int i=0;i<a.length;i++){
// if(a[i]>g1){

// g2=g1;

// g1=a[i];

// }

// }

// System.out.println("g1 = "+g1);

// System.out.println("g2 = "+g2);

*//-------------- 14 - Find Missing Number in Array* -----------------------------------

// int[] a = {4,5,6,7,9};

// Arrays.sort(a);

// for(int i=0;i<a.length;i++)

// System.out.print(a[i]+" ");

// System.out.println(" ");

// int first;

// first=a[0];

// System.out.println(first);

// for(int i=1;i<a.length;i++){

// if(a[i]==(first+1)){

// first=a[i];

// System.out.println(a[i]);

// }else{

// System.out.println("missing = "+(first+1));

// break;

// }

// }
*//-------------- 15 - Find Duplicate Number in Array* ---------------------------------

// int[] a = {4,5,6,7,8,9,9};

// Arrays.sort(a);

// for(int i=0;i<a.length;i++){

// int n = a[i];

// int counter =0;

// for(int j=0;j<a.length;j++){

// if(n==a[j])

// counter++;

// }

// if(counter>1){

// System.out.println("Duplicate Number = "+a[i]);

// break;

// }

// }

*//-------------- 16 - Remove first repeated Number in Array* ---------------------------

// int c =0;

// int[] a = {1,2,3,4,5,1};

// Arrays.sort(a);

// for(int i=0;i<a.length;i++){

// int n = a[i];

// int counter = 0;

// for(int j=0;j<a.length;j++){

// if(a[i]==a[j])

// counter++;

// }

// if(counter>1){
// System.out.println("Repeated Number : "+n);

// c=n;

// break;

// }

// }

// a = ArrayUtils.remove(a, c);

// for(int i=0;i<a.length;i++)

// System.out.print(a[i]+" ");

*//-------------- 17 - Find first non-repeated Number in Array* ------------------------

// int[] a = {4,9,4,8,7,8,9};

// Arrays.sort(a);

// for(int i=0;i<a.length;i++){

// int n = a[i];

// int counter =0;

// for(int j=0;j<a.length;j++){

// if(n==a[j])

// counter++;

// }

// if(counter==1){

// System.out.println("Non-Repeat Number = "+a[i]);

// break;

// }

// }

*//-------------- 18 - Find common element in 2 Array* ----------------------------------

// int[] a = {1,2,3,4,5};
// Arrays.sort(a);

// int[] b = {6,7,2,9,1};

// Arrays.sort(b);

// for(int i=0;i<a.length;i++){

// for(int j=0;j<b.length;j++){

// if(a[i]==b[j])

// System.out.println("Common Element : "+a[i]);

// }

// }

*//-------------- 19 - Check if element of string is number* ----------------------------

// String[] ss = {"abc","123","xyz"};

// Pattern pattern = Pattern.compile(".*[^0-9].*");

// for(int i=0;i<ss.length;i++)

// System.out.println("Input "+ss[i]+" is number :"+!pattern.matcher(ss[i]).matches());

*//-------------- 20 - Fibonacci Series* ----------------------------------------------

// int prev,next,sum=0;

// prev=next=1;

// System.out.print(prev+" ");

// for(int i=1;i<10;i++){

// sum = prev + next;

// System.out.print(sum+" ");

// prev= next;

// next = sum;

// }
*//-------------- 21 - Prime Number* ---------------------------------------------------

// boolean flag = true;

// Scanner sc = new Scanner(System.in);

// System.out.println("Enter number -> ");

// int n = sc.nextInt();

// for(int i=2;i<n;i++){

// int rem = n%i;

// if(rem==0){

// flag = false;

// break;

// }

// }

// if(flag) System.out.println("Prime");

// else System.out.println("Not Prime");

*// -------------- 22 - Factorial Number* ----------------------------------------------

// int fact = 1;

// int n = 4;

// for(int i=1;i<=n;i++)

// fact=fact*i;

// System.out.println("Factorial = "+fact);

*Thanks*

*Shammi Jha*

*8305429370*
[5/13, 5:17 AM] Shammi Zha: Hello Mates,

Most of the time I hear from many peoples like I am working very hard but still not getting success,
please help me..

I would like to keep your eye on below points:

1. There should be no any routine task in your life till you achieve your goal.

2. All time in your mind only your goal should be flow.

3. If we feel hungry, sleepy, if looking for some favourite stuff, we should avoid it and we should never
stop till we reach the goal.

Note:

1. If you are eating on time, sleeping on time, awaking on time and doing all the stuff on time ,it's your
routine task, most of the people doing same in nature. So what you are doing different.

2. If you are feeling sleepy, please don't sleep and work hard. Definitely God will help because you are
sacrificing your favourite stuff to achieve your goal.

3. Please never miss the opportunity to attend interview, we don't know where our luck is waiting for us.
Try to attend all interview.

4. At Last would like to say, Believe in God. Har Har Mahadev..💐💐🙏🏻

Thanks

Shammi Jha

8305429370

[5/14, 11:26 AM] Shammi Zha: Hi all, My friend shared selenium automation questions ask during
interview rounds at my organization so sharing those with you all...

Below are the set of parameters on which evaluation would be done,

o Code re-usability.

o Code Comments.

o Optimized code.

o Optimized error handling.


o Synchronization techniques used.

o Locator techniques used.

o Dynamic locators.

o Degree of hard coding.

Scenario 1: Java

1. Java Program to generate Random Number

2. Write a Java program to iterate HashMap using While and advance for loop.

3. Java Program to reverse words in a String.

4. Java Program to reverse an array

5. Java Program to display Fibonacci series using loops

[5/16, 12:23 AM] Shammi Zha: 2nd Round Interview of Ambab Infotech(Team Lead)

1. Roles & Responsibilities

2. What is WorkSheet, Which file do you use.

3. Parallel testing using TestNg & Syntax.

4. Why we use TestNG ?

5. Explain Maven & What version of TestNG u use ?

6. How can we skip the Test in TestNG

7. What is Group in TestNG .

8. What is Adhoc Testing & Exploratory Testing.

9. Load Testing

10.What is StaleException ?

11. Difference between POST & Put.

12. What is API & How it works.

13. Challenges faced while you given Task to Complete ASAP.

14. Bug Life Cycle

[5/16, 12:23 AM] Shammi Zha: 1. Tell me About yourself.

2. What are you Roles & Responsibilities in current Company

3. Explain Your Current Project , and explain ur project


4. What are the challenges u faced in Automation

5. OOPs Concept used in Framework

6. Explain Abstraction & Inheritance

7. How to handle Alert Button, Tell me Methods of it ?

8. Explain me Code How to write & Read from Excel.

9. FileInputStream is a Class or Interface ?

10. Difference Between Retesting & Regression

11. Difference between Interface & Abstraction

12. What are abstract Methods & can we extend it ?

13. Explain the Agile, & What is PBI ?

14. What is priority & Sevirity ,Tell me High Priority & Low Severity

15. What is Integration Testing.

16. Explain Water Fall Model.

17. Tell me Which Automation tool you used for Mobile

18. What are desired capabilities in Appium

19. Tell API Components

20. Explain Me About GitHub, How u Store Code.

21. Different types of Inheritance, And what is Multiple Inheritance

22. What is Static & Dynamic Website

23. What is POST Method ?

22. What is 400 & 404 ?

[5/19, 2:23 PM] Shammi Zha: Hcl first round interview questions

1. Tell something about yourself

2. Abstract class and interface

3. Static keyword in Java

4. String builder in Java

5. How we do multiple window handling in selenium

6. What is scenario outline cucumber

7. What is cross browser testing


8. Api testing framework explain

9. What's jmeter framework

10. Tell some testng annotations

[5/19, 4:22 PM] Shammi Zha: Interview Questions- HCL - 1st round

1. Tell about yourself.

2. Which Java and Selenium versions you are using?

3. What advantage you got by using jdk1.8 compared to older version?

4. Have you worked on hibernet, spring?

5. What OOPs concepts you've used in project and how?

6. What is interface?

7. How will you upload a file using Class?

8. How will handle alert?

9. If you have two delete buttons which gives two alerts and both alerts have same text except one word
which is different and you want to accept one alert and dismiss other and case of that one word can also
change then how will you handle this?

10. What do you know about Cucumber?

11. How will you find element at column 1 and row1 of a table?

12. Which plung-ins you have used in project?

13. Have you faced any issue like your test cases are working fine in local but getting failed in Jenkins?

14. How to automate keyboard keys?

15. Have you used List, Set and Map? And where and give syntax.

16. If you have to handle more than one exception using try catch e.g. FileNotFoundException and
IOException then which exception sequence you will follow and why? And if exception is not getting
handled using both then what should you do?

17. If I write 2 catch blocks, in first catch I am using Exception class object to handle exception and in
second catch block, I am writing IOException then what will happen?

[5/20, 12:48 AM] Shammi Zha: Globalstep service Pvt lmtd

Roles and responsibilities?

Have u review bug?

Have u interact with client?


What is sauce labs?

Which tool use to write test?

What is appium inspector

Selenium web driver is necessary for appium?

Appium to testweb appson mobile devices?

Current which version used in mobile testing?

Where to write test case in automation?

Service based company or product ?

[5/26, 8:59 PM] Shammi Zha: *Q. Is Java a compiled language or an interpreted one?*

*A.* Both. Confused? Yes, Java is both compiled as well as interpreted language. This is what makes it
platform-independent. Java Code >> Compile (javac) >> Bytecode (portable code) >> Interpret (platform
specific) >> Machine Code >> Execute.

Normal:

1. Java Compiler (javac) compiles Java code to Bytecode (which is platform-independent).

2. Java Interpreter (java) interprets this bytecode (line-by-line) & convert it to Machine language.

3. Execute.

Exception: JIT (Just In Time) Compiler

1. JVM maintains the count for no of times a function is executed.

2. If it exceeds the limit then JIT directly compiles the Java code into Machine language. No
Interpretation.

In General,

• Compile: Source code >> Optimized Object Code (can be machine code or other optimized code)
• Interpret: Source Code >> Machine Code (to be executed)

*Thanks*

*Shammi Jha*

[5/26, 9:16 PM] Shammi Zha: *Q. Do you have any experience with Office friction? When a colleague
was not happy with you. Or anything else.*

*A.* “A person who is always fighting OR the one who never fights – both are not good in the long run.”

Disagreement is the key to innovation. Debate is a powerful means to understand different perspective.
Friction is important to develop inter-personnel skills.

With a lot of people working together, friction is bound to happen. And it has happened with me as well.
It is a part & parcel of workplace.

It is not so much about the friction – but the learning that you get out of it. It can be a debate about
which technical approach to take, or as simple as work timings. What if a junior is rebellious? Not
adhering to certain policies? Or a senior who doesn’t understand your perspective? It can be anything.

We don’t learn as much from the success, as we learn from our failures. Friction is good, if you are
learning something. Something practical.

*Thanks*

*Shammi Jha*

[5/27, 5:42 PM] Shammi Zha: Interview Questions of Indian Energy Exchange Limited

By sharing the Screen & write the Code on Eclipse

-------------------------------------------------

1. swap without third variable in java

2. Count the "d" alphabet in given Sting = "Deven Dighe" and print in Java

3. Difference BetWeen String & StringBuffer

4. If String is Immutable, Then What is output of below Program


String s = "Karan Singh" ;

s = "Karan";

System.out.println(s);

5. What is Primary key ?

6. Difference between Primary Key & Unique Key ?

7. Write Query for Second Highest Salary ? By Complex Queries

8. If u want to find the Nth of Highest Salary , Then How will u write the Query ?

9. Explain About ur Framework , what kind of Excel do u used in Dat driven

10. How many Scenarios do u write in a day ?

11. Explain the Process you follow in Ur Company.

[5/30, 5:11 PM] Shammi Zha: Persistent-

Technical interview questions:

1. Explain API framework

2. Java

2.1. Write code to print below pattern (code to be written & run using eclipse)

33

555

7777

* Solution: Using 2 For loops this pattern can be achieved.

2.2. Code snippets to test below concepts:

a. Exception handling-
Try{

Error statement throwing Child exception

catch(Exception e){

catch (ChildException c){

*1st catch has Exception classname, 2nd catch has child exception classname.

Qn: If second exception is thrown in the try block, which catch block would be referred?

b. Runtime polymorphism-

P p = new C();

p.display();

P is parent class, C is child class, display method is present in both the parent and child classes, which
one would get executed?

* To identify and tell answer that 'display' method of child class would be executed as it's Runtime
polymorphism.

c. Object creation of parent class using child class reference:

C c = new P();

Here, C is child class, P is parent class.


The answer should be 'error' as we can't create a parent class object using child class reference.

3. TestNG questions:

Listeners,

dataprovider,

how to run parallel tests in testng,

how many annotations in testng?

4. Selenium:

- Alert is a class?

- Code snippet

Alert a = new Alert();

a= driver.switchto().alert();

a.accept();

Is this correct?

- how to take screenshots

- file uploading without using AutoIT

5. Maven questions:

- Plugin to generate reports in maven

- Diff. between maven install and build

6. Svn/git:

- how to create branch

- how to push/pull code

7. How to build project using cmd prompt?

8. CI/CD - Jenkins:
Have u used CI/CD?

Explain.

9. Cucumber:

- Explain cucumber framework

- Explain Test Runner file

- how many annotations in test runner file.

10. Have u done Performance testing?

- using jmeter, etc..

- any plugins

[5/31, 5:02 PM] Shammi Zha: This is regarding Evolent health assessment test , got three new questions
along with the existing questions shared in group.

Descriptive one:

1.Diff between implicit and explict wait.

2. Disadvantages of Automation testing

3. What is exploratory testing.

[5/31, 5:02 PM] Shammi Zha: In Nice online test, there are 3 section

1) testing and general aptitude questions-mcq's

2) java questions -mcq's

3) selenium - coding , 2 questions to complete code, half code is already given ,it was related to taking
screen shot and one was to read from excel file and constructor

[6/1, 4:03 PM] Shammi Zha: Cuelogic Interview Questions:

1. What is abstraction and how did you use abstraction in your framework.

2. Difference between static and final ?

3. Can abstract class have static data members ? How why?

4. What is session , can we store session data on client side ?

5. Login UC with username , paswrd, login button, explain scenarios.

6. 404 and 400 status code.


7. Difference between https and http.

[6/1, 5:21 PM] Shammi Zha: City Bank first round-

1. What you have done till now as part of your IT experience?

2. Do you know OOPs concepts and in framework where and how you have implemented it?

3. Can we declare a private class?

4. What is difference between == and equals?

5. How string is immutable?

6. Where strings get stored and where reference gets stored?

7. Can you please explain with the reference of memory location that how string is immutable?

8. If not want to use String class then what can be used?

9. Difference between String and StringBuffer.

10. What collections you have used? Have you used HashMap?

11. List declaration?

12. Where used Set?

13. You have an application like flipkart and you want to buy a pen, so you have added that item two
times to cart using add to cart button, but in cart only one entry for item should be displayed with
quantity as 2, so how you'll test this?

14. 1 to 100 numbers will be flashed on screen only once and you have to find the missing number.

15. I have a table and want to store all table data then which collection should be ust and why?

16. What HashMap will return?

17. How to achieve inheritance without having interface?

18. Method overloading and method overriding? Where used in framework?

19. If I want that my class should not be extended and instance cannot be created by other class then
how to declare class?

20. How to store multiple values in one reference?

21. In cucumber, in which class you have gluecode, how many classes for gluecode and what was the
program line limit for class?

22. How to find missing implementation in Cucumber?

23. Used static data or dynamic data, what was the approach?

24. How to resolved conflicts while pushing code in Git?


[6/1, 5:36 PM] Shammi Zha: Harman Interview question

1) Roles and responsibilities

2)Explain wyat you done in SQL testing

3)Explain SQL qieries

4)Explain What you done in API testing?

5)Do you have experience in unix?

6)Explain different types of deffect management ?

7)Explain Bug cycle

8)Explain How you handle exception

9)What is xpath?Type of X path.Explain each type

10)What is Wait selenium,Diffrernt type of waits,Explain each waits

11)How you convert string "HELLO" into String "hello"

[6/3, 3:55 PM] Shammi Zha: Nice Technical Round-1

What are your roles and responsibilities in your project as Automation tester ?

Explain your Automation framework.

(more questions were related to this with respect to the explanation we provide)

What is CI ?

What is Jenkins ? Explain how you have implemented in your project.

Agile -Scrum Methodology

What all ceremonies you have attended in your team ?

Which tool for automation you will choose for a project you are deployed ?

Project specific questions

Which types of testing were supported by selenium ?

Which metrics you use to track automation of your project ?

Note :Questions were more on Manual than Automation testing.

[6/6, 5:25 PM] Shammi Zha: Springer nature first round questions
1.explain your project and responsibilities

2. What is strings

3 inheritance and their types

4. What is polymorphism

5. Difference between method overloading and overriding

6. Xpath methods and syntax

7. TestNg questions on realtime related to execution priority

8. Difference between priority and severity with example

9. what is use of Maven

10.explain @test

11.sequence of TestNg annotations

[6/7, 1:39 PM] Shammi Zha: 📢 ✔️‼️Collections of interview questions asked for performance Testing
Tool in various organisation - *Jmeter*

1. Explain the architecture of JMeter

2. How do u used Jmeter in ur project and why

3. What are different timers used in Jmeter

4. How requests are sent to the server in JMeter?

5. Explain the Process of Parameterization

6. Does JMeter simulate actual browser behavior?

7. What is Distributed testing?

8. What is the use of Regular Expression in JMeter?

9. What are the types of processors in JMeter?


10. What are the different ways of Data Parameterization in JMeter?

11. What are the maximum recommended threads on a single system?

12. Explain the difference between Gaussian and Poisson Timers.

13. What are the major differences between JMeter and Load Runner.

14. What is the use of co-relation in JMeter?

15. Latest version of Jmeter

16. What are the different types of listeners?

17. Explain the flow of the Test Script Recorder.

18. Can JMeter record actions from mobile? If yes, how?

19. How to do master-slave configuration in JMeter?

20. What are the JMeter supported protocols?

21. Why is it recommended to run JMeter in GUI mode?

22. Is it possible to run selenium scripts in JMeter? If yes, how?

23. How do you manage sessions and cookies in JMeter?


24. What are the important steps for testing JDBC request?

25. What is BeanShell scripting?

26. Can JMeter measure the performance of a complete application? For Example, you have multiple
screens in your mobile app. Can JMeter measure the time taken to flip the screens?

27. What is a Root CA certificate?

28. Which factors decide the maximum threads that one should generate per system?

29. What is a Workbench and why is it required

30. What is Tidy Parsing?

31. What are the important plugins that are supported in JMeter?

32. What are the types of the controller in JMeter?

33. Explain Ramp up period?

34. What are the roles of Listeners in JMeter. Can you name a few of them?

33.Name a few timers in JMeter. For what purpose they are considered?

34. What do you mean by Rendezvous point?

35. What do you know about assertions?

36. What do you know about the Pre-processors in JMeter?


37. Is it possible to run JMeter in GUI? If so, explain how?

38. What are the different protocols that are supported by JMeter?

39. What are the main parts of a Thread Group?

40. How sampler and logical controllers in JMeter are different?

41. Name at least 10 Listeners that JMeter is equipped with?

42. What are the applications that you can test with JMeter?

43. What are Post-Processors in JMeter?

44. What do you know about the Concurrent user hit in JMeter?

45. : List some of the test plan elements in JMeter.

46. What are Controllers and its types?

47. What is the execution order of Test Elements

48. What is 90% line in JMeter?

49. What is heap size in jmeter?

50. What is median in jmeter listener

51. Is it possible that, if we increase the heap size in Jmeter, then application(jmeter) might not work?

52. What is Blaze Meter?

53. How do you ensure re-usability in your JMeter scripts?

[6/9, 11:45 PM] Shammi Zha: Capco interview questions

1) explain the different maps in java

2) explain implementation of hashmap

3) there are 2 interface with same method ,n a class implement the interfaces ,how to identify which
method is getting called

4) how do u work in IE browser,and how can you handle the various options thru code in selenium

[6/11, 9:15 AM] Shammi Zha: **Evolent Health Interview

Questions**

- what is the process of agile project

-what all ceremonies there in agile

- sprint planning and retrospective meeting


- burndown , velocity, spike in agile

- how to prioritise the userstories when running out out of time

-databases queries- max salary, joins , copy table from existing 1

- difference between union and union all

- difference between retesting and regression

- defect life cycle

- difference between deferred and rejected bug

- difference between test plan and strategy

- which selenium version u are using

-framework of your project

- synchronisation in automation

-types of waits and difference

-different types of locators

- write xpaths

-how to get values from dropdown

[6/12, 9:23 PM] Shammi Zha: Selenium questions

What are the locators available in Selenium WebDriver?

What are difference between findElement() and findElements()?

How can you launch any browser in Selenium WebDriver?

Why we need to set browser executable path as system properties to launch a chrome browser?

What error will be hrown when browser executable path is not set.

What are differences between get() and to() mehods?

What are difference between Selenium webDriver click() and Javascript click()?

Explain some methods of Xpath.

What are limitation of CSS Selector?

What is difference between name and className locators?

What are differences between absolute Xpath and relative Xpath? Which is preferred?

List some important interfaces in Selenium WebDriver?

What are methods available in WebElement interface?


What are methods available in WebDriver interface?

What is RemoteWebDriver?

Which interface is used to capture screenshot?

Which interface is used to run Javascript commands?

Is it mandatory to up cast browser driver class object to WebDriver?

How you will identify if a check box is checked?

How you will identify if a radio button is selected?

How you will identify presence of a WebElement?

How you will identify absence of a WebElement?

How you will identify viability of a WebElement?

How you will identify invisibility of a WebElement?

Write code snippet to find a element using any locator.

Write code snippet to find multiple elements and get the size?

Write code snippet to capture screenshot.

Write code snippet to execute a Javascript query.

Write code snippet to retrieve a text of an element. Assert if it is not null.

How to retrieve current url? Write code snippet and split the website name only. For example :-
www.facebook.com , then extract only “facebook”.

How to get current title of a page? Can a web page be without title?

What are differences between WebDriver and WebElement?

What are waits provided by Selenium WebDriver?

How implicit wait is different from explicit wait in Selenium?

What is WebDriverWait?

Write code snippet to configure a WebDriverWait instance.

Write code snippet to configure a FluentWait instance.

What are differences between WebDriverWait and FluentWait?

What is NoSuchElementException?

When you get TimeoutException in Selenium?

When does StaleElementReferenceException occur?


How to get all clickable links from a web page?

How to find broken links of a web page?

What is page load timeout and how you set it?

Write code snippet to configure implicit wait in Selenium?

What is difference between page load timeout and script time out ?

What are inner interfaces are available in WebDriver interface?

How to navigate through browser history?

What is difference between close() and quit()?

What is By in Selenium WebDriver?

Write code snippet to delete all cookies?

How to get total frame counts including inner frames of a page?

In how many ways we can switch to frame?

What is difference between parentFrame() and defaultContent() methods?

What is window handle?

Can we get a window handle of a window without title?

What is return type of getWindowHandle() and getWindowHandles()?

Write code snippet to navigate through multiple windows and retrieve its title and url.

What is Page Object Model design pattern?

What is PageFactory?

What is difference between POM and PageFactory?

What is @FindBy annotation?

Write code snippet of a simple Page Object class.

What are advantages of using Page Object Model?

What are limitations of using PageFactory?

What are modules in your framework?

What are utilities methods you have added in your framework?

How you read data from excel in Java? Write code snippet.

How to read data from properties file in Java?

How many Selenium frameworks you have come across?


What do you understand by data driven framework and in how many ways we can implement the
same?

What do you understand by keyword driven framework and in how many ways we can implement the
same?

How you will arrange your test scripts?

What are key factors you consider for stability of tests?

When we get NoSuchWindowException ?

How to verify if an alert is present?

Write code snippet to handle alert?

How you will decide where Alert can be used?

Draw WebDriver hierarchy.

Draw and explain architecture of Selenium WebDriver?

What are challenges you feces while scripting scenarios using Selenium WebDriver?

How to upload a file in Selenium WebDriver?

What is Selenium Grid?

How to scroll to an element in Selenium Webdriver?

What are reporting tools you have used with your selenium framework?

What is Actions class in Selenium and when to use?

How do you select a value in drop down created using select tag?

How to select value in a non-select drop down?

How does Select class work? List out its methods.

How to get CSS properties of a WebElement?

What is difference between getText() and getCssValue() methods?

How many languages bindings of Selenium Webdriver are available?

What is EventFiringWebDriver?

What are alternatives of Selenium?

What are key points you keep in mind while scripting?

What is use of getAtrribute() method?

How to perform mouse hover? How it helps in capturing tooltip?


In which condition sendKeys() can be used to upload file? If sendKeys() does not work then what are
alternatives?

How to upload a file to hidden or inaccessible input tag?

What are new features available in Selenium 4?

How to assert if a text box accepts only numbers?

How to implement boundary value analysis while scripting?

How to fetch a specific column in a WebTable?

What are design pattern you have used?

How to select a value from calendar?

[6/15, 10:05 PM] Shammi Zha: Interface WebDriver -

Below are the static interface of WebDriver Interface

Nested Class Summary:

WebDriver.ImeHandler

An interface for managing input methods.

WebDriver.Navigation

WebDriver.Options

An interface for managing stuff you would do in a browser menu

WebDriver.TargetLocator

Used to locate a given frame or window.

WebDriver.Timeouts

An interface for managing timeout behavior for WebDriver instances.


WebDriver.Window

[6/15, 10:05 PM] Shammi Zha: Interface WebDriver.Options

public static interface WebDriver.Options

METHOD SUMMARY:

Modifier and Type - void

Method and Description - close()

Close the current window, quitting the browser if it's the last window currently open.

Modifier and Type - WebElement

Method and Description - findElement(By by)

Find the first WebElement using the given method.

Modifier and Type - java.util.List<WebElement>

Method and Description - findElements(By by)

Find all elements within the current page using the given mechanism.

Modifier and Type - void

Method and Description - get(java.lang.String url)

Load a new web page in the current browser window.

Modifier and Type - java.lang.String

Method and Description - getCurrentUrl()

Get a string representing the current URL that the browser is looking at.

Modifier and Type - java.lang.String

Method and Description - getPageSource()


Get the source of the last loaded page.

Modifier and Type - java.lang.String

Method and Description - getTitle()

The title of the current page.

Modifier and Type - java.lang.String

Method and Description - getWindowHandle()

Return an opaque handle to this window that uniquely identifies it within this driver instance.

Modifier and Type - java.util.Set<java.lang.String>

Method and Description - getWindowHandles()

Return a set of window handles which can be used to iterate over all open windows of this WebDriver
instance by passing them to switchTo().WebDriver.Options.window()

Modifier and Type - WebDriver.Options

Method and Description - manage()

Gets the Option interface

Modifier and Type - WebDriver.Navigation

Method and Description - navigate()

An abstraction allowing the driver to access the browser's history and to navigate to a given URL.

Modifier and Type - void

Method and Description - quit()

Quits this driver, closing every associated window.

Modifier and Type - WebDriver.TargetLocator

Method and Description - switchTo()


Send future commands to a different frame or window.

[6/15, 10:05 PM] Shammi Zha: Interface WebDriver.Timeouts

All Known Implementing Classes:

RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts

public static interface WebDriver.Timeouts

METHOD SUMMARY:

Modifier and Type - WebDriver.Timeouts

Method and Description - implicitlyWait(long time, java.util.concurrent.TimeUnit unit)

Specifies the amount of time the driver should wait when searching for an element if it is not
immediately present.

Modifier and Type - WebDriver.Timeouts

Method and Description - pageLoadTimeout(long time, java.util.concurrent.TimeUnit unit)

Sets the amount of time to wait for a page load to complete before throwing an error.

Modifier and Type - WebDriver.Timeouts

Method and Description - setScriptTimeout(long time, java.util.concurrent.TimeUnit unit)

Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error.

[6/15, 10:05 PM] Shammi Zha: Interface WebDriver.Navigation

public static interface WebDriver.Navigation

METHOD SUMMARY:

Modifier and Type - void


Method and Description - back()

Move back a single "item" in the browser's history.

Modifier and Type - void

Method and Description - forward()

Move a single "item" forward in the browser's history.

Modifier and Type - void

Method and Description - refresh()

Refresh the current page

Modifier and Type - void

Method and Description - to(java.lang.String url)

Load a new web page in the current browser window.

Modifier and Type - void

Method and Description - to(java.net.URL url)

Overloaded version of to(String) that makes it easy to pass in a URL.

[6/15, 10:05 PM] Shammi Zha: Interface WebDriver.Window

All Known Implementing Classes:

RemoteWebDriver.RemoteWebDriverOptions.RemoteWindow

public static interface WebDriver.Window

METHOD SUMMARY:

Modifier and Type - void

Method and Description - fullscreen()


Fullscreen the current window if it is not already fullscreen

Modifier and Type - Point

Method and Description - getPosition()

Get the position of the current window, relative to the upper left corner of the screen.

Modifier and Type - Dimension

Method and Description - getSize()

Get the size of the current window.

Modifier and Type - void

Method and Description - maximize()

Maximizes the current window if it is not already maximized

Modifier and Type - void

Method and Description - setPosition(Point targetPosition)

Set the position of the current window.

Modifier and Type - void

Method and Description - setSize(Dimension targetSize)

Set the size of the current window.

[6/15, 10:05 PM] Shammi Zha: Interface WebDriver.TargetLocator

All Known Implementing Classes:

RemoteWebDriver.RemoteTargetLocator

public static interface WebDriver.TargetLocator

METHOD SUMMARY:
Modifier and Type - WebElement

Method and Description - activeElement()

Switches to the element that currently has focus within the document currently "switched to", or the
body element if this cannot be detected.

Modifier and Type - Alert

Method and Description - alert()

Switches to the currently active modal dialog for this particular driver instance.

Modifier and Type - WebDriver

Method and Description - defaultContent()

Selects either the first frame on the page, or the main document when a page contains iframes.

Modifier and Type - WebDriver

Method and Description - frame(int index)

Select a frame by its (zero-based) index.

Modifier and Type - WebDriver

Method and Description - frame(java.lang.String nameOrId)

Select a frame by its name or ID.

Modifier and Type - WebDriver

Method and Description - frame(WebElement frameElement)

Select a frame using its previously located WebElement.

Modifier and Type - WebDriver

Method and Description - parentFrame()

Change focus to the parent context.


Modifier and Type - WebDriver

Method and Description - window(java.lang.String nameOrHandle)

Switch the focus of future commands for this driver to the window with the given name/handle.

[6/15, 10:05 PM] Shammi Zha: Interface WebElement

public interface WebElement extends SearchContext, TakesScreenshot

METHOD SUMMARY:

Modifier and Type - void

Method and Description - clear()

If this element is a text entry element, this will clear the value.

Modifier and Type - void

Method and Description - click()

Click this element.

Modifier and Type - WebElement

Method and Description - findElement(By by)

Find the first WebElement using the given method.

Modifier and Type - java.util.List<WebElement>

Method and Description - findElements(By by)

Find all elements within the current context using the given mechanism.

Modifier and Type - java.lang.String

Method and Description - getAttribute(java.lang.String name)

Get the value of the given attribute of the element.


Modifier and Type - java.lang.String

Method and Description - getCssValue(java.lang.String propertyName)

Get the value of a given CSS property.

Modifier and Type - Point

Method and Description - getLocation()

Where on the page is the top left-hand corner of the rendered element?

Modifier and Type - Dimension

Method and Description - getSize()

What is the width and height of the rendered element?

Modifier and Type - java.lang.String

Method and Description - getTagName()

Get the tag name of this element.

Modifier and Type - java.lang.String

Method and Description - getText()

Get the visible (i.e. not hidden by CSS) text of this element, including sub-elements.

Modifier and Type - boolean

Method and Description - isDisplayed()

Is this element displayed or not? This method avoids the problem of having to parse an element's "style"
attribute.

Modifier and Type - boolean

Method and Description - isEnabled()


Is the element currently enabled or not? This will generally return true for everything but disabled input
elements.

Modifier and Type - boolean

Method and Description - isSelected()

Determine whether or not this element is selected or not.

Modifier and Type - void

Method and Description - sendKeys(java.lang.CharSequence... keysToSend)

Use this method to simulate typing into an element, which may set its value.

Modifier and Type - void

Method and Description - submit()

If this current element is a form, or an element within a form, then this will be submitted to the remote
server.

[6/15, 10:05 PM] Shammi Zha: Class WebDriverException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

org.openqa.selenium.WebDriverException

public class WebDriverException extends java.lang.RuntimeException

Direct Known Subclasses:

ConnectionClosedException, ErrorHandler.UnknownServerException, ImeActivationFailedException,


ImeNotAvailableException, InvalidArgumentException, InvalidCookieDomainException,
InvalidCoordinatesException, InvalidElementStateException, JavascriptException, JsonException,
MoveTargetOutOfBoundsException, NoSuchSessionException, NotFoundException,
ScreenshotException, ScriptTimeoutException, SessionNotCreatedException,
StaleElementReferenceException, TimeoutException, UnableToCreateProfileException,
UnableToSetCookieException, UnexpectedTagNameException, UnhandledAlertException,
UnreachableBrowserException, UnsupportedCommandException

METHOD SUMMARY:

Modifier and Type - void

Method and Description - addInfo(java.lang.String key, java.lang.String value)

Modifier and Type - java.lang.String

Method and Description - getAdditionalInformation()

Modifier and Type - BuildInfo

Method and Description - getBuildInformation()

Modifier and Type - static java.lang.String

Method and Description - getDriverName(java.lang.StackTraceElement[] stackTraceElements)

Modifier and Type - java.lang.String

Method and Description - getMessage()

Modifier and Type - java.lang.String

Method and Description - getSupportUrl()

Modifier and Type - java.lang.String

Method and Description - getSystemInformation()

[6/15, 10:05 PM] Shammi Zha: Interface TakesScreenshot


All Known Subinterfaces:

WebElement

public interface TakesScreenshot

Indicates a driver that can capture a screenshot and store it in different ways.

Example usage:

File screenshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);

String screenshotBase64 = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BASE64);

METHOD SUMMARY:

Modifier and Type - <X> X

Method and Description - getScreenshotAs(OutputType<X> target)

Capture the screenshot and store it in the specified location.

[6/15, 10:05 PM] Shammi Zha: Interface SearchContext

All Known Subinterfaces:

WebDriver, WebElement

public interface SearchContext

Modifier and Type - WebElement

Method and Description - findElement(By by)

Find the first WebElement using the given method.

Modifier and Type - java.util.List<WebElement>

Method and Description - findElements(By by)


Find all elements within the current context using the given mechanism.

Keerthika Ym:

Hii,

I have one doubt,

In real time how to manage larger data as input , will u use data provider r XML r property file r sql?

It’s really getting difficult to clear selenium interview day by day without real time experience,

I had cleared all the rounds in one company in the month of March due to lockdown everything is on
hold still, i think I shouldn’t be dependent on that offer in this pandemic, is there any chances of getting
me that offer letter to join after 5-6 months???

Common Man:

To answer you 1st question, it’s not a good practice to store data in xml or excel or sql.

Reasons:

Xml: the time taken to parse the xml files are heavier compared to other types of files. So try to avoid
using this.

Excel: the time taken to load the excel files is higher during run time compared to other files. There are
high chances the file gets corrupted in the run time.

Sql: making sql calls during run time are costlier. So try to avoid this as well.

Now you will ask me a question, if you say avoid everything what do we use?

Go with Json files or yaml files. You can store data using them. They are super fast while retrieval of data
and won’t get corrupted.

Pass this Json or Yaml file as input to your data provider and let it run through all the combinations.
2. Your interview depends on diff factors:

a. May be they are looking for experienced candidate

b. Your skills might be not matching with their requirement

c. You might didn’t do well

d. Even though you did well they might found a better candidate

e. They have a hiring freeze

f. The Req got revoked

g. They got a person through internal transfer

h. Finally politics may play and they found a candidate whom they know very well.(less chances)

Krishna Gajjela:

Hi all... How to create dynamic list variables in java?

Common Man:

There are no dynamic variables in Java. Java variables have to be declared in the source code.

you can try to achieve using

Array, list or map

int n[] = new int[3];

for (int i = 0; i < 3; i++) {

n[i] = 5;

List<Integer> n = new ArrayList<Integer>();

for (int i = 1; i < 4; i++) {


n.add(5);

Map<String, Integer> n = new HashMap<String, Integer>();

for (int i = 1; i < 4; i++) {

n.put("n" + i, 5);

upto some extent

like this

this just like ur simulating the things

Priyanka Gunjal:

Plz help ...how to get title or header of alert window in selenium?

Lonely Rider:

Sorry. use driver.switchTo().alert(). Then use driver.getText()

Swetha:

Hello all,1)Usually how many automation test cases can we write in real time for an ecommerce mobile
and web applicaton. For e.g,checkout module.2) How much time does a test case take to run.These are
interview questions I faced.
Common Man:

UI:

If it’s a large test case, you can write 2-3 test cases per day. It also calculates making the test case work
consistently, writing with proper coding standards, making sure it’s re-usable.

If it’s a medium test case, you can write 6-8

If it’s a small test case you can write around 10-12

These are company standards. All this is based once the framework is available and ready to use.

Shreyansh Jain:

What is the difference between sudo -s and sudo su -

Common Man:

To see the difference between su and sudo -s, do cd ~ and then pwd after each of them. In the first case,
you'll be in root's home directory, because you're root. In the second case, you'll be in your own home
directory, because you're yourself with root privileges.

Sasi C:

Hi

Please tell how to tell roles and responsibilities for automation tester(bdd framework)

Common Man:

If you have worked on automation, you can break down your responsibilities into percentages. That way
it gives good impression to the interviewer without further questions.
60 percent of the time goes to automating the user stories, creating bug, analysing test failures, doing
performance testing, security, accessibility, test design, test plan, reviewing test cases, running them on
diff browsers and sprint grooming and planning for next sprint

20 percent of time goes in mentoring and guiding rest of team members and working closely with
developers and other teams.

20 percent times goes in innovation and other tools building to improve overall quality of the product.

Hope this helps. If you need much more details do let me know we can frame it based on your present
roles & responsibilities how to answer it in a more better way.

Suganya Ravi:

Can anyone share java n selenium framework related interview questions?

Shubham Sawant:

https://docs.google.com/spreadsheets/d/1c7-3udvs0mEQGaskYtvZ8l8ckblRplkiDhHT71zV62o/edit?
usp=sharing

Rajkumar:

They asked me like real time completely like You have 3 devices connected to the system how do you
install a apk to particular device rahul shetty did not cover these kind of questions practically

Common Man:

You can install using

adb devices // it shows list of devices

adb -s "<deviceIDfromlist>" install "<path-to-apk>"


Rajkumar:

Thanks a lot bro how do learn or get experienced these questions

Common Man:

Hi Raj, try to develop frameworks from scratch. Once you do on your own, it brings a lot of confidence.
Most of the real time questions comes based on the scenario's that you face day to day activities in your
job. So while developing framework think little broader.

Karthick:

In interview can u have any questions to ask? Lik that interviewer asked

Wat kind of questions will I ask?

Subbu:

How would be learning curve , career path , team culture..., Hierarchical or flat structure..,

Quinee Bhattacharjee:

For oops features:

Encapsulation - Used In Page object model.

Inheritance - When we extend Base Class in our Automation Framework

Polymorphism - When we define Webdriver object.

Abstarction - The design pattern of Page object model is an example of Abstraction

ARC:

Can u plz explain abstraction concept in framework


Chinmaya Sahoo:

How to pass parameter with testing.XML file to use it in test case

Ravi Chitturi:

XML file: <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">

<suite name="Parameterization Test Suite">

<test name="Testing Parameterization">

<parameter name="browser" value="Firefox"/>

<parameter name="username" value="testuser"/>

<parameter name="password" value="testpassword"/>

<classes>

<class name="com.parameterization.TestParameters" />

</classes>

</test>

</suite>

import org.testng.annotations.Parameters;

import org.testng.annotations.Test;

public class TestParameters {

@Parameters({ "browser" })

@Test

public void testCaseOne(String browser) {

System.out.println("browser passed as :- " + browser);

@Parameters({ "username", "password" })


@Test

public void testCaseTwo(String username, String password) {

System.out.println("Parameter for User Name passed as :- " + username);

System.out.println("Parameter for Password passed as :- " + password);

Raj:

some of the best websites to practice your coding...

-W3Schools

-freeCodeCamp

-SoloLearn

-Upskill

-Programiz

-GeeksforGeeks

-Studytonight

-Javatpoint

Quinee Bhattacharjee:

We define the locators in the respective page class and in test classes we just call them hiding the
locators

Interviewer: Tell me about yourself

Candidate: Sure Sir. With no offense, can you please tell a bit about me?
Interviewer: What?

Candidate: Plz don't take me otherwise, I mean before calling me for interview you might have gone
through my resume, so you are now aware a bit about me. I will tell about me beyond that, no point in
repeating you already know

Interviewer: Being very busy, not read the resumes

Candidate: On what basis called me for #interview?

Interviewer: To save time selected 20 #resumes randomly. Now can select a suitable 1 out of them

Candidate: Do you know? When you call 100 resumes for 1 post, 100 hopes are attached with. You have
broken 80 hopes without giving any chance, When you call 20 for interview, hopes of 20 families started
taking birth But you will ask 2-3 questions which you know and will reject them. But you don't know,
that person know 10 things which are not known by you. You are not willing to waste 10 minutes for 1
resume but can easily waste a full day of 20 people and hope of 100 families.

Thank You, Sir; I reject you and your company.

A humble request to all Interviewers, #CEO, #CFO - specify all major criteria of job, read resume
properly.

Don't play with #hopes.

Raj:

Many freshers/automation learners asked for cucumber/selenium resume points for their resume....use
below points, add/remove whatever you wish...

-- Analyzed business requirements and functional documents, created the test strategy document that
define the test environment, phases of testing, entrance and exit criteria into different phases of testing

-- Defined and analyzed the test requirements including test data, test environments based on the
application functionality.

-- Performed user story validation including the use of exploratory test methodologies .

-- Involved in writing Test Case by using Wireframe, Design docs and Acceptance criteria.
-- Identified test cases to automate, prioritized suitable candidates for automation and automated test
cases

-- Performed functional testing, regression testing and End to End testing of the new releases in
Workplace Engagement.

-- Performed extensive Cross Browser Compatibility testing on various web browsers like Internet
Explorer, Mozilla Firefox and Google Chrome

-- Involved in preparing a report of all automation difficulties and test results for further application

-- Wrote and executed SQL queries to verify the data updates to various tables and ensure data
integrity.

-- Drafted Test Plan which included testing objectives, testing phases, scenarios and test environment
after a thorough analysis of the business rules.

-- Developed Automation framework using Selenium Web Driver and Involved in the Continuous
Integration of the automation framework with Jenkins.

-- Extended TestNG framework by adding some helper classes and methods and Developed Selenium
test cases using TestNG framework

-- Used Maven to help manage project’s build, report and documentation across the network.

-- Created automation framework in Selenium WebDriver using behavior driven approach like
Cucumber.

-- Implemented BDD through Cucumber and Created the Feature Files for Cucumber Automation.

-- Tested applications developed in Java with J2EE framework, Performed GUI, Functional and
Regression testing by automated using Selenium and Jenkins.

-- Tested compatibility of application for dynamic and static content under various cross browsers

-- Aggressively pursued the resolution of high level defects in the project to facilitate smooth functioning
of the test execution

-- Monitor test execution status through log4j.

-- Maintain Code versions through GIT.

-- Bug Reporting and Tracking through JIRA.

-- Presented Automation Test result analysis during daily Agile stand up meetings.

-- Responsible for transferring the knowledge about he use of test framework to developers and manual
testers.
Raj:

Many guys ask me for DEVOPS resume help, add/modify following points...

-- Reduced build/deploy time by 90% by creating Jenkins scripts to automate code pull from
Perforce/GIT, used Maven to build war/jar files, configure customized properties files and deploy code
to various internal UBUNTU servers or onto other Amazon Web Servers(AWS).

-- Slashed testing time by 70% by creating automation scripts using TestComplete Automation Tool.
Used the automation scripts to validate code every time development code is pushed to the different
build branches.

-- Automated REST API testing using SoapUI Pro. Reduced regression testing time in all Asset REST API
calls. Continuously added/updated the APIs calls as the Asset product is modified.

-- Used Selenium (WebDriver, Grid) scripts to the automation testing and validation of the three
components of Asset. Continuously updated the scripts as the product is updated or added new scripts
as new functionality is created.

-- Assumed full responsibility for the DevOps role. Launched QA/DEV/Demo/Pre-Prod environments
using AWS. Configured OS, size, firewall, VPN, IP and added third party or custom applications. Ensured
services were up and running.

-- Initiated the use of JMeter to performance test the Asset application. Quickly found bottlenecks, DB
deadlocks, user capacity limits and web response time issues.

-- Spearheaded the securing of the Tomcat Web Servers to communicate via HTTPS instead of HTTP by
creating/using self-signed s, modified tomcat configurations and building the Apache Portable Runtime
libraries.

Syamantak Chakraborty:

Testing questions are very straightforward.

But in DataStructure they asked

LinkedList
Code complexity

Circular Linked list

SQL injection

10.5 years

Joy:

For knowledge purpose they ask this question to me also..like hasmap, map, list, linkedlist...but in
framework level I never use linkedlist..I used list, hashmap max time...

Syamantak Chakraborty:

Yes

Arraylist is mostly used

Very seldom we use hasmap

For interview we need to prepare only Java and Datastructure

Selenium is 2nd priority

slow Locomotive:

There are so many simpler automation tools. Cypress,sahi,codeceptjs,playwright, testcafe,websriverio


all easily usable ...simpler in a ci/cd pipeline.

Rajkumar:

Yes around 30% on selenium and remaining all are java coding etcc

slow Locomotive:

Somebody who knows all aspects of testing. Api,usablity,accessibility,functional, nonfunctional


Gandharav Katyal:

In product based companies , almost 4 rounds r of Ds,puzzles , in last round they asked about actual
work

Subbu:

Visa, Intuit,pramati, real page ,open text, Amazon,flipkart, paypal,payswif,Zomato,swiggy,zemoso,


phenompeople, ivy comptech, uber ,ola,optum,Dell secure works, jda, sap they work in similar fashion..
societie general,jpmorgan, bank of america banks n product based companies

Prakash:

On the other IITians will not go with Visa though,

The top rated guys choose Google, FB, Microsoft, Amazon

Gandharav Katyal:

Google telengana hires selenium automation test engineer but condition is mtech :p

Umesh:

Hi All, can anyoe tell me about how to use singleton class in selenium or how to create webdriver
instance.

Keep Calm And Silent:

You have to use ThreadLocal Webdriver to implement single ton class

There are good Product based companies who pays you a lot. For example DeShaw pays for a test
engineer with 2 yrs exp 28 lpa. Gold man sachs, SAP labs, Amazon, FlipKart, Walmart all these
companies pays a lot for test engineers.

Its not just to support their framework, it also matters on following factors
1. How quick you can able to grab Product knowledge and work independently

2. How quick you can automate the things

3. How smart you can manage parallel tasking(Working on Parallel projects)

4. How well you can manage Security, Performance, Accessibility and other areas of testing

5. How good you’re with devops skills

6. How good you have problem solving and debugging skills

7. How well you can communicate with different stake holders in the project

8. How well you can manage resources, mentor them and share the knowledge

9. How good you think on Innovative ideas like building tools

For all these things, You also need to be good at following things:

1. Good Coding Concepts

2. Good Problem Solving skills(Be good at DS&Algo, String, Arrays, Dynamic Programming, Design
Patterns, System Design, Permutations & Combinations)

3. Be good at Problem Analysis & debugging skills

4. Communication

5. Most important Attitude to learn and let others grow with in the team

6. Technical skills related to testing, Devops

Sachin:

This looks like full stack

Ajinkya Gangawane:

But I don't think so what ever points yoi mentioned a single person has to do it !

I agree the knowledge should be present and will be judged but practically you won't work on each
aspect which you mentioned. As they have different teams like devops and system ops for monitoring
the project. Network and security team for security performance and accessibility testing
Keep Calm And Silent:

Important thing to note: (Not to discourage any channel/group/forum)

1. Learning specific automation component (Selenium, Protractor, Cucumber, Cypress, Test Cafe, Taiko,
Appium, Selenandroid, Katalon Studio, RPA, WebDriver IO, Code Cept JS, Night watch etc)all these give
just 20% to clear that particular round. Believe me down the line if you think I will survive in the market
and crack interviews by learning these tools. It can help for another 1 year maximum. Most companies
in US/UK/Canada they start asking Coding questions related to Data Structures & Algo’s, Dynamic
Programming, System Design, Design Patterns & techniques.

2. Most companies will ask above coding skills for Tester, QA, SDET, Manual Tester as well

3. Just don’t limit you’reself to tools, Git, Jenkins, Testng, Maven. Please focus more on coding skills.

4. None of the channels, Groups, Forums won’t explain all these things. They can give up to some basics.
Its everyone’s responsibility to do our work and be prepared for Interviews.

5. Do remember, Cracking Interview and getting 6-10 offers is one part but Proving in the next 3 months
is the most important criteria. Do remember this!!

This is not the case now @Aj1nky4. Earlier Devops, Developer, Tester, Security team, Performance team,
Accessibility teams will be different teams. Now companies are expecting Dev and testers to know
Devops. Security Testing, Performance Testing, Accessibility Testing is part of Test Engg roles &
responsibilities.

Rahul Shetty:

5 years 35 Lakhs is very very rare in india. You may get it only if you are principle Test Architect with 10+
years of experience atleast.

But yes i know one of my student got 19lakhs pay with 8 years of experience. She got this offer in july.

Keep Calm And Silent:

There are few channels who promote tools, frameworks and say that people who learnt from
them(Online training) got 6-10 offers, they cracked interviews and so on testimonals they publish in
social media and try to grab ppl attention. Lot of ppl are struggling once they get a job. In US/UK/
Canada people take support for doing their projects and they pay for the support.

2. Remember no one teaches coding problems. You have to put effort and solve it. And one teaches how
to present well during the interviews. Its also your skill how well you can present it during the
interviews.

3. People are keeping fake experience and trying out opportunities. Keeping experience is not an issue
but Learn the right real time stuff and once you feel confident you start attending interviews.

Self Healing Automation is something we can achieve upto certain extent now. Selenium 4, Taiko
provides this opportunity to do. For example, Applications that has heavy UI automation and flaky test
scripts can try this approach. But before trying this approach one has to validate the data and train the
machine to achieve this self healing automation

For example, In Selenium 4 you have relative locators which will help you to identify the elements that
are near by other elements.

For example, You have a checkbox and beside the checkbox you have a button(Submit). Now when we
use relative locators to click on submit button. We can say to the right off check box click on Submit
button. Instead of Submit button if the developer re-names it as Clear it will still go ahead and click it. So
before we train the machine we have to validate whether each and every data is valid or not in the page.
Hope this helps!!

Ajinkya Gangawane:

Can we do it by adding 3 locator's for a single element and handle the exceptions in case any of the
locator's return error! I tried but then the execution time increases.

But does self healing only works for UI or it has other meaning too?

You mention train you machine ! can you elaborate on it ? The reason am asking over this medium is i
have search many blogs and article no one exactly explain how can we achieve or to what extend we can
achieve it ! Using any sync or async testing tool !
Ajinkya Gangawane:

yes but if checkbox is only not interact-able by any reason how will you handle that ?

you mapping one element to another or one point of interaction to another but what if the first
interaction is not working ? how will you heal that ?

Keep Calm And Silent:

1. You have to first train the system upto 20 percent. It means you have to identify all the proper
locators and make sure they are working.

2. Once you do this, self healing can solve the next 30 percent of the effort..

Like this it’s a continuous loop and you have to train the system. Once the system is completely stable..
self healing can take care of it from there and you no need to train.

You can start self healing when your application is 20 percent stable.

Kumar:

What are the best practices in selenium ??

Keep Calm And Silent:

Better use test design patterns and principles

Avoid using Thread.sleep() unless it is compulsorily needed.

Try not to run all the tests on different targeted browsers at a time

Try to seperate your tests from your test automation framework

Make your test automation framework portable

Name your tests properly


Do not rely ONLY on UI test automation

Consider using a BDD framework

Use soft assertions if you need to make a list of related checks on the same web page

Take screenshots/video recordings for better failure investigation

Make tests simpler instead of adding comments

Follow the “green tests run” policy

Use data-driven instead of repeated tests

All tests should be independent

Setup detailed automation tests reporting

Hope this helps!!

Kumar:

What are the challenges you have faced as a Automation Tester/

Keep Calm And Silent:

If you had worked on Automation side, You can write up some points and explain them during the
interview.

Mayukh:

How can we improve the speed of Selenium code execution or inscrease spped of Automation?

ARC:

Increasing the speed depends on factors like ram and internet speed too.

But when it comes to scripting - we should use CSS Selector instead of xpath - as CSS is much faster then
xpath.
Avoid un-necessary wait or thread.sleep

Avoid using System.out.println statements- instead use only logs.

Keep ur code clean and optimized.

Can anyone list the points - for what all challenges we face in automation?

Killerr:

If im developing a framework from scratch shud I opted for ttd or bdd.. Which is best practice and why??

Keep Calm And Silent:

First you need to understand what is TDD and what are the challenges we face in it and Can we achieve
this TDD in the sprint/release model that your organization is following and compare the same with BDD
and take a call.

Karunakara N H:

Hi all,

I have some repetative task in my project, so we need to reduce this task, when manager asked we
thought it is automation, which is the solution.

But he is not satisfied with automation, he need Something different apart from automation to avoid the
repetative task.

Please let me know any other solution/idea.

Keep Calm And Silent:

These are certain set of questions they ask in the interview to see if you can think Out of the Box.

You can give following answer:


1. You can create some bots/robots and let them handle the repetative task(No one will ask in realtime
to do this. But they are trying to check if you can think Out of the box)

Does this sounds good?

Anirudh Bhutani:

we can use uipath for this right.

Keep Calm And Silent:

The question is not related to the tool we use to automation. He needs to understand a different
solution to achieve the repeated tasks.

Lucky:

Hi @RahulShettyTrainerOfficial I am having 4.5 years total experience in testing. 1.5 years in automation
testing..please let me know, what kind of questions I can expect in the managerial round?

Keep Calm And Silent:

Managerial round is more related to following areas.

1. How well you fit to the team?

2. What skills that you will bring into the team if hired?

3. How well you can communicate and posses great attitude with others?

4. How quickly you can learn the things?

5. How good you’re with respect to the concepts and Project architecture.

6. What challaneges that you faced and how did you overcome

7. What diff bugs you filed while testing


8. Were you able to think Out of the box

9. Are you a good team player and can adapat to the team environment(Question#1, 3 closely related to
this as well)

10.If he is technical, he may ask some technical questions related to problem solving or simple puzzle or
debugging skills.

Hope this helps!!

Puja:

Hi All.......i am having 5 yr of experience in automation testing selenium,java,restassured ,testNG etc

coming week i have technical round interview for senior automation tester

They have informed that they will assign some task...i have to complete those on screen sharing..

Could someone plz suggest what kind/level of program they can ask..related to selenium and java

Shubham Sawant:

On collections,arrays and strings

They will mostly check how you apply the logic.

For Selenium they might ask how you will handle window pop ups

dynamic dropdown

Mouse actions drag and drop

Checkboxes

Also on data driven like write the code to read or write data from excel

If possible you can go through the excel sheet which consist of lot of questions which might help you
provided by rahul and raj!!

You can check it out


Consolidated Q&A sheet for you to prepare for interview

https://docs.google.com/spreadsheets/d/1c7-3udvs0mEQGaskYtvZ8l8ckblRplkiDhHT71zV62o/edit?
usp=sharing

Umesh:

Interview question-

There is one webpage and on that page, have 300 links then how can we validate it.

My answer is -

First ill get the count of list using tagname locator (tag a) and will store into one of list variable. After will
iterate it till the count and validate each link.

But ideally it should not possible rite boz there are 300 links

And even interviewer is not satisfied

What's the othere way to handle this

Puja:

from 300 links what we have to validate....any specific link?

Prakash:

May be needs to validate the count

Expected vs Actual
Umesh:

No we have to validate that are those working or not

So for that we have to click on each link

Poornima:

Yes it should click the link verify link working then close the browser, again check next link so on.. Place
all links in excel sheet as input data

Na`Vi:

Without clicking the links you can get the response code for all the links. If response code greater than
equal to 400 then they are broken links if not they are working fine..

Prakash:

Wat is the time complexity?

Time complexity is O(n)

So if my page has 10000 links the for loop goes that many iterations right

Quinee Bhattacharjee:

In this case,we don't use click() for clicking but openConnection() for sending the request and capturing
the status code

Na`Vi:

No need to click the link...just get the url from getattribute('href') and open connection and check for
status and put condition and count simple
akshat vohra:

Loop will go till the no of links we have on that page

silence:

how to start to explain project which we have done in testing?

Ajay T:

Where do we need Multiple Inheritance in Automation

Prakash:

If you are using Java as your language with selenium for automation

It doesnt support Multiple Inheritance

Ajay T:

yeah can we tell that Inheritance will support Multiple Inheritance

Umesh:

String s ="Ramesh";

Output should be - ameshR

Ajay T:

for(int i=s.length()-1;1>=0;i--){System.out.print(s.charAt(i))}

for String s ="Ramesh";

Output should be - ameshR


Umesh:

Yeah it's should not work

It should give an exception

Rajkumar:

String s = "Ramesh";

s=s.replace("R", "");

System.out.println(s +"R");

HariKrishna Neela:

Here is the HCL Telephonic Interview questions:

Why we use BDD framework?

Explain BDD framework ?

How do you integrate cucumber feature files with Step definition java files?

What is the use of Runner class in cucumber?

What is Xpath Axes?

How to find out repeated character in given string?

What's the difference between

Method overloading vs method overriding?

What are all the Git commands used in your project?

Difference between commit vs commit and push button in Git?

Difference between Explicit wait and implicit wait?

Can you explain Reverse of the string logic?

Prakash:

Rajkumar any idea about Xpath Axes

Himanshu Tayal:
There are thirteen different axes that are listed below. However, we’re not going to use all of them
during Selenium testing.

ancestor: This axes indicates all the ancestors relative to the context node, also reaching up to the root
node.

ancestor-or-self: This one indicates the context node and all the ancestors relative to the context node,
and includes the root node.

attribute: This indicates the attributes of the context node. It can be represented with the “@” symbol.

child: This indicates the children of the context node.

descendent: This indicates the children, and grandchildren and their children (if any) of the context
node. This does NOT indicate the Attribute and Namespace.

descendent-or-self: This indicates the context node and the children, and grandchildren and their
children (if any) of the context node. This does NOT indicate the attribute and namespace.

following: This indicates all the nodes that appear after the context node in the HTML DOM structure.
This does NOT indicate descendent, attribute, and namespace.

following-sibling: This one indicates all the sibling nodes (same parent as context node) that appear after
the context node in the HTML DOM structure. This does NOT indicate descendent, attribute, and
namespace.

namespace: This indicates all the namespace nodes of the context node.

parent: This indicates the parent of the context node.

preceding: This indicates all the nodes that appear before the context node in the HTML DOM structure.
This does NOT indicate descendent, attribute, and namespace.
preceding-sibling: This one indicates all the sibling nodes (same parent as context node) that
appear before the context node in the HTML DOM structure. This does NOT indicate descendent,
attribute and namespace.

self: This one indicates the context node.

Naseema:

Following Sibling, preceding Sibling,contains,starts with, ends with,etc

Rajkumar:

Parent, child, ancestors, siblings etcc

Umesh:

String s ="sachin ganesh deva"

Want output- nihcas ganesh aved

HariKrishna Neela:

Use Stringbuilder class

Naseema:

When dey ask question lik how you handle the dynamic element, what should be our answer
ARC:

In order to handle dynamic element - we need to first figure out it's static xpath (or something which is
constant) and then with the help of xpath axes we can find out the dynamic element

akshat vohra:

Split it with " " as the delimiter... Then there will be 3 words.. loop on them... Taking first word... Reverse
it... Append on a new string.. now similarly we will do on other 2...

Sasi C:

Virtusa

Tell about yourself

Tell about framework

Single ton java concept in java in your frameowork?

In which scenario ,you are using map in your project?

why the tree set prints in ascending order? Any reason?

Abstract class and where you used in your project?

given a string,i want to find the duplicate occurence of the word?

What are the ways of methods to iterate a map?

what are the things that you are passing in for each and while loop?

how you are passing the test data in cucumber?

Reading the data from file?

what are the methods available in base class?


Incedo

1.Explain about your framework?

2.what is differece between hashmap and treemap?

3.what is meant by this keyword?

4.Write a program for the below

I/P:Arraylist[] arr={1,8,5,12,9,2}

O/P: 1 should be placed at first value and the other nummbers should be sorted as a descending order?

5.what are the challeges that you faced in your automation career?

You might also like