0% found this document useful (0 votes)
1K views

Capgemini and Sony Interview Questions

The document contains questions related to automation testing frameworks, tools, and concepts. Some key topics covered include Selenium, Appium, TestNG, cucumber, page object model, data-driven testing, locators, exceptions, and version control tools like Git. It also includes questions about test frameworks used, roles and responsibilities, and challenges faced in automation projects.

Uploaded by

Deeksha Smriti
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Capgemini and Sony Interview Questions

The document contains questions related to automation testing frameworks, tools, and concepts. Some key topics covered include Selenium, Appium, TestNG, cucumber, page object model, data-driven testing, locators, exceptions, and version control tools like Git. It also includes questions about test frameworks used, roles and responsibilities, and challenges faced in automation projects.

Uploaded by

Deeksha Smriti
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

WAP in java to find one string is a substring of another or not.

 
Occurrence of chars in one string.  
how to perform load test on pen?  
severity vs priority  defect life cycle  
interface, method overriding, method overloading  
selenium framework  
window handles, pop up handles, drop-down handle  
testNG annotations  
cucumber framework  
germination language  
germination language  
v model  
test planning  
get bytes method  
Swap two numbers without using any variables  
cocubes pattern
what is selenium ide and RC , differentiate it?

how do u automate and what are the locaters?

automate any functionality of ur project u have done recently?

what is selenium?

can u automate the font size ?  


Do you know about data driven framework and keyword driven frameworks and explain
keyword driven framework,Object repository file extention  
About the levels of test hierarchy in keyword driven framework.  

Write the code to remove duplicates from array.

What is page factory Count of each chacters in String "aabbbccc" Interger palindrome
program Nested Frames Program Write 10 Selenium Exceptions and how to handle it
How to handle google notifications which is neither alert not window pop What is Maven
used for What is Maven surefire plungin How Maven knows from where to execute the
tests How to execute same test 100 times How to execute same testcase with multiple
set of data In a webpage with 100 random images having same xpath how to always
click on the 50th element

Write down the code for read data from excel?

What is use of Maven?

Which framework in your project using and what is your role?

Basic on java selenium cucumber excel handling and childhood programs...


What kind of frameworks do you know?
 What is the difference between POM and BDD?
 What are various keywords in cucumber?
 What is the difference between ArrayList and hashmap?
 What are different oop concepts and how they are used in your framework?
 Wap to swap two numbers without using the third variable
 Do you like Automation testing?
 What did you achieve with automation testing?
 Which type of framework you are using?
 What are the locator strategies?
 How you will close all ads windows opened when you launch naukri.com?
 How you get the title of child window?
 Two text box has the same attributes. How you will locate them?
 Which wait you prefer?
 What is grouping in TestNG?
 What is Maven?
 What is the usage of Jenkins?
 Write a Java program to reverse a string without reverse method.
 Have you interacted with the client?
 How do you report automation status to the client?
 What is TestNG xml?
 What are the attributes in TestNG?
 Why you are not using JUnit?
 Are you okay to work at client location?
 How do you handle a situation where no one is helping you?
 rite the framework which is used in your project? ( for experienced)
 Write the code to fetch data from the excel sheet? (very important question
asked in most of the interview)
 What is StaleElementReferenceException?
 What is Encapsulation?
 What is Polymorphism? real-time example?
 What is the difference between /a and //a[tr] ?
 Write a program to reverse the string?
 Difference between implicit and Explicit Wait? write code?
 List the popups and write code to handle it?
 Write an anagram program?
 Program to take a screenshot?
 try
 {
 }
 catch(ArithmeticException ae)
 {
 }
 catch(Exception e)
 {
 }
 catch(LogicalException le)
 {
 }
 Which catch block will get executed if u get ArithmeticException?
 Which catch block will get executed if u get LogicalException?
 4 text box with the same class name but different id fetch the text present in
