0% found this document useful (0 votes)
173 views

Interviw Questions

Xcbjjbggjnhgjjb. Uunnj Ghjngyj Ghjnki Yhjlligghh Gyjgftjjkitf Gtgjkkyfhjiok Gtghkkiyfgjjiuyh Gygghkiyfgjoohghj Huiiijffhnjjfghjohhhjjhhhhjjjjhgf

Uploaded by

Apache RTR
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
173 views

Interviw Questions

Xcbjjbggjnhgjjb. Uunnj Ghjngyj Ghjnki Yhjlligghh Gyjgftjjkitf Gtgjkkyfhjiok Gtghkkiyfgjjiuyh Gygghkiyfgjoohghj Huiiijffhnjjfghjohhhjjhhhhjjjjhgf

Uploaded by

Apache RTR
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 39

OOPs concept in Selenium Framework

1. INTERFACE: WebDriver driver = new ChromeDriver ();


In this statement WebDriver is nothing but interface in selenium.
2. UPCASTING: WebDriver driver = new ChromeDriver ();
Creating object of child class and referring it to a parent class
above statement is nothing but UPCASTING in selenium.
3. INHERITANCE:
We create a Base Class in the Framework to initialize WebDriver
interface, WebDriver waits, Property files etc., in the Base Class. We extend the
Base Class in Tests Class. that is nothing but Inheritance in Selenium Framework.

4. POLYMORPHISM:
Combination of overloading and overriding is known as Polymorphism.
- METHOD OVERLOADING:
We use implicit wait in Selenium. Implicit wait is an example of overloading. In Implicit wait we
use different time stamps such as SECONDS, MINUTES, HOURS etc., A class having multiple
methods with same name but different parameters are called Method Overloading.
e.g. driver.switchTo(). frame(): - String name, int index

- METHOD OVERRIDING: Declaring a method in child class which is already present in the
parent class is called Method Overriding.
Examples are Driver.get and navigate methods of different drivers in Selenium.

5. ENCAPSULATION: All the POM classes in a framework are an example of Encapsulation. In


POM classes, we declare the data members using @FindBy and initialization of data members
will be done using Constructor to utilize those in methods. Encapsulation is a mechanism of
binding code and data together in a single unit. Encapsulation is the process of wrapping up
code and data together in
a single unit. It is used to hide the data of a class from another class. Encapsulation can be
achieved when you declare all variables as private and a public method in a class to get the
values of the variable.

6. ABSTRACTION: As we are aware, Abstraction is a process of hiding the implementation details


from the user and showing only relevant details to them. It also helps to reduce programming
complexity and effort.

In our Automation Framework whenever we Use Page object Model, we write all the locator in
page class and use this locator in our test it means we are hiding our implementation from the
user this is the simple example of using abstraction in framework.
What is difference between git and GitHub?
Git is a version control system that lets you manage and keep track of your source code history.
GitHub is a cloud-based hosting service that lets you manage Git repositories. If you have open-
source projects that use Git, then GitHub is designed to help you better manage them.

Features of Selenium 4
1. Enhanced Selenium Grid
2. Upgraded Selenium IDE
3. Relative Locators in Selenium 4
4. Improved Documentation
5. Support for Chrome Debugging Protocol
6. Better Window/Tab Management in Selenium 4
7. Deprecation of Desired Capabilities
8. Modifications in the Actions Class

TIAA- TECHNICAL ROUND 1


1. Tell me brief introduction about yourself.
2. Tell me the defect life cycle.
3. what you do if the defect is valid and developer is rejected that defect?
4. what is POM?
5. what is data driven framework and hybrid framework?
6. Do you know any another framework apart from selenium?
ANS: ROBOT Framework, cucumber
7. Scenario: -You have 100 test cases and you have check all on different browser manually then
what's your choice? Do you check all 100 test cases on each and every browser?
8. Explain your framework.
9. what is @dataprovider?
10. what is diff bet findelement and findelements?
11. what is CSS selector and Xpath? which one is better? & Why
12. what is HashMap? Can we add any object in HashMap?
13. what is mutual fund? what is provident fund?
14. what is ArrayList ()?
15. what are the commands used to store and get code from GitHub? How you avoid conflicts by
using GitHub?

Galaxyweblink 07/09
PM round

1) how to handle multiple I frame


2) req analysis for ecommerce cart sharing
3) what thing your old organization should change or improve
4) testing approach for playlist
5) bva and ecp for music playlist
6) why we provide object of browser
7) why selenium developer doesn’t provide library for browser invocation
8) How much testing is sufficient?

Zensoft interview questions


1) Explain your Framework
2) how to write extend reporter code?
3) How to perform Parallel execution?
4) How you will execute 5 chrome parallelly in chrome?
5) TestNG annotations sequence?
6) Explain your agile process?
7) Explain Oops concepts? and where you have used them in your work?
8) write code to reverse string
9) How to print common words from two strings?
10) Which merger conflicts you faced while working on GitHub?
11) You are maintaining your test cases in ALM and raising defect in Jira then how you integrate
them together?
12) What is factory object?
13) Dependencies are saved in which folder? (pom.xml)

client IBM

1) intro Ur self
2) if developer do unit testing then why u do testing
3) framework
4) how to find hide elements
5) diff annotations
6) commands in UNIX
7) commands in Sql basic
8) do u aware about oops where r u uses it?
9) how to create extent report?
10) what is issue in Jira
11) defect life cycle
12) what is differ defect
13) why need of automation
14) diff between CSS and Xpath
15) why u using diff locators instead of we use only one what happen
16) diff between absolute and relative Xpath
17) what is epic
18) why maven, testNg use
Virtusa Technical Round1
Automation Testing

1) Tell me brief introduction of yourself.


2) what are the processes that you gone through while writing your test script?
3) what are diff types of collections you aware of?
4) Do you know HashMap? How to iterate keys and values in HashMap?
5) what is defect life cycle?
6) How you rate yourself in java out of 5?
7) Suppose there are multiple windows open on browser and I want to go on current window how
can we go there?
8) what are the diff ways in selenium to handle the iframes?
9) Do you know JavaScript Executor? Suppose I want to go at the bottom of the page then what is
the syntax for that? (Scroll function)
10) write the syntax for explicitly wait for one element till loading.

