Capgemini
Interview Questions and Answers
Q1. what are the waits available in selenium?
In Selenium, waits are used to make the automation scripts wait for a certain amount of time before executing the next step.
Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit Wait: Waits for a certain condition to occur before proceeding further.
Fluent Wait: Waits for a condition to be true with a specified polling frequency.
Thread.sleep(): Pauses the execution for a specified amount of time.
Q2. IIntroduce yourself. How many types of join are there in SQL? What is Left Join?
I am a Senior Test Engineer with expertise in SQL. There are different types of joins in SQL, including Left Join.
Types of joins in SQL include Inner Join, Left Join, Right Join, and Full Join
Left Join returns all rows from the left table and the matched rows from the right table
Example: SELECT * FROM table1 LEFT JOIN table2 ON table1.id = table2.id
Q3. What are the oops Concepts in Java?
Oops concepts in Java are the principles of Object Oriented Programming such as Inheritance, Polymorphism, Encapsulation, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Allows objects to be treated as instances of their parent class.
Encapsulation: Hides the internal state of an object and only exposes necessary functionality.
Abstraction: Shows only essential attributes and methods while hiding unnecessary detail...read more
Q4. write a program to Duplicate Elements in Array?
Program to duplicate elements in array of strings
Iterate through the array and check for duplicate elements
Store duplicate elements in a separate array
Return the array of duplicate elements
Q5. Write a code to reverse only 2nd word of String?
Reverse the 2nd word of a string
Split the string into an array of words
Reverse the 2nd word in the array
Join the array back into a string
Q6. Write code for occurance of characters in string?
Code to find occurrences of characters in a string using an array of strings.
Iterate through each character in the string
Use a hashmap to store the count of each character
Convert the hashmap to an array of strings for output
Q7. What in glue in cucumber bdd
Glue in Cucumber BDD is a way to connect the steps defined in feature files with the corresponding step definitions in the automation code.
Glue code in Cucumber BDD is used to map the steps in feature files to the step definitions in the automation code.
It helps in executing the automation code based on the scenarios defined in feature files.
Glue code is written in the programming language used for automation, such as Java, Ruby, or JavaScript.
Q8. What is tracebility matrix
Traceability matrix is a document that links requirements to test cases to ensure all requirements are covered by tests.
Traceability matrix helps ensure that all requirements are covered by test cases
It provides a way to track the progress of testing against requirements
It helps in identifying any gaps in test coverage
It can be used to determine the impact of changes on test cases and requirements
Example: Requirement R1 is linked to Test Case T1 in the traceability matrix
Q9. What is selenium?
Selenium is a popular open-source automation testing tool used for web application testing.
Selenium is used for automating web browsers.
It supports multiple programming languages like Java, C#, Python, etc.
Selenium WebDriver is the most commonly used component for writing test scripts.
Selenium IDE is a record and playback tool for creating quick tests.
Selenium Grid is used for parallel testing across different browsers and environments.
More about working at Capgemini
Interview Process at null
Top Senior Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month