i
Capgemini
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
posted on 13 Jan 2022
I applied via Recruitment Consultant and was interviewed in Feb 2021. There were 5 interview rounds.
My framework is a hybrid framework that uses both data-driven and keyword-driven approaches. The project is a web-based application for e-commerce.
The framework uses Selenium WebDriver for web automation
It has a modular structure with reusable components
Test data is stored in Excel sheets and accessed using Apache POI
Test cases are written in Java and organized using TestNG
Reporting is done using ExtentReports
The proje...
Parallel testing is running multiple tests simultaneously to save time and increase efficiency.
Parallel testing is useful for large test suites that take a long time to run.
It requires a test framework that supports parallel execution.
Code example: pytest -n 4 (runs 4 tests in parallel)
Parallel testing can be done on multiple machines or on a single machine with multiple cores.
It can help identify and isolate issues fa...
Code for switching between browser's tab
Use driver.switchTo().window() method to switch between tabs
Pass the window handle of the tab to be switched to as argument
Get the window handles of all tabs using driver.getWindowHandles() method
Example: String currentTab = driver.getWindowHandle(); driver.switchTo().window(currentTab);
Example: Set
Code for mouse click function
Use Selenium WebDriver's click() method to simulate mouse click
Identify the element using locators like ID, class name, xpath, etc.
Example: driver.findElement(By.id("elementID")).click();
To insert value in text box using excel sheet through Selenium, we need to read data from excel and use sendKeys() method.
Read data from excel using Apache POI or JXL library
Identify the text box element using Selenium
Use sendKeys() method to insert the value from excel into the text box
To run only failed test cases, we can use testNG or JUnit annotations and configure the test suite accordingly.
Use testNG or JUnit annotations to mark the test cases as failed or passed
Configure the test suite to run only failed test cases
Use tools like Jenkins to automate the process
Example: @Test(enabled = true, retryAnalyzer = RetryAnalyzer.class) public void testMethod() {}
Example:
Explanation of final key, static, finally, finalized, garbage collection.
Final key - used to declare a constant value that cannot be changed
Static - used to declare a variable or method that belongs to the class rather than an instance of the class
Finally - used to define a block of code that will be executed regardless of whether an exception is thrown or not
Finalized - a method that is called by the garbage collector...
Answering the question to write an xpath manually.
Identify the element to be located
Determine the unique attributes of the element
Construct the xpath using the identified attributes
Test the xpath to ensure it accurately locates the element
POM stands for Page Object Model. Maven is a build automation tool.
POM is a design pattern used in test automation to create an object repository for web UI elements.
It helps in reducing code duplication and improves code maintainability.
Maven is a popular build automation tool used for managing dependencies and building Java projects.
It uses a pom.xml file to define project dependencies and configurations.
Maven can al...
Agile methodology is an iterative approach to software development that emphasizes collaboration, flexibility, and customer satisfaction. CI/CD pipeline is a set of practices that automate the process of building, testing, and deploying software.
Agile methodology involves breaking down a project into smaller, more manageable pieces called sprints.
Each sprint involves a cross-functional team working together to deliver ...
Keyword driven, Data driven and Hybrid are automation frameworks used in software testing.
Keyword driven framework uses keywords to represent actions and data to be used in testing
Data driven framework uses external data sources to drive the test cases
Hybrid framework combines both keyword and data driven approaches
Keyword driven is best suited for applications with complex user interfaces
Data driven is best suited for...
Assertion is a validation point to check if the expected result matches the actual result. Soft assertion doesn't stop the test execution on failure, while hard assertion does.
Assertion is a way to validate if the expected result matches the actual result
Soft assertion doesn't stop the test execution on failure, but logs the failure and continues with the test
Hard assertion stops the test execution on failure and marks...
Locators are identifiers used to locate web elements on a webpage for automation testing.
Locators can be based on ID, class name, name, tag name, link text, partial link text, CSS selector, or XPath.
For example, a locator for a login button could be 'id=loginButton' or 'xpath=//button[contains(text(),'Login')]'.
Choosing the right locator is important for reliable and efficient test automation.
Locators can be stored in ...
Unit testing is a software testing technique where individual units or components of a software application are tested in isolation.
Unit testing is done by developers during the development phase.
It helps in identifying defects early in the development cycle.
It ensures that each unit/component of the software application is working as expected.
Unit tests are automated and can be run frequently to ensure that changes ma...
SQL query to find the second highest score.
Use the ORDER BY clause to sort the scores in descending order.
Use the LIMIT clause to limit the result to the second row.
Use a subquery to exclude the highest score from the result.
To find duplicate values, iterate through the list and compare each element with the rest of the list.
Create an empty list to store the duplicate values.
Iterate through the list and compare each element with the rest of the list.
If a duplicate is found, add it to the duplicate list.
Return the duplicate list.
There are four types of joins in SQL: Inner Join, Left Join, Right Join, and Full Outer Join.
Inner Join: returns only the matching rows from both tables
Left Join: returns all the rows from the left table and matching rows from the right table
Right Join: returns all the rows from the right table and matching rows from the left table
Full Outer Join: returns all the rows from both tables, with NULL values in the columns w
Primary key, foreign key, and unique key are all used in SQL to enforce data integrity and relationships between tables.
A primary key is a unique identifier for a record in a table.
A foreign key is a field in one table that refers to the primary key in another table.
A unique key ensures that a column or set of columns in a table contains only unique values.
Primary keys and unique keys can be used to enforce data integr...
To take backup of a table and insert values in the same table of another database.
Use SQL Server Management Studio to take backup of the table
Restore the backup in the target database
Use SQL queries to insert values from source table to target table
Good test cases require clear objectives, thorough planning, and attention to detail.
Identify the objective of the test case
Ensure the test case is specific, measurable, achievable, relevant, and time-bound (SMART)
Consider all possible scenarios and edge cases
Document the expected results
Include preconditions and post-conditions
Ensure the test case is repeatable and reproducible
Review and validate the test case with st
Bug life cycle is the process of identifying, reporting, resolving, and verifying software defects.
Bug is identified by testers or users
Bug is reported to the development team
Development team resolves the bug
Bug fix is verified by testers
Bug is closed if verified or reopened if not
Bug life cycle stages include new, open, assigned, resolved, verified, and closed
A sprint is a time-boxed period in Agile methodology during which a team completes a set amount of work.
Sprints usually last 1-4 weeks
At the beginning of each sprint, the team plans the work they will complete
The team works on the planned work during the sprint
At the end of the sprint, the team demonstrates the completed work to stakeholders
The team then reflects on the sprint and plans for the next one
To track tasks in Jira, I will create issues, assign them to team members, set priorities, and update their status.
Create issues in Jira for each task
Assign the issues to team members
Set priorities for each issue
Update the status of each issue as it progresses
Use Jira's reporting features to track progress and identify bottlenecks
I applied via Naukri.com and was interviewed in Nov 2024. There were 3 interview rounds.
Java related coding and questions related to selenium
I applied via Naukri.com and was interviewed in Nov 2024. There were 2 interview rounds.
Write a java code to find the vowels from given string
A string is a sequence of characters. It is immutable because once created, its value cannot be changed.
Strings are used to represent text data in programming languages.
Immutable means that the value of a string cannot be altered once it is created.
Any operation that appears to modify a string actually creates a new string with the modified value.
Example: 'hello' -> 'hello world'
API to fetch employee details
Create a GET endpoint /employees to fetch all employee details
Include parameters like employee ID or department to filter results
Return employee details in JSON format with fields like name, age, position, etc.
What people are saying about Capgemini
Capgemini interview questions for designations
Get interview-ready with Top Capgemini Interview Questions
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
Code to check current webpage URL, types of functional testing, authentication and authorization, HTTP methods, status codes, selecting dropdown value, and SQL queries.
To check current webpage URL, use driver.getCurrentUrl() in Selenium WebDriver.
Types of functional testing include smoke testing, regression testing, integration testing, etc.
Authentication ensures the user is who they claim to be, while authorization de...
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
STLC (Software Testing Life Cycle) is a systematic process for testing software applications.
STLC involves planning, designing, executing, and reporting on tests.
It includes phases like requirement analysis, test planning, test design, test execution, and test closure.
Each phase has specific activities and deliverables to ensure thorough testing of the software.
STLC helps in identifying defects early in the development...
WebDriver is a general interface for web automation, while ChromeDriver is a specific implementation for Chrome browser.
WebDriver is a generic interface that allows interaction with different web browsers, while ChromeDriver is a specific implementation for Chrome browser.
WebDriver can be used to automate tests on various browsers like Chrome, Firefox, Safari, etc., while ChromeDriver is specifically designed for Chrom...
I applied via Walk-in and was interviewed in Apr 2024. There was 1 interview round.
Java program to find frequency of characters in a string.
Create a HashMap to store characters and their frequencies.
Iterate through the string and update the frequencies in the HashMap.
Print the frequencies of each character in the string.
The fastest locator in Selenium is By ID.
By ID is the fastest locator in Selenium as it directly targets the unique ID attribute of an element.
Using By ID reduces the time taken to locate an element compared to other locators like By XPath or By CSS Selector.
Example: driver.findElement(By.id("elementID"));
Scenario is a single test case in BDD framework, while scenario outline is a template for multiple similar test cases.
Scenario is a single test case with specific inputs and expected outcomes.
Scenario outline is a template for multiple similar test cases, with placeholders for different inputs.
Scenario outline uses Examples section to provide different sets of inputs for each test case.
Scenario outline helps in reducin...
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
I applied via Job Portal and was interviewed in Mar 2024. There was 1 interview round.
Some of the top questions asked at the Capgemini Automation Test Engineer interview -
The duration of Capgemini Automation Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 36 interviews
3 Interview rounds
based on 114 reviews
Rating in categories
Consultant
55.2k
salaries
| ₹5.2 L/yr - ₹17.5 L/yr |
Associate Consultant
50.8k
salaries
| ₹3 L/yr - ₹10 L/yr |
Senior Consultant
46.1k
salaries
| ₹7.5 L/yr - ₹24.5 L/yr |
Senior Analyst
20.6k
salaries
| ₹2 L/yr - ₹7.5 L/yr |
Senior Software Engineer
20.2k
salaries
| ₹3.5 L/yr - ₹12.1 L/yr |
Wipro
Accenture
Cognizant
TCS