Cognizant interview questions:-

1) What was the git commands you have written while pulling code on git
2) Conflicts while working on github
3) Assertion methods and explain it with any scenario
4) How you raised a defect(details)
5) Defect life cycle
6) Why maven?
7) Why testng(what is different about testng)
8) Which framework you used
9) Explain framework
10) How you will acess pop ups?
11) How you handled manual as well as automation test cases hand in hand

Wipro

1) Tell about Yourself


2) Framework
3) How you handle data
4) Where u store the xpath
5) What is the pom class
6) What is the maven
7) What is pom.xml
8) Type of xpath
9) Open Amazon n find xpath
10) Which repository u uses
11) How to push the code
12) Do u push directly in master?
13) Do u have know sql
14) Do you know API and postman
15) Any questions for me

Neova solutions
Round 1

1. Introduction
2. Program for :-
input [1,2,2,1,1,1,2,2,1,2,1,2]
Output [1,1,1,1,1,1,2,2,2,2,2,2]
3. Constructor & destructor
Ans : Like constructor, deconstructor is also a member function of a class that has the same
name as the class name preceded by a tilde(~) operator. It helps to deallocate the memory of an
object. It is always called in the reverse order of the constructor.
4. Explain BDD approach for API automation
5. What is dryRun, hooks?
6. BDD Script for Login page
7. Explain your framework
1. What is difference between pom.xml and testNg.xml?
2. Syntax for parameterization at class level?
3. What is difference between overloading and overriding?

4. Why main method is static?

Which command you use to push and pull data in GitHub?


What is BDD framework?
Explain your framework on which you are working currently?
What is maven life cycle?
Ans: Maven Lifecycle and its 8 steps: Validate, Compile, Test, Package, Integration test, Verify, Install
and Deploy.

Infosys
time:5-5.40

1st technical round

1 introduce yourself
2 explain about your project
3 on which model you work
4 where you are used opps principal in your project
5 what is synchronization problem how you handle it (Ans: wait)
6 are you design framework
7 on which framework you are work now
8 what is data provider
9 how you perform parallel testing
10 which one is better testNg or Junit? why you preferred testNg
11 scenarios-based questions
12 challenges you face in automation testing
13 can you perform database testing through Automation?
14 what are meetings of agile where you r involve
15 Explain framework
16 program to sort bubble
17 what is CSS selector how you find locator by using CSS selector
18 what is CI/CD pipeline
Ans: Continuous integration (CI) & Continuous delivery (CD)
https://www.youtube.com/watch?v=k2aNsQKwyOo
19 how to run test cases without eclipse by using command prompt

Neosoft

1) Be confident and be prepared


2) Introduction
3) Projects worked on
4) do you want to learn new things ? which?
5) what is your short-term goal?
6) What is agile
7) What is API testing
8) API testing type
9) Role in current company
10) Tell me about yourself
11) What are black box techniques (BVA & ECP)
12) What protocols used in post man

Interview 2

1) END 2 END Testcase for any Ecommerce site


2) test cases for food delivery app
3) Agile Methodology
4) Mobile Application testing types
5) Difference between sanity and smoke
6) difference between regression & retesting
7) What is functional testing
8) what is integration testing
9) Ceremonies in agile methodology
10) suppose you have asked to complete testing in 1 day can you do? what will be your approach
Questions
Introduction
1) severity and priority on Zomato app
2) WhatsApp test cases
3) web base application and browse base application difference
4) patch and put method from API
5) retesting and regression testing difference
6) Agile methodologies
7) Difference between functional testing and UAT.

1) introduce yourself
2) priority and severity
3) test documents (parameter, how to test what to test)
4) Explain RTM.
5) tell me negative test cases on WhatsApp status
6) scrum agile events
7) burn up and burn down chat
8) production issue (Hot fix) how will you handled before
9) Difference between product backlog ang sprint backlog
10) What is Api testing
11) status codes 2xx 4xx 5xx
12) Api test case how you have written

Akamai Technologies, Inc.


1) Explain your project architecture
2) Reverse string without using any variable
3) Reverse array without using any array object
4) Swap strings without using extra variable
5) How you configure Jenkin
6) Where you use opps principle in your project

1) Tell me about yourself


2) what is RTM
3) how will you ensure that whatever specific requirement if fail?
4) parameters in RTM document
5) For mobile application testing which type of testing you will perform
6) For mobile application can we perform compatibility testing
7) what is the difference between android & iOS application testing?
8) What is test plan
9) reporting a bug which tool you are using
10) defect life cycle
11) latent Defect
12) assume you are BA and you have 3QA along with you client asked to do testing of particular
module in 1 day what will be your approach
13) if you will do testing or you will ask QA to do that
14) who is responsible for build and release?
15) how much testing is sufficient?
16) Levels of testing
17) Suppose you have asked to complete 500 test cases in a day, can you, do it? What will be you
estimation techniques in this case?
18) difference between data driven testing and retesting?
19) what is QA process you follow after you get requirements?
20) what is difference between build and release? Who is responsible for build and release?

Attra pvt.Ltd (the Global Information Technology)


Technical round1 timing (2:20 to 2:45)

1.what is Api?
2.whatis UI/functional testing and nonfunctional testing
3 differences between UI and API?
4.what is run scope?
5.what is protocol? where you are going to use?
6.what is your roles and responsibilities in API? /How do u do it?
7.do u know about testing environment in Postman? and its type?
8.which services your using in API?
9.what are the format you’re using your API testing?
10.diffrence between rest and soup services?
11.what are changes face while doing API testing?
12. explain about your project? where did u use API Testing?
13.what is functional and nonfictional testing give example?
14 do u know about unit testing? are u involved in?

=================================================================
15.do u aware of java concept?
16.as u mentioned in your resume oops concept explain about it?
17.do u know about constructor? and its types?
18.what special in constructor?
19.how to print star pattern without using loop?
20.why UNIX? why not windows os?
21.do u involved in nonfunctional testing?
22.collection /interface /abstraction
23.why domain knowledge is required?

Quess for functional testing>> Technical Round


