Rahul
Rahul
Rahul
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
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?
8. Does all manual tests (if there are any) were executed and have good coverage?
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?
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
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.
driver.manage().window().maximize();
driver.get("http://newtours.demoaut.com/");
//number of links
System.out.println(links.size());
for(int i=0;i<links.size();i++)
Thread.sleep(2000);
httpconn.connect();
int rescode=httpconn.getResponseCode(); //return response code. if res code is above 400: broken
link
else{
Thanks
Shammi Jha
8305429370
Simple program:
1. int a = [4,1,2,4,3,2,6,7,1];
*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:
2. Explain about your project and the technologies u have worked on.
14.Explain High Priority & low Severity with real time example
21.uses of finale
22.access modifier
23.switching windows in selenium
27.inheritance concepts
30.feature file
32.locator in selenium
AUTOMATION Questions :
8) What are the difference between findElement() and findElements() and what its will return value for
findElements () and findElement()?
16) Write code for handling multiple browsers ans switch to new browser?
Java Questions -
4) Explain polymorphism?
3) if your test cases depends of previously test cases how did you handle & explain syntax for that?
5) what are the different types of wait you have used in your framework and explain.
[8/13, 2:10 PM] Shammi Zha: TCS Pune Interview Questions -. 1) Tell me about your self?
2) Explain Framework
3) What is Inheritance ?
4) What is API Testing and explain in detail ?
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 ?
2) What is xpath ?
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)*
https://global.gotomeeting.com/join/522079293
https://global.gotomeeting.com/install/522079293
Thanks
Shammi Jha
8305429370
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 ?
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
12 in css seelctors, what is difference between <>, > returns what ? can we replace > with any xpath
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:
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?
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?
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
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?
6. What is HIPPA?
8. What is API?
16. Explain the test scenario to test following: POST API: https://abc.com/heathcareId/paitentId
6. how you decide which test case should be automate and which shouldnt
8. what is Agile Methodology and how you are apply in your project
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?
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
[7/3, 7:15 PM] Shammi Zha: *How To Decorate Your Naukri Profile:*
*Note:*
✔️Recruiter Can see only Resume Headline & Key Skills at first appearance.
✔️How can we set IT Skills upto 50 on Naukri as we know naukri allow to set only 10 IT Skills.
✔️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
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)
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.
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) Explain Drop down concept in different ways(depend on ans they will goes in depth)
6) What is Polymorphism
8) What is Cucumber?
16) Java program to find duplicate characters from word without using for loops.
[8/9, 8:14 PM] Shammi Zha: Smart Energy water interview questions
14. Concept of Page Factory and it's implementation and object creation
1st Round
7. An Array of numbers given. .Find the largest two number and print it
8. Reverse a number.
11. A String is given to remove the white spaces, reverse it and print the only odd position characters.
15. In a Statement check how any duplicate strings are there and remove them.
16. Use split to print each word of a statement.
2nd Round
2. There are 4 frames in a page click the element present in each frame?
9. Explain driver.quit()?
While explaining the framework, in-between they will ask a few questions about the framework. Like
why this framework?
Execution flow?
3rd Round
2.Benefits of Selenium?
3.Benefits of Oops??
4. What is polymorphism??
7. What is synchronisation?
12. Write a script to open the Firefox without using FirefoxDriver class
14.How to verify whether the element is present or not using find elements method
16.How to verify whether the list box is a dropdown list or multi-select list.
22.Why POM??
Using lr_debug_message
5) Say me some of the counters used for web logic and windows resources and database
7) What are you going to do if you don’t have enough resources available in your desktop?
10) What are the resources you are going to monitor when running your script?
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?
Html
17) How are you going to know which page the script is running in controllers?
18) For how many users you have license of load runner?
250 users
23) How can you say that how many hits are taken to database and how many to server?
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)
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
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?
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.
1) Brief Introduction
Thanks
Shammi Jha
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 :*
3 . TestNG annotations
4.Do you facing any challenges to finding the web elements. explain how it will resolve.
8. How to execute 1 test multiple times without using data provider in TestNG.
Thanks
Shammi Jha
1) Brief Introduction
Thanks
Shammi Jha
1st round
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
7)can we change return type of method in method overloading, will it give error of yes when ?
// String s1 = "madam";
// String s2 = temp.toString();
// if(s1.equals(s2))
// System.out.println("String is palindrome");
// else
// while(n!=0){
// int r = n%10;
// n = n/10;
// rev = rev*10+r;
// }
// System.out.println("Reversed = "+rev);
// for(int i=parts.length-1;i>=0;i--)
// System.out.print(parts[i]+" ");
*04 - Reverse string by character* ------------------------------------
// for(int i=s.length()-1;i>=0;i--)
// System.out.print(s.charAt(i));
// 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(" ");
// }
// 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++;
// }
// }
// if(counter>0)
// System.out.println(c+" "+counter);
// }
// a=a+b;
// b=a-b;
// a=a-b;
// System.out.println("a="+a);
// System.out.println("b="+b);
// 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]+" ");
// int n = r.nextInt();
// System.out.println(n);
// 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);
// String s = "aabbbcdddd";
// for(char c : ch){
// if(s.indexOf(c)==s.lastIndexOf(c)){
// break;
// }
// }
// String s1 = "madam";
// String s2 = temp.toString();
// if(s1.equals(s2))
// System.out.println("String is Palindrome");
// else
*//-------------- 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);
// 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];
// for(int j=0;j<a.length;j++){
// if(n==a[j])
// counter++;
// }
// if(counter>1){
// break;
// }
// }
// 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]+" ");
// int[] a = {4,9,4,8,7,8,9};
// Arrays.sort(a);
// for(int i=0;i<a.length;i++){
// int n = a[i];
// for(int j=0;j<a.length;j++){
// if(n==a[j])
// counter++;
// }
// if(counter==1){
// break;
// }
// }
// 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])
// }
// }
// String[] ss = {"abc","123","xyz"};
// for(int i=0;i<ss.length;i++)
// int prev,next,sum=0;
// prev=next=1;
// System.out.print(prev+" ");
// for(int i=1;i<10;i++){
// System.out.print(sum+" ");
// prev= next;
// next = sum;
// }
*//-------------- 21 - Prime Number* ---------------------------------------------------
// int n = sc.nextInt();
// for(int i=2;i<n;i++){
// if(rem==0){
// flag = false;
// break;
// }
// }
// if(flag) System.out.println("Prime");
// 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..
1. There should be no any routine task in your life till you achieve your goal.
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.
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...
o Code re-usability.
o Code Comments.
o Optimized code.
o Dynamic locators.
Scenario 1: Java
2. Write a Java program to iterate HashMap using While and advance for loop.
[5/16, 12:23 AM] Shammi Zha: 2nd Round Interview of Ambab Infotech(Team Lead)
9. Load Testing
10.What is StaleException ?
14. What is priority & Sevirity ,Tell me High Priority & Low Severity
[5/19, 2:23 PM] Shammi Zha: Hcl first round interview questions
[5/19, 4:22 PM] Shammi Zha: Interview Questions- HCL - 1st round
6. What is interface?
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?
11. How will you find element at column 1 and row1 of a table?
13. Have you faced any issue like your test cases are working fine in local but getting failed in Jenkins?
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/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:
2. Java Interpreter (java) interprets this bytecode (line-by-line) & convert it to Machine language.
3. Execute.
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
-------------------------------------------------
2. Count the "d" alphabet in given Sting = "Deven Dighe" and print in Java
s = "Karan";
System.out.println(s);
8. If u want to find the Nth of Highest Salary , Then How will u write the Query ?
2. Java
2.1. Write code to print below pattern (code to be written & run using eclipse)
33
555
7777
a. Exception handling-
Try{
catch(Exception e){
*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 c = new P();
3. TestNG questions:
Listeners,
dataprovider,
4. Selenium:
- Alert is a class?
- Code snippet
a= driver.switchto().alert();
a.accept();
Is this correct?
5. Maven questions:
6. Svn/git:
8. CI/CD - Jenkins:
Have u used CI/CD?
Explain.
9. Cucumber:
- 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:
[5/31, 5:02 PM] Shammi Zha: In Nice online test, there are 3 section
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
1. What is abstraction and how did you use abstraction in your framework.
2. Do you know OOPs concepts and in framework where and how you have implemented it?
7. Can you please explain with the reference of memory location that how string is immutable?
10. What collections you have used? Have you used HashMap?
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?
19. If I want that my class should not be extended and instance cannot be created by other class then
how to declare class?
21. In cucumber, in which class you have gluecode, how many classes for gluecode and what was the
program line limit for class?
23. Used static data or dynamic data, what was the approach?
What are your roles and responsibilities in your project as Automation tester ?
(more questions were related to this with respect to the explanation we provide)
What is CI ?
Which tool for automation you will choose for a project you are deployed ?
[6/6, 5:25 PM] Shammi Zha: Springer nature first round questions
1.explain your project and responsibilities
2. What is strings
4. What is polymorphism
10.explain @test
[6/7, 1:39 PM] Shammi Zha: 📢 ✔️‼️Collections of interview questions asked for performance Testing
Tool in various organisation - *Jmeter*
13. What are the major differences between JMeter and Load Runner.
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?
28. Which factors decide the maximum threads that one should generate per system?
31. What are the important plugins that are supported in JMeter?
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?
38. What are the different protocols that are supported by JMeter?
42. What are the applications that you can test with JMeter?
44. What do you know about the Concurrent user hit in JMeter?
51. Is it possible that, if we increase the heap size in Jmeter, then application(jmeter) might not work?
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
Questions**
- synchronisation in automation
- write xpaths
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 difference between Selenium webDriver click() and Javascript click()?
What are differences between absolute Xpath and relative Xpath? Which is preferred?
What is RemoteWebDriver?
Write code snippet to find multiple elements and get the size?
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 is WebDriverWait?
What is NoSuchElementException?
What is difference between page load timeout and script time out ?
Write code snippet to navigate through multiple windows and retrieve its title and url.
What is PageFactory?
How you read data from excel in Java? Write code snippet.
What do you understand by keyword driven framework and in how many ways we can implement the
same?
What are challenges you feces while scripting scenarios using Selenium WebDriver?
What are reporting tools you have used with your selenium framework?
How do you select a value in drop down created using select tag?
What is EventFiringWebDriver?
WebDriver.ImeHandler
WebDriver.Navigation
WebDriver.Options
WebDriver.TargetLocator
WebDriver.Timeouts
METHOD SUMMARY:
Close the current window, quitting the browser if it's the last window currently open.
Find all elements within the current page using the given mechanism.
Get a string representing the current URL that the browser is looking at.
Return an opaque handle to this window that uniquely identifies it within this driver instance.
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()
An abstraction allowing the driver to access the browser's history and to navigate to a given URL.
RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts
METHOD SUMMARY:
Specifies the amount of time the driver should wait when searching for an element if it is not
immediately present.
Sets the amount of time to wait for a page load to complete before throwing an error.
Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error.
METHOD SUMMARY:
RemoteWebDriver.RemoteWebDriverOptions.RemoteWindow
METHOD SUMMARY:
Get the position of the current window, relative to the upper left corner of the screen.
RemoteWebDriver.RemoteTargetLocator
METHOD SUMMARY:
Modifier and Type - WebElement
Switches to the element that currently has focus within the document currently "switched to", or the
body element if this cannot be detected.
Switches to the currently active modal dialog for this particular driver instance.
Selects either the first frame on the page, or the main document when a page contains iframes.
Switch the focus of future commands for this driver to the window with the given name/handle.
METHOD SUMMARY:
If this element is a text entry element, this will clear the value.
Find all elements within the current context using the given mechanism.
Where on the page is the top left-hand corner of the rendered element?
Get the visible (i.e. not hidden by CSS) text of this element, including sub-elements.
Is this element displayed or not? This method avoids the problem of having to parse an element's "style"
attribute.
Use this method to simulate typing into an element, which may set its value.
If this current element is a form, or an element within a form, then this will be submitted to the remote
server.
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openqa.selenium.WebDriverException
METHOD SUMMARY:
WebElement
Indicates a driver that can capture a screenshot and store it in different ways.
Example usage:
METHOD SUMMARY:
WebDriver, WebElement
Keerthika Ym:
Hii,
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:
d. Even though you did well they might found a better candidate
h. Finally politics may play and they found a candidate whom they know very well.(less chances)
Krishna Gajjela:
Common Man:
There are no dynamic variables in Java. Java variables have to be declared in the source code.
n[i] = 5;
n.put("n" + i, 5);
like this
Priyanka Gunjal:
Lonely Rider:
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.
These are company standards. All this is based once the framework is available and ready to use.
Shreyansh Jain:
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:
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:
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
Subbu:
How would be learning curve , career path , team culture..., Hierarchical or flat structure..,
Quinee Bhattacharjee:
ARC:
Ravi Chitturi:
<classes>
</classes>
</test>
</suite>
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
@Parameters({ "browser" })
@Test
Raj:
-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
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: 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.
A humble request to all Interviewers, #CEO, #CFO - specify all major criteria of job, read resume
properly.
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
-- 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:
LinkedList
Code complexity
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
slow Locomotive:
Rajkumar:
Yes around 30% on selenium and remaining all are java coding etcc
slow Locomotive:
In product based companies , almost 4 rounds r of Ds,puzzles , in last round they asked about actual
work
Subbu:
Prakash:
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.
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
4. How well you can manage Security, Performance, Accessibility and other areas of testing
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
For all these things, You also need to be good at following things:
2. Good Problem Solving skills(Be good at DS&Algo, String, Arrays, Dynamic Programming, Design
Patterns, System Design, Permutations & Combinations)
4. Communication
5. Most important Attitude to learn and let others grow with in the team
Sachin:
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:
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.
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 ?
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:
Try not to run all the tests on different targeted browsers at a time
Use soft assertions if you need to make a list of related checks on the same web page
Kumar:
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
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??
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.
These are certain set of questions they ask in the interview to see if you can think Out of the Box.
Anirudh Bhutani:
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?
2. What skills that you will bring into the team if hired?
3. How well you can communicate and posses great attitude with others?
5. How good you’re with respect to the concepts and Project architecture.
6. What challaneges that you faced and how did you overcome
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.
Puja:
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:
For Selenium they might ask how you will handle window pop ups
dynamic dropdown
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!!
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
Puja:
Prakash:
Expected vs Actual
Umesh:
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:
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:
silence:
Ajay T:
Prakash:
If you are using Java as your language with selenium for automation
Ajay T:
Umesh:
String s ="Ramesh";
Ajay T:
for(int i=s.length()-1;1>=0;i--){System.out.print(s.charAt(i))}
Rajkumar:
String s = "Ramesh";
s=s.replace("R", "");
System.out.println(s +"R");
HariKrishna Neela:
How do you integrate cucumber feature files with Step definition java files?
Prakash:
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.
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.
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.
Naseema:
Rajkumar:
Umesh:
HariKrishna Neela:
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
what are the things that you are passing in for each and while loop?
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?