all text box?
 How do you click on checkbox using XPath?
 Print all the options present inside multiple Listbox?
 How many ways you findelement in a webpage?
 If u have multiple alerts, how do you handle it?
 When you will use the data provider?
 What are all the collections concepts are used in the selenium framework?
 India/all states, need to select the last value of the dropdown list
 If you have a .bat file, how do you call that…what exactly you call for this.
 How to work with ajax application

Capgemini Selenium Interview questions (Telephonic) [ 07.04.2019 ]

 Difference between TDD and BDD


 What is selenium grid
 How do you handle frames
 How you handle all mouse over actions
 What is the method used to handle double click
 How to handle dropdowns
 How do you handle dynamic elements
 What is XPath and types of XPath

Written Round
 WAP to find missing element in array {10 12 14 19 21 24}
 WAP to print the string which doesn’t has duplicate “My name is Rahul but
my last name is Kumar”
 How to handle nested frames
 What are components in Test Plan
 Difference between Risk and Issue
 If there are 100 test case if I want to execute the first 50th test case and after
that 1 test case should be executed how you do it
 If there are 50 failed test cases I have to re-run only 10 sets how do I execute
 There are 25 test cases after running the 20thtest case 21 st test case needs
to be executed
 Are you following Agile Methodologies tell me sprint duration
 There is a release tomorrow you got the build today you are able to execute
only 60 % what is your approach to complete 100 %
 Explain in detail about the challenges faced during automation
 How do you run the failed test cases in testng
 What is synchronization
 Difference between Implicit and explicit wait
 Are you comfortable working in any location
 Discussion regarding first and second round feedback
 Are you comfortable working in a client location

 Could you introduce yourself?


 What is the difference between Selenium and UFT
 How do you switch to the new frame & write it on paper
 Write Syntax To default content after switching the frame
 Explain Your Current project
 Which framework are you using and explain it
 Write a java program to print *** (stars)
 How many types of locators are available in selenium and what are they
 Write relative XPath syntax
 Write Xpath by using contains
 Why do we use // for writing XPath
 Explain oops concepts with coding example
 Where do you use oops concepts in selenium, explain one by one
 Where do you keep the test data?
 Write syntax to get the data from Excel sheet
 Write syntax for actions class
 Write syntax for drag & drop.
 How do you select a value from the drop-down box
 What is Jenkins
 What are the exceptions you get & explain why you’ll get those exceptions
 What is Retesting?
 What is regression testing?
 Explain SDLC & STLC
 Explain the defect life cycle
 Which tool do you for bug tracking
 Explain collections
 What is the difference between hashmap & HashSet
 Explain hashmap with an example
 Write a program to delete duplicate values in a string array
 Through actions class can you pass the test data like instead of sendkeys

okay…I am done…do you have any questions for me. so I asked a few questions
about project domain, Role, Work location, etc. He told me to wait outside. After 5
min called for the 2nd round.

Check Also: STLC Life Cycle

Capgemini Technical Round (Manager round)

 How are you & are you comfortable? He introduced himself.


 Explain about yourself
 Explain your roles & responsibilities in the project
 Apart from Selenium what are the other tools do you know.
 Which framework do you use and explain
 Apart from data-driven, what other frameworks you know ( just asking, not about the
hands-on experience )
 What is Jenkins & how do you configure & how do you get mail once tests are
completed.
 Which version controllers are you using
 What is the difference between SVN & GIT
 How do you maintain the source code in GIT
 Suppose there are 10 classes & I want to push only 5 classes, how do you do that
 How do you deal when you get conflicts
 What are the challenges you faced, I told a few challenges & again I told that from
the past two days we are facing one challenge & explained it? So he gave me the
solution.
 What are ancestors & siblings tell me the syntax?
 I have mentioned appium in my resume. So start asking questions on appium.
 What is Appium & how do you locate elements on Android app
 Have you worked on Real devices and what are those devices?
 On which android version have you worked
 What are the functionalities you worked on Application?
 How do you connect through real device & eclipse?
 What are the selenium components & have you used a selenium grid?
 Have you worked on UFT? I never got a chance to work with UFT, but I have