1)Tell me about your self
2) explain your telecom domain project
3)diff between bss and oss
4)Diff between system and functional testing
5) challenges faced during work
6) defect life cycle
7)abstract class
8) does is override
9) Framework
10) Sql commend for fetch last row
11) diff between delete truncate drop
12)after using delete can we retrieve data
13) Sql command distinct
14) diff type of join
15) selenium where we use override
16) selenium where we use upcasting
17) explain implicit and explicit wait

Manager Round
1) Introduce your self
2) Where your company situated
3) why are u switch your job
4) if developer not accept your bug, what to do
5) if you submit one defect related report but when you are on the road then u realized what happened,
what can u do?
6)many candidates told me any problem happen u contact lead? why lead?
7) If dev not accept p3 p4 type bug
8) if your relation is not good with your team member
9) since u working from home
10) all challenges during work
11) your current defect u got it P0
12) does your team lead angry on u?
13) why should we hire u?
14) when u didn't get bug and at time of production it will come

Questions asked by interviewer for Capgemini today ...

1) Explain yourself
2) Print 1-100 don't use for loop
3) Check and unchecked exceptions it's examples
4) Interface used in your framework rather than search context or Webdriver
5) How to go webpage using JavaScript steps
6) When run the Finally Block
7) For try Blk how many catch Blk excited multiple or single
8) Length method and length function
9) How you set differed defect in your Jira or HPalm
10) Do you have any questions?
11) What is Encapsulation?
12) How you encapsulate data?
13) What is difference between getter and setter and constructor?
14) Reverse a string.
15) Remove the space between the string.
16) Diff between an action class & select class.
17) If there is any text box u want to enter something there u don't have any attribute when u r inspect
that element what u use?
18) Diff between list & set.
19) Methods of select class.
20) If there is int variable and u want to convert it into string then what line u write?
HR round
1) Tell me about yourself
2) When you pass out, why so gap, tell me details.
3) What meetings u attend
4) Who are members in grooming session?
5) Share the screen and Sort the array and find one missing number
6) Which java version are you using, is it paid? (Java 8 & its free)
7) What is production URL
8) What is testing URL
9) What is domain URL on which you work?
10) Query for second max salary

Capgemini Technical Round 1

1) tell me about yourself


2) Tell me the automation life cycle.
3) what is POM why we use it?
4) what is testNg?
5) what is diff bet string and array?
6) what are collections?
7) what is actions class?
8) what are constraints in SQL. Explain it?
Ans: The following constraints are commonly used in SQL:
Syntax
CREATE TABLE table_name (
    column1name datatype(varchar) constraint,
    column2name datatype(int) constraint,
    column3name datatype(int) constraint,
    ....
);

NOT NULL - Ensures that a column cannot have a NULL value


UNIQUE - Ensures that all values in a column are different
PRIMARY KEY - A combination of a NOT NULL and UNIQUE. Uniquely identifies each
row in a table
FOREIGN KEY - Prevents actions that would destroy links between tables
CHECK - Ensures that the values in a column satisfies a specific condition
DEFAULT - Sets a default value for a column if no value is specified
CREATE INDEX - Used to create and retrieve data from the database very quickly

9) what are DDL and DML commands in SQL?


10) what is groups in TestNG?
11) which testing you have performed in functional testing?
12) what is diff bet system testing and integration testing?
13) what is diff bet severity and priority?with example.
14) what is API testing?
15) what is UI testing?
16) what are annotations in TestNG and what is the use of that?
17) what are the methods of string explain it.
18) what is diff bet sanity and smoke testing?
19) explain the various coverages in functional testing.

Capgemini Interview Questions


(Java+ selenium)

1) Difference between int and Integer


2) Difference between List and Set
3) Have you written scripts or just managed and executed which are written by others?
Yes. Then write script for: -
4) Click Google apps from there go to travel app (code with Scrolling)
5) Tell me about project
6) Exact testing which you have performed in your project
7) How you perform testing on specific stocks. numbers of stocks.

Capgemini Interview question

1) Introduction
2) Have you worked on testNg framework?
3) What is agile methodology?
4) How we use Jenkins with maven?
5) What is BDD?
6) Features of testNg
7) different types of testing you are doing in your organization?
8) How to take screenshot?
9) Daily routine?
10) Meetings you are involved?

COGNIZENT TECHNICAL ROUND 1*


Time: - 11:05 am to 11:30 am

1) Manual/Functional Testing
2) tell me about yourself.
3) diff bet regression and retesting?
4) Explain all stages in STLC.
5) what is bug life cycle?
6) what is bug and what is defect?
7) what is severity and priority with one example for low priority and high severity?
8) what are conditions to make defect as differed?
9) Scenario: to verify one web page which has User ID password and login button-----so what are
required verifications to check this web page?
10) which tool you have used for bug tracking?
11) how you report bug to developer?
12) what are the processes you have done in the tool to report the bug to developer?
Mindtree Ltd. 28.08.21
Role: - Sr. Test Spec Marketing and Comm

1) Introduction?
2) Have u work on E-commerce project?
3) Syntax for fetching Data from Excel sheet?
4) Code for handling Dropdown list?
5) Syntax and use of @Dataprovider and @Factory
6) Do u work on CI-CD pipeline?
7) Working of BDD?
8) Java Code for fetching response from given URL and validating data like Content-type?
9) TestNG annotations?
10) Defect Life Cycle?
11) Which tool you are using for it?
12) How you log the defects in Jira?
13) What are the challenges we face during data fetching from API?
14) How you automate API?
15) How job scheduling is done?

Note: -
If you are giving Interview for the mentioned role in Mindtree Ltd
Be prepared with BDD and
API automation

CYBAGE TECHNICAL ROUND 1:-


Automation Testing

1) Tell me about your project.


2) what is @data provider and @factory?
3) what is listeners class what is use of it?
4) diff bet assertions and verification?
5) what is parameterization? How to switch from one browser to another by using parameterization?
6) how to find broken links using selenium?
7) how to make test reports?
8) what are negative scenarios in your project?
9) how to upload data from excel sheet to selenium?
10) what is XSSF function?
11) what is diff bet / and // where we use it?
12) Program to find largest no in an array.
13) how you find or discover the defects in case of production issue?
14) do you aware about array list?
15) Is there any additional tool for reporting you have used for your project?
16) which technology you have used in your project?
17) write down steps to get data from excel sheet.
18) what you have used to prioritize your test scripts?
19) what are test annotations you aware about?
20) what is diff bet suite and test?
XORIANT TECHNICAL ROUND 1
Time: 9:00 am to 9:40 am

1) What is collections? what is the use of collections?


2) diff bet HashSet and HashMap?
3) diff bet string Buffer and string builder?
4) diff bet hashset and tree set?
5) What are the OOPs concepts in Java?
6) Query to select top 50 records from table?
7) how to re run failed.xml file?
8) what is diff bet retesting and regression testing?
9) how to get data from excel sheet write down steps?
10) Program to reverse string w/o any inbuild function?
11) what is actions class what is the use of actions class?
12) How to find broken links in the webpage?
13) How to use getter and setter in encapsulation?
14) What is the use of annotations in test engines?
15) Diff bet’n absolute and relative Xpath?
16) Which locator is preferable either Xpath or CSS selector?
17) How you created your framework?
18) Do you know pesticide paradox? What is it?

Cybage for automation


1) why use Webdriver
2) Which ide use
3) how will u change code in maven
4) if there is web element which change Xpath how will u handle it
5) how will u handle authorization window
6) where will u write test case in automation
7) how will u handle multiple window
8) maximum questions are on maven.
9) tell me about your framework structure only
10) type of locator
11) what is project repository
12) implicit and explicit wait
13) build tool
14) where r u writes test case in automation
15) how maven inherit ate
16) reasoning qua
17) GitHub
18) Ur roles in project

Wipro
1) Tell me about yourself
2) Responsibility u carries
3) Technologies used in your project
4) What is Webdriver
5) Suppose in webpage there is Id n pass popup, I have to disable it, how
6) Explain your framework
7) Difference between java project and maven project
8) Why maven
9) Difference between Junit and testNg
10) Sequence of annotations for testNg
11) What is the synchronization
12) Array was given, print the duplicate, remove the duplicate, sort it and print final array....all in one
program have to write.
13) Pyramid star pattern
14) What is the Jenkin
15) What is the GitHub
16) How to push code
17) Suppose you have to merge the comments that with previous one..... what to do.
18) Merge code in same branch again..... what to do.
19) Explain i-frame handling

Gspann technologies

1) Diff between abstraction & encapsulation


2) Diff between class & interface
3) Diff between list & set
4) Do u Know what is lambda expression in collection ?
5) HTTP methods in API testing ?
6) How to handle alert popup?
7) How to handle child browser popup
8) Tell me about your project?
9) What process u have followed in your project?
10) How to get numbers separated from the given string?
11) String is mutable or immutable?
12) Is there any mechanism to convert private access level to public?
13) 13.What u have done in DB testing? SQL commands & clauses?
14) Do u have experience with cucumber?
15) TestNg Annotations?
16) 16.Create list for given values.
17) Can we maintain duplicate values in list?
18) 18.Exceptions in java? How u handled it
19) 19.Do u involved in Automation for API testing?
20) 20.What is selenium Webdriver?
21) 21.Advantages Of selenium Webdriver?

Hexaware Technical Round 1


1) tell me about yourself.
2) why string is immutable?
3) Is it possible to reassign the value to string?
Like: string s1 ="hello";
string s1 ="world";
4) what is multiple inheritance in java?
5) what is interface?
6) what is static? what is use of it?
7) what is diff bet static and final keyword?
8) why we are not able to call static data member in non-static method?

Corereview system Pvt Ltd (interview questions)

1) Explain your project with which testing you perform.


2) When u perform API testing.
3) Difference between get and delete method.
4) Difference between patch and put method.
5) Difference between post and put method.
6) How u perform get method .
7) Difference between verification and validation. give daily routine example for both of them.
a. Which methodology use in your organization.
8) Explain agile methodology.
9) Difference between waterfall model and agile methodology.
10) Difference between smoke and sanity testing and give one real time example for both of them.
11) Explain Defect life cycle.
12) Explain defect life cycle in jeera .. explain the process how is it work in your organization.
13) If the developer rejects Your defect means and You send him screenshot but he can't reproduce
the defect then what is your approach.
14) like screen recording and log files .
15) positive and negative test case for fan (cover all functionality)
16) positive and negative test case for specs.
17) if customer requirement is that any person or any animal can wear that spec. then how u write
positive and negative test case for them.
18) How u perform database testing.
19) List out the clause
20) query for inner join
21) query for order by clause.

FIS GLOBAL (ROUND 1)


1) Tell us something about yourself?
2) Smoke &. Sanity difference?
3) Explain your framework?
Tell me annotations where you have used those testNg annotations in your project?
BeforeSuite
BeforeTest
BeforeClass
BeforeMethod
@Test
AfterMethod
AfterClass
AfterTest
AfterSuite

1) Tell me technical flow of your project?


2) Do you invest in trading?
3) What is equity?
4) Difference between retrospective meeting and sprint review in detail?
5) What is x-path? How do you find dynamic x-path?
6) What are different x-paths?
7) So, do you know any other Xpath method to find out dynamic x-path other than contains?
8) Write down SQL Query?
9) Tell me what return type you have given to the constructor in your project?
Ans: No, constructor does not have any return type in Java. Constructor looks like method but it is
not. It does not have a return type and its name is same as the class name. Mostly it is used to
instantiate the instance variables of a class. If the programmer doesn’t write a constructor the
compiler writes a constructor on his behalf.
10) Which framework you have used in you project?
11) What is API? Give me example if Api which you used in your day-to-day life?
API example:
Sharing flight information between airlines and travel sites. Using Google Maps in a rideshare app. Building
chatbots in a messaging service. Embedding YouTube videos into a webpage.
12) Tell me the sequence of annotations?
13) Tell me the difference between abstract and the interface?
14) What is difference between the implicit wait and explicit wait with syntax?
15) Why do we call string as immutable? And how can we make string mutable?
16) Where do you used collection part in your project?
17) What is Localization testing? Have performed this testing?
18) Tell about jeera and HPALM? What's ALM? How do you write test cases? Then how do you review
them?
19) Have used soap or postman?
20) Explain 401? What's is the meaning of this and when it will come?