downloaded the free version and learned 1 Month
 Are you comfortable with Selenium Web driver?
 Okay, I am done with the interview, do you have any questions for me.

Read Also: CTS Interview Questions

Capgemini Selenium Interview Questions: 04.10.2018

 Explain the Framework of your project?


 How did you report failed test cases?
 Create Xpath for dynamically changing element.
 Diff b/w absolute and relative XPath.
 How to handle pop-ups and frames?
 Write a Script for writing failed test cases.
 What are locators, types and which one is your favorite?
 Oops concept that you implemented in your framework
Capgemini Selenium Java Latest Automation Interview Questions

 Tell me about yourself


 Tell me the workflow of your project
 is it you providing / on your role in the testing end to end?
 Tell me why we need the test cases if we already write test scenarios?
 Tell me the quality of testing?
 Why you choose testing field?
 Then she asked about, what is the bug life cycle? can you explain?
 If a developer says there is not a bug what you do?
 A different reason for a developer not accepting the bug / discard bug that these are
not my bug?
 What is the last scenario you executed?
 Tell me what is a test plan and why we need a test plan?
 Tell me requirement gathering, test planning, your role of it?
 Then she moves towards the second project tell me workflow, architecture, and
objective of your project?
 Tell me the roles and responsibilities of your project?
 What bug severity? bug priority?
 How you managed cultivated data from one location to another?
 How you react in real-time scenarios?
 What is a good quality of testers?
 Write a test scenario about furniture and how end-user reacts on the furniture?
 After requirement (BRD) comes what is your role and what you did?

Capgemini Airoli interview questions

 Selenium Project
 Which class, the method to read data from Excel
 Method overriding and it’s output.
 Final, finally, finalize
 What is XPath for a dynamic element?
 What is XPath if all properties are the same.
 What are the exceptions in selenium
 When auto it tool is used.
 How auto it runs..through Java code
 What is the use of pom.xml
 How test cases run in parallel.
 How will you run testng.xml and pom.xml?
 For reports do you use to customize reports?
 Type of waits, explain
 Type of XPath.
 Do find elements have return types.

Capgemini Selenium Interview Questions [ PUNE ]

Capgemini Selenium 1st Round:

 Suppose there are 1500 test case so how will optimize the test cases to cover it fast
 How will you UI testing on Mobile Application
 Difference between verification and validation
 What is Beta testing
 Difference between UAT and system testing
 Mobile and web application difference
 Android and iOS application difference
 When you will go for Manual testing and when you will go for Automation testing
 difference between agile and waterfall model
 Explain the software life cycle
 Tell me about device management tool
 What does means word framework in selenium we driver
 Performance testing, load, stress
 Tell me about ALM, PLM Tools
 Tell me about network testing for Mobile app
 Severity priority
 What are the things will you mention in the defect report
 Tell me smoke and regression testing in your project
 Boundary value analysis
 Explain your selenium framework
 Difference between test cases and test script
 Tell me about test management tool on which you have worked
 What are the types of? testing you will perform if I give you a build
 What is the device you tested the mobile app – OS and mobile module
 How will you track the issue
 what is your role in selenium testing
 tell me the scenario which you have tested in selenium
 if there are 15000 test cases and you have to test all test cases in very less time
what would be your approach
 How will you locate the elements
 What is X-path
 which webdriver version you have used
 Tell me the naming of Android OS family
 explain your project
 explain your role and responsibilities in your project
 if I give you a pen what will you do
 what are tools available in the market for web Automation
 tools available for Mobile automation
 Tell me the things by which I will choose the Selenium webdriver for Automation

SONY