***************************** 3rd tech round **********************************


- Write Program to print similar values present in both array

int[] a = {1,2,3,5};
int[] b = {2,3,5,6};

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


{
for(int j=0; j<b.length; j++)
if(a[i]==b[j])
system.out.println(a[j]);
}

*************************************************************************************
**

- Write Program to sort array

int [] a = {22,55,33,89};

Arrays.sort(a);
for(int i = 0; i<a.length;i++)
System.out.println(a[i]);
**********************************************************************************

- Write program to sort without using Arrays.sort method


int [] a = {22,55,33,89};
int temp = 0;

for(int i = 0; i<a.length;i++)
{
for(int j =0; j<a.length;j++)
if(a[i]<a[j])
{
temp = a[i];
a[i]=a[j];
a[j]=temp; /// switching position if condition is true
}
}
for(int i = 0; i<a.length;i++)
System.out.println(a[i]); /// display after sorting

*************************************************************************************
*******

- Write Program if string contains duplicate character, then print "Yes"


String a = "avdhutpawar";
char[] ar = a.toCharArray();
HashMap<Character,Integer> smap = new HashMap<Character,Integer>();

for(char al:ar)
{
if(smap.containsKey(al))
smap.put(al,smap.get(al)+1);
else
smap.put(al,1);
}
Set<Character> keys = smap.keySet();

for(char key:keys)
{
if(smap.get(key)>1)
System.out.println(key +":" +"Yes");
}

*************************************************************************************
******************

tb1 (table name) tb2 (table name)

id name age RollNo marks branch

Q. Write a query to get Name of the such students those who scored below marks
than avg marks

select name from tb1


inner join tb2
on tb1.id = tb2.RollNo
having marks<(select avg(marks) from tb2);
*************************************************************************************
***********

- Write query to get name of student age is below 25

select name from tb1

where age<25

- Write query to get name of student age is below 25 and branch is electronics

select tb1.name,tb1.age,tb2.branch

from tb1

inner join tb2

on tb1.name= tb2.branch

where age<25 and branch = 'electronics'

*************************************************************************************
***********

- how to handle pop up ?

- what is return type for driver.getwindowhandles() and driver.getwindowhandle()?

Ans : Set<String> ----- getwindowhandles()


String ----- getwindowhandle()

List<WebElement> ----- findElements


WebElement ----- findElement

- if app is getting crash intermediatory but not frequently what will be the priority and severity?

- How to save cookies using selenium and use it later ? any idea ?

( ans : per google cookies can be stored using FileWriter class to write streams of chars and
BufferedWriter to write text into file to create into cookies.data)

- what was the last defect you raised?


 What is List and Set?
- List And Set both are child classes of collections interface
- List is use where insertion order of objects is maintained and duplicates values are allowed
- Set is use when insertion order of objects is not maintained and duplicates values are not
allowed

Example:

- in drive.findElements List is use with variable


- In driver.getWindowHandles Set is used

 Where u have use collection part in project?


- drive.findElements List is use with variable
- driver.getWindowHandles Set is used

 Where u have use list and set?


- drive.findElements List is use with variable
- driver.getWindowHandles Set is used

- We use List because when we are using findElements() instead of findElement() then we are
expecting that locator will return us more than 1 element, where insertion order needs to
maintained per locator available and duplicates are also required

- We use set when we are using getWindowHandles, because it will return window id in form of
string tht window id must be unique value and duplicates are not allowed

 What method is use to update value of private


variable?

The meaning of Encapsulation, is to make sure that "sensitive" data is hidden


from users. To achieve this, you must:

 declare class variables/attributes as private


 provide public get and set methods to access and update the value of
a private variable
Important
- private variables can only be accessed within the same class and outside
of that class is not possible
- However, it is possible to access them if we provide
public get and set methods

● What is JRE ?
The Java Runtime Environment, or JRE, is a software layer that runs on top of a
computer’s operating system software and provides the class libraries and other resources to
run JVM

● What is the work of an interpreter?


- Interpreter in Java- converts high-level program statements into Assembly Level
Language. (bytecode)

● What is bytecode?
- Bytecode is program code that has been compiled from source code
into low-level code designed for a software interpreter.

● Why java is not fully object oriented language?


- Java is not fully object oriented because it supports primitive data type like
byte,short,int,long

● can we call instantaneous variable in static method in java?


- We cannot directly access the instance variables within a static method because a static
method can only access static variables or static methods.
● Final keyword in terms of class, variable , method

What is a singleton class ? how can we create singleton class?


- Singleton class is used to restrict the objects
- It consist of only one object at time
- By making constructor private we can achieve singleton class
- It is used to provide global point of access to the object
- used in logging, caches,device drivers, configuration settings

● What is Constructor Chaining?


- If constructor mismatch is their due parameterization in parent class and child class
- we use super keyword in child class to call parent class constructor is called
constructor Chaining

● How to handle popups ? are their any plugins used to handle several popups ?
- Robot Class plugin

● What is iframe?

● How to take screenshot?


● How many waits are there ? if implicit wait apply with 10 sec do we compulsory stop for
10 seconds or if element is clickable then it will move forward?
- It will go fwd

● Difference between assert , verify ?


- If Assert fails program will not execute further
- If verify fails program still get execute further
● Driver. Close and driver.quit difference ?
● Driver.navigate functions?
.back();
.forword();
.refresh();
.wait();

- Ways to refresh a browser


1. driver.navigate().refresh();
2. driver.navigate().to(driver.getCurrentUrl());
3. driver.findElement(By textboxLocator).sendKeys(Keys.F5);

1) Where u have used interface In selenium?


- WebDriver driver = new ChromeDriver();
- Public Class Listener extends ITestListerner
- List<WebElement> elements = driver.FindElements(by.xpath(path)); // list is interface of
collection framework
- Set<String> winIds= driver.getWindowHandles(); //Set is interface of collection framework

2) What is difference between interface and class ?

Interface

- Interface contains unimplemented methods only