Capgemini Selenium Managerial Round

 Difference between verification and validation


 Tell me one example of verification and validation
 developer review the code so is it a verification or validation
 why is it verification
 why is it Validation
 what you have done in your application as QA
 explain your project
 What are your roles and responsibilities
 what is your roles and responsibilities in any respective project
 difference between mob app and web
 tell about Emulator or Simulator if you have worked on that
 any experience in the test management tool
 How do you maintain your test cases
 When do you get a build for testing binging of the sprint or end of the sprint
 How do you manage your sprint
 How do you get Requirements, tell me format and what they contain
 mobile Automation knowledge?
 CI-CD knowledge?
 dev-ops knowledge?
 why should we hire you?

Capgemini Selenium Interview Questions – 2 to 6 years experience

 What are the interface, methods, and rules


 Abstraction
 Can abstract class have a constructor?
 What is encapsulation
 How to achieve encapsulation
 TestNG annotations
 Can we run a TC multiple times in TestNG
 What is webdriver?
 Methods in webdriver
 Implicit-explicit and fluent wait in selenium
 WAP to reverse the string
 WAP to find the second-highest value in an array
 WAP for Fibonacci series

Capgemini Selenium Interview Questions

 What are the different locators you have used in webdriver?


 Can you give an example of absolute and relative Xpaths?
 What is difference b/w close and quit in webdriver?
 Webdriver is a class or interface?
 Can you give a class name which implemented the Webdriver interface?
 Scenario: if der is an element which contains id attribute, that ID is split into two
parts by ‘_’ (underscore), the first part is constant and the second part is changing.
how do you find that element using id?
 Suppose if the element is hidden, how do get the text of that element?
 Difference b/w implicit and explicit waits.
 How you deal with dropdowns.
 Scenario: There is a link on a webpage, click on That link a window will open and
now that opened window contains 3 different frames and you have to do the
operation on different elements in 3 frames and come back to the window. how will
you do this?
 What is the timeout in the grid?
 What is the browser timeout in the grid?
 What do you mean by max instance and max session?
 Tell different annotations provided by TestNG.
 Suppose I want to check particular exception in TestNG, how will you do?
 What is soft and hard assertion?
 What are different access modifiers and explain each?
 Can you define multiple public classes in a single java file?is it possible?
 Class name and java file name should be the same?
 What you mean by final, finally, finalize?
 What do you mean by for each loop?
 Can we remove any element by using for each loop?
 Difference b/w ArrayList and vector?
 How do you write the custom class which is immutable?
 Create one custom class using interface inside in it, that custom class should
responsible for doing for each operation. which type of interface will you use to create
such a custom class?

Capgemini Selenium Interview Questions

 Roles & Responsibilities.


 Framework explanation.
 What is interface
 What is inheritance
 How u achieve multiple inheritances in Java.
 Write a program to reverse a number.
 How you select an option in the dropdown.
 What is iframe.write code to click on a button which is in a nested iframe?
 How to handle file downloading & uploading
 The difference between implicit wait and explicit wait.
 A total number of rows in a Web table.
 How to select a checkbox present in a web table.
 What r web driver exceptions
 How to read data from an excel file
 How many testing environments u have in your organization.
 Write an XPath to get all the links.
 How to read the text on a tooltip.
 Check whether an element is displayed or not.
 There are 3 classes A B C. How to access the methods of B and C in Class A.
 Difference b/w Abstract class & Interface.
 Write a program to swap numbers without the 3rd variable.
 Write a program to reverse a string without using StringBuffer class
 Write a program to find a string in another string.
 Why static is used in the main method
 Difference between static binding & dynamic binding.
 Write an XPath of an element present in the table by using its adjacent element.
 annotations used in Testng.
 What methods can be inherited by the child class?
 Is it possible to override the main method?

Capgemini Manual Interview Questions

 What is the Test strategy?


 What is a Test Plan?
 What is the difference between Test Strategy and Test Plan?
 What is the difference between agile methodology and other SDLC models?
 Explain Bug Lifecycle?
 Explain SDLC?
 Explain STLC?
 In which stage of SDLC, Bug life cycle will come into the picture?
 How to upload test cases which are written in an Excel sheet to QC?
 What are the challenges you faced in Testing (Answer should be realistic like editing
test cases if customer changes the requirement in the middle of testing)?
 Explain your project? Unix:
 Command to get the disk space (free space and used space) in UNIX?SQL:
 How to get the unique records (without duplicate) from the table?
 How to get unique records from the set of tables?
 How to calculate the number of unique rows from a table?
 Consider a defect that does not permit the tester to continue with the testing at any
cost or causes the application to crash. Even the basic/main functionality does not
work as expected. Such a defect is considered High Priority with High Severity.
 A defect that is visible to the customer but is not likely to affect the functionality of
the app as an issue with the logo or a spelling mistake is considered a High Priority
defect with Low Severity.
 A defect that causes the system to crash and makes the system unusable but
happens only when the user clicks on any link that is not used normally are
considered as defects with High Severity but Low Priority.
 A cosmetic error that is not visible during normal use is considered as a Low Priority
defect with Low Severity.

Understanding with examples

Let us try to understand severity and priority by considering an e-commerce


application like amazon.com

Example of High Severity and Low Priority

Suppose the tester clicks on the “Privacy Notice” hyperlink at the bottom of
the amazon.com homepage and the page is not displayed. This defect will be of high
severity because the functionality is not working. The priority is low because people
do not normally spend time reading the privacy notice.

High Severity and  High Priority

You log in to your amazon.com account, add items to the cart and click the “Proceed
to Checkout” button. You make the payment and the system crashes. This defect
makes the whole buying functionality unusable and so the severity is high. The basic
purpose of amazon.com is to buy and sell products and most of the customers are
affected by this. So, this defect is of high priority which must be fixed immediately for
the buying process to work.

Low Severity and  High Priority

Suppose, that in the amazon.com website, the logo is displayed as ”amazn.com”


with the letter “o” missing. This defect does not affect the buying/selling or any other
functionality in any way. So, the severity of this defect is low. But, a mistake in the
company logo affects the brand identity and impacts the user experience. So, the
defect is of high priority.

Low Severity and  Low Priority

Suppose the tester clicks on the “Conditions of Use” hyperlink at the bottom of the
amazon.com homepage. If there is an alignment issue in the text displayed or if
there is a spelling mistake in the content displayed, the defect is said to be of low
priority because people rarely read this page and it does not impact the user
experience. The severity is also low because the functionality of the application is not
affected.
Summary

These are two important terms that are associated with a defect that helps in the
right classification of the defect. These two terms help in efficient defect tracking
process and reduce the overall defect turnaround time.

 Round 1--coding test


1. WAP to reverse the string
2. WAP to print duplicate elements in string ex. str="aabyzabcdde543672535". You have to
check duplicate numbers as well as characters code should be generic.
 convert array to list
3. WAP to read notepad data and put it in excel file.
4. WAP to find max and min number in int array
5. WAP selenium java code to read properties from properties file and excel file.
6. WAP to take screenshot in Selenium java
7. WAP to print star pattern
*******'
****
**
*  Answer QuestionShow Less
 Round 2--coding + Oops concepts+ selenium concepts
1. Code to sort array without using sorting method(iterative method you have to use)
2. Code to find 2nd largest element in array
3. Difference between POM and page factory
4. Explain String lass in java
5. Difference between throws and throw
6. Static and non static fields in java. How they are called from subclasses?
7. Concept of final, finally
8. Constructor overloading and method overriding
9. When to use super… 
9. When to use super… 9. When to use super and this keywords

Scenario based questions:


1. Can we instantiate webdriver driver() = new chromedriver() as chromedriver driver() = new
chromedriver()???
2. What will happen if we write return type for constructor?
3. Can we write two methods in same class with same names and signature  Questions on
selenium grid and Collection questions on Java  

You might also like