- Implement those methods using implements keyword
- Can’t create object, can’t create constructor
- Static method is allowed with body
- Multiple interface implementation is allowed in on class

Class

- It is a plan through which we come to know about all different logics we are having on our
programme
- It is a collections of objects

3) Write java programme for hibonachi series

0,1,1,2,3,5,8,13,21,34

public static void main(String[]args)


{
int a = 0;
int b = 1;
int c = 0;
For(int i =0; i<10;i++)
{
c = a+b;
SOP(c);
a=b;
b=c;
}
}

4) Explain me about YOUR framework?


- Data driven using POM explained with testNg and maven and git
- Along with base class, utility class and properties file
- Pom.xml and testNg.xml
- Along with Jenkins

5) What will be Ad-hoc test scenarios for feature of sending email using compose key?
- Explain email To, CC,BCC, body ,send ,cancel button

Q. BVA and ECP ?

6) What project management tools u have used?


-JIRA
7) Build management tool?
- maven

- annotation sequence in testNg?

- Beforesuit and beforetest why needed and condition to run beforesuit two time ?

- how to run 1000 test scripts using two different machines to save time ? selenium grid?

- selenium grid functionality different os base , differ machine , different browsers base

- if 1000 script consist of 200 test cases which are smoke test cases, how will u run only those
frequently? Group = smoke

- String S = avdhut , S= test , what will get printed ? why?

- what is ArrayList?

- how to remove duplicate values maintaining insertion order? LinkedHashSet


- groovy language?

- what is test suit?

- difference between == operator and .equals

- git commands

- two ways to implement listener class ?

- what is docker?

- Jenkins’s overview

- HashMap use?

- does HashMap contains dup values= yes,

duplicate keys = no,

null keys= one null key allowed,

multiple null values allowed , null objects ?

- hashset ?

- LinkedHashSet?

1) Tell me something about yourself

2) Explain your framework

3) where you have used encapsulation in your framework

4) where you have used Interfaces in your framework

5) Webdriver driver = new Chromedriver which type of polymorphism it is? ---> Runtime

6) What is use of properties file in framework?

7) What is use of base class in framework?

8) what is meant by Interfaces?

9) can you write constructor inside the interface?

10) What is main purpose of interfaces?

11) Wat is meant by Abstractions?


12) how to execute the test script in Incognito mode?

ChromeOptions options = new ChromeOptions();


options.addArguments("--incognito");
WebDriver driver = new ChromeDriver(options);

13) What is use of collection?and it's types?

14) What is diff between Set and List?

15) What is use of Iterator

16) What is diff between next and hasnext?

17) what is diff between checked and unchecked exceptions?

18) diff between static variable and final variable

19) how to execute same test case multiple times?

20) how we execute test cases parallel

21) Consider there are 10 test cases we have not mentioned the priority only menthods name like
m1,m2,m3....m10 what will be the sequence of execution of test cases?

22) how will be the order of Annotation Execution of :- @AfterTest @BeforTest @AfterMethod @
BeforeMethod @TestA @TestB @TestC

23) What are different Selenium Webdriver methods

24) what is diff between .get and .navigate method?

25) What are diff WebElement methods?

26) what is diff between thread.sleep and Explicit wait

27) Scenario: In down structure you have tag name "div", attribute "class" and value of attribute
"ABC123" and this value of attribute changes consciously what will be your x-path for it?

28) Scenario: In web page multiple links are present. find how many links are there and click it one
by one what is your logic for it?

29) Scenario: There is one dropdown box of city name if you have to select "Pune" city option form it
and it's tag name is starting with "div" how do you select the name tell me it's logic

30) Code: Write code for Prime number?

Round 1 Video call - Google meet à 25 min.


 How are you
 Can we start
 Tell me about your self
 As you mention, why you have gap between pass out and joining
 So, Why you left the previous company and switch in IT.
 Your rolls and responsibility in your current company
 How much you rate yourself in core java ?/5
 What is Run time polymer Prism
 What is compile time polymer prism
 What is static
 What is Implicit and Explicit wait
 what is fluent Wait
 Have you work with frame
 Method to handle I frame
 Difference between “/ ” and “// ”
 Which is more preferable, why
 How much experience you have in API testing
 So, Have you Worked With API Automation
 Which tool you are using for Manual API Testing
 What you actually check in that
 Methods in thatà GET, PUT, POST, DELETE, PATCH
 What is REST API
 Difference Between SOAP and REST
 Which is more secure
 Difference between JSON and XML format.
 Difference between URI and URL
 How you write the API test cases.
 So, what is parameter
 If we try PUT with all parameters. And data is not present there, what will
happen then.
 Do you know about swagger
 Tell me difficulties you have faced in API testing.
 So, after pandemic is over, will you shift in job location.
 I done from my side, do you have any question for me

Round 2 Video call - Google meet à 45 min


 How are you
 How much you rate yourself in core java ?/5
 How much you rate yourself in selenium ?/5
 What is WebDriver
 Differentiate “/ ” and “// ”
 Which is the fastest locator
 Fastest between “CSS” and “Xpath”, Why
 Differentiate final, finally and finalize.
 What are the access specifiers
 What is the scope of protected.
 Just explain the “public static void main(String [] args)”
 How will you perform mouse action
 How will you perform drag and drop in selenium
 How will you handle drop down
 Difference between page factory and page object
 Give me the example for high severity low priority
 Tell me Functional and non-Functional Testing
 Tell me your work from start to end in the sprint
 If you have 10days sprint cycle, no client want urgent change in
requirement on 6th day, so what will you do
 Any question for me.

Round 3 Video call - Google meet à 50 min.


 Tell me about your self
 Are u on direct pay roll or third party pay roll
 Why does you want to change your company
 Are you working with Waterfall or agile
 So tell me about your work flow
 Also all ceremonies in agile
 Tell me the software testing life cycle
 What is Test Strategy and test plan
 Do you involve in test plan
 So what you actually do in test plan
 How much team member you have in your team
 What will you do, if your team member is not cooperating with you
 What will you do, if your team lead is not cooperating with you, instead he
always pointing you.
 On what work in your career, you feel proud about that Work.
 So, how you did that

What is show stopper in testing?


A showstopper bug is a hardware or software bug that causes an implementation to
stop and become essentially useless. This critical bug must be fixed for the
development process to proceed further.

Defect release, defect leakage, bug leakage


what is build and release
Developer not accepting defect what approach
Diff verification validation, static dynamic, WBT BBT, Quality assurance control
Product backlog sprint backlog
Burn up burn down chart
What is scrum, sprint and task
In agile people role/ scrum roles
Defect mask, latent defect
Roles and responsibilities in your current project
Test cases on specs
TestNG annotations
Locators
Single double slash difference
How to enter text ----using sendkeys()---explain whole sentence first find Xpath and all
Test scenario and test script difference
When u found application is very much buggeeee
Levels of testing
Defect life cycle
Types of defects
Assert and verify

IBM (1st round)


1) Diff Web services & API
2) API documentation (refer Naveen k API testing 30 interview Q&A video)
3) Challenges you faced in API testing
4) Have u perform cloud based Api testing
5) Approaches to perform in API testing
6) Advantages in API testing
7) Why we need API testing
POSTMAN
8) What type of web services you have performed in your project?
9) SOAP services & REST diff
10) Web service elements or soap services elements
//////////////////////////////////////////////////////////////////////////////////////////////

GS Lab (1st round)


1) 9 balls are there and one is defective &that one ball has less weight. With the help of waving
machine how u find that one defective ball?
2) What type of bugs u find in your project?
3) Roles & responsibilities in your project
4) What u do in your project Tell me end to end flow
5) Fibonacci series program & output should be print in left triangle pattern
6) I/p: 3 4 2 1 4 5 6 1 3 5 8 1 6 2 o/p: 2 6 8 means print only numbers before 1
7) What is API testing? HTTP methods ? put patch difference?

Expleo (1st round)


1) Technical flow of your project
2) Set, list & ArrayList , LinkedList difference
3) Where UNIX u have used in your project
4) Sql commands in your project apart from select
5) Test scenario and test case difference
6) GUI of your project(what elements present over there)
7) What is your involvement in test planning
8) Explain test plan
9) SDLC & STLC difference
10) Test case format/template
11) JIRA
12) Do u have knowledge about HPALM
13) what is Deferred defect & how dev will know about deferred defect how he can decide that it is
deferred defect?
14) Defect life cycle
15) Levels in testing process
16) Dev is accepting your defect what will be your approach?
17) What is front office, back office middle office? Where u involved?
18) Work from home & daily office which one is more suitable?

InfoObject( 1st round)


1) Locators
2) Xpath? Single slash double slash
3) How to handle popups, iframes
4) Scenarios for finding Xpath which one u will use absolute or relative
5) Programs : swap num, count spaces

InfoObject( 2nd round)


1) List & set difference
2) ArrayList&Linked list diff
3) Write an Sql query for list all teachers who are work in same dept and having same grade
4) Teacher name: Savita, Kartik, Rohan, Shailyn, Mandar, Vandana, Tasneem
5) Dept name: mech, comp, science, mech, comp, civil, electrical, electrical
6) Grade: A, B, A, C, B, A, C,A
7) Public string add(int a)
8) Public void add(int a)------ method name parameters same but return type diff so will it give an
error or run successfully
9) Jenkins & Git
10) SDTC & STLC diff
11) OOPs concept? Super class? Super keyword?
12) For Excel which dependency u have used in pom.xml
13) One test class is there and have test cases and I want to run it only on Chrome so what should I
do
14) Status code: 403, 500, 501
15) Joins?
16) How to switch from one frame to another frame
17) How to take screenshot
18) <div><label>male</label>’<input type radio button></input>
19) I want to locate male so write Xpath for that
20) String a =”Neha”, string b=”Goyal”
21) Want to print like this: Neha Goyal
22) One form is there it has 50 fields how u take from GUI and stored in Excel
23) What is Dynamic Xpath? how to handle that
24) Suppose there is one field I want to click on that but without scroll down screen u have to click
on that How will u do that?
25) Xpath & CSS selector difference?

InfoObject (3rd round)


1) What is ? where u performed in your project?
2) Framework?
3) How many jobs u have schedules on Jenkins?
4) How many defect u found in your project?
5) Have u write test class for every page?
6) How to handle alerts
7) Waits types scenarios for where u can apply which type of wait
8) Suppose there is one button which is visible for 15sec which wait I can use
9) Thread.sleep
10) Suppose 20 pages are there how will u develop
11) Git&jenkin git commands
12) Failed test cases where u can see
13) Have u configure Jenkins
14) Scenarios for Git commands

Expleo (2nd round)


1) When KT given to u but u are not clear then what will u do?
2) What is trigger, sl slm (full form &difference)(project me)
3) If dev not accepting your defect what will b your approach?
4) What is your daily routine for office work?
5) Why u r looking for new opportunity as u r already working in vast domain and u can learn more
in that?
6) Regression and retesting difference
7) Tell me Your application’s different elements(like sl slm trigger co, ioc likewise explain all things)

Virtusa(1st round)
1) Sprint planning meeting?
2) what is Web services testing? Status codes? Xml and json format
3) Git commands & Jenkins
4) Where u will found failed test cases for manual testing
5) String reverse program
6) Open your Gmail go to inbox and select checkbox do that
7) Severity types

L&T(1st round)
1) Roles & responsibilities in your org
2) Priority severity example? ask scenarios
3) Defect life cycle
4) Test plan, test case test scenarios test script
5) Project related
6) Sanity smoke regression retesting functional non functional testing

ZS(1st round)
1) Program reverse string, swap number without using 3 rd var or temp var
2) Sql commands joins , 2nd highest salary
3) All Manual concepts
4) Locators, Xpath, alerts
5) Java concepts
6) Testing annotations
7) Maven

ZS (2nd round):
Test case study round (4 scenarios are there choose 1 and write test cases for that in word or in excel)

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

64. What is priority & severity?

Priority:
- how urgency to fix the defect.
- Decide order of defect fixation.
- Priority decided by project owner or stack holder at the time of requirement gathering
- Priority decided in terms of high, medium, low.
Severity :
- 1.seriousness of the defect
- 2. Define the impact on the application’s functionality.
- 3.severity decided by testers.
- Severity decided in terms of critical, major, minor, low.

65. Give me an example: High severity & high priority?

1.login screen of an application is not working and the user is unable to login

66. Give me an example: low severity & low priority?

1.spelling mistakes on the webpage.

67. Give me an example: High severity & low priority?

1. button not working but does not impact on other functionality.

68. Give me an example: low severity & high priority?

1.If the company name is misspelled in the home page of the website

2. Button is working but the color is different.

69. When does priority and severity decide?

1. Priority decided by project owner or stack holder at the time of requirement gathering.

2. severity decided by testers at the time of assigning defects to the developer.

70. Which parameters are deciding factors for defect severity and defect priority? Give an example ?

1. how urgency to fix the defect decides priority.

2.seriousness of the defect decides severity.


ZS Associates

Facts about ZS -

 7000+ professional with deep industry & domain expertise help clients significantly improve
their performance

 24 Office worldwide

 We have partnered with more than 1,200 clients in over 70 countries across a wide range of
industries 

 More than 85% of your work today is in the pharmaceutical and biotech sectors

 More than 85% of our business comes from repeat clients. Our first client is still a client

Two different teams:

 ZS’s India Capability & Expertise Centers 

 ZS's Software Development Team 

You will be a part of ZS’s India Capability & Expertise Centers team

ZS’s India Capability & Expertise Centers house more than 60% of ZS people across two locations in
Gurgaon and Pune. Our teams work with colleagues across North America, Europe and East Asia to
deliver sales and marketing projects to our end client, who drives our business. The Centers primarily
support projects in the areas of Business Analysis, Business Operations and Business Technology.

LINKS you must browse – Very Important:

ZS has been recognized globally for its expertise in consulting and its flexible work environment.
View ZS’s accolades.

To know more please follow :

 ZS's Founding Director Prabha Sinha talks about our ZS culture


- https://www.youtube.com/watch?v=ewU3S9ci5uU

 ZS - Who We Are - ZS - Who We Are

 Javelin™ Alignment Manager - https://www.youtube.com/watch?v=Uq48uv_81n8

FAQ,s For the Senior Software Testing


There are 4 rounds :
Please find the questions below :
Technical round:
1. Program to find a factorial of the number

2. Program to print based on condition.

a) Print (Hello) when number is divisible by 3

b) Print (World) when number is divisible by 6

c) Print ( Hello World) When numbed is divisible by 9

d) Print ( Hello) when divisible by all 3,6 and 9

3. Have you ever used any analytics tool like Splunk?

4. Write a query to find second maximum salary from table

5. Write a SQL query to find all the salaries which are below average of the salary.

6. Have you ever worked on framework development?

7. Which kind of reporting tools you have used for automation framework..

8. Manual and automation.

9. Make database query

10. OOPS concept

11. Write down java code.

12. Write down x path ( in automation testing).

13. Automation framework and existing framework.

14. Agile process

15. Defect cycle management.

16. Select ddlspecland.

17. Join- database query

18. API testing

Basics:

1. From how long you are working in Automation Testing.


2. Any knowledge on Web Architecture.
3. What do you understand by Non – Functional Testing?
4. Any experience in Data based queries.
5. How many projects you have done in Selenium
6. What type of applications you have done like B2B, B2C, Web based, Product based Applications.
7. In which API you are working?
8. STLC And SDLC

Case Study Round:


Tips:

 Total time allotted to solve a case study is approx. 1 hour. The interviewer will tell you the
weightage of each question, so proceed smartly.
 If any question is left out, be prepared with an answer or at least the method to solve during the
interview.
 Go through ZS associates company website and get to know as much as you can about them. This
information can play a big hand in the ZS associates Interview Questions for the case study.
There would be 3 Question on the basis of case study, and you need to attend any two (HR will Explain):
1) Design
2) Business Solution (Logical based, calculation)
3) Coding’s (Programming Approach)

Case study solution round:

Case solution discussion–


The interviewer will share his screen with you and ask you to explain each n every approach you have
applied for the solutions.

Make sure that you explain each n every approach step by step and your communication should be in a
structured manner as last time some of the candidates got rejected on this basis only

 PRESENT YOUR CASE STUDY TO THE HIRING MANAGER/Interviewer–brief them about the
approach / logic you had applied to arrive at the solution.
 Prepare on Logical reasoning, Puzzles, guesstimates questions from Quora or any similar portal
 Brush up your knowledge regarding your core tools & technical skills.
 Articulate your answers well & give structured replies

Fitment round:
Behavioural Interview + final interview- This round will be a resume probe Interview. The
candidates should be prepared to solve structured and unstructured problems (guesstimates,
puzzles, brain teasers). They will have an opportunity to discuss with one of the senior ZS
managers to understand growth opportunities, career path and ZS vision in general
1. This interview will be with Partner /Principal with ZS associates – so please conduct yourself
professionally and attentive while communicating

2. Behavioral assessment (e.g., How do you take feedbacks from Juniors/Seniors/Peers & how you
incorporate them)

3. Assessment on you being a Team player / team manager - pls. share examples or instances to
support your answer
4. Cultural Fitment………responsible & accountable for your work.
5. Why you want to join ZS?
6. Why ZS and not any other organizations like Infosys, Accenture?
7. Why ZS should hire you?
8. Why ZS should not hire you?
9. Do you understand the role? (Read the job description)
10. What are your expectations/aspirations from the next role that you want to take up? (This
should be in sync with the OPPORUTNITY being offered by ZS)
11. Why did you leave the previous organization?
12.Client Management & Stakeholder management - pls. share examples or instances to support
your answer
13. Share your expertise – mention the tools, technologies and projects you have worked on
14. How would you describe the reputation that you have built for yourself over the years?
15. How would you describe yourself?
16. How do you organize your day?

Manual focus on :

SDLC & SDLC


AGILE METHODLOGY
MEETINGS IN AGILE
PRIORITY AND SEAVRITY
VERIFICCATIN VALIDATION
DEFECT LIFE CYCLE
TRASABLITY MATRIX
Retesting
Regression testing
SMOKE AND SANITY
ECP & BVA
Test cases for anything

You might also like