i
Publicis
Sapient
Work with us
Filter interviews by
I applied via LinkedIn and was interviewed in May 2024. There was 1 interview round.
I was asked to write
1. java program for move positive numbers first and negative numbers last
2. java program to reverse the words in a string without using split method.
3. Selenium coding questions.
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
1. Write a java code to print smallest and largest word in the given sentence.
2.Java code to print the statement in reverse.
3. In notepad,interviewer asked us to write the code POM class and how to call it - (Basically they wanted to check the knowledge of PageFactory class.)
4.How to write the code from config file and excel sheet.
5.All Git command
What people are saying about Publicis Sapient
posted on 10 Mar 2025
I appeared for an interview in Feb 2025.
The code demonstrates exception handling, resulting in an output of 2 due to incrementing variable I in catch and finally blocks.
The code throws a NullPointerException which is caught in the catch block.
In the catch block, I is incremented from 0 to 1.
The finally block executes regardless of exception, incrementing I from 1 to 2.
The final output printed is the value of I, which is 2.
Identify and print duplicate names from a string array that start with 'B'.
1. Create a string array with names, e.g., ['Bob', 'Alice', 'Bill', 'Bob', 'Bobby'].
2. Use a HashMap or dictionary to count occurrences of each name.
3. Iterate through the array and check for names starting with 'B'.
4. Print names that have a count greater than 1, e.g., 'Bob' and 'Bill' if they are duplicates.
TestNG annotations are used to define test methods, configuration, and grouping in automated testing.
@Test: Marks a method as a test method. Example: @Test public void testMethod() {}
@BeforeSuite: Executes before the entire test suite. Example: @BeforeSuite public void setupSuite() {}
@AfterSuite: Executes after the entire test suite. Example: @AfterSuite public void teardownSuite() {}
@BeforeTest: Executes before any te...
In a runner class, tags help organize and filter test cases for execution in automation testing frameworks.
Tags are used to categorize tests, e.g., @smoke, @regression.
They allow selective execution, e.g., running only @smoke tests.
Tags can be combined, e.g., @regression and @critical.
In Cucumber, tags are specified in the feature file, e.g., @login.
In TestNG, tags can be implemented using groups in XML configuration.
Regression testing checks existing features after changes, while smoke testing verifies basic functionality post-deployment.
Regression testing ensures that new code changes do not adversely affect existing functionalities.
Smoke testing is a preliminary test to check if the basic functions of an application work.
Example of regression testing: After a new feature is added, testing all existing features to ensure they sti...
Custom exceptions enhance error handling in automation testing, while StaleElementReferenceException indicates a DOM element is no longer valid.
Custom Exceptions: These are user-defined exceptions that allow developers to create specific error handling scenarios tailored to their application needs.
Common Exceptions: In automation testing, I've encountered exceptions like NoSuchElementException, TimeoutException, and St...
Waits in automation testing manage timing issues between code execution and web element availability.
Implicit Wait: Sets a default wait time for the entire session. Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Explicit Wait: Waits for a specific condition to occur before proceeding. Example: WebDriverWait wait = new WebDriverWait(driver, 10);
Fluent Wait: Similar to explicit wait but allows p...
BDD is a software development approach that enhances collaboration between developers, testers, and non-technical stakeholders.
Originated from Test Driven Development (TDD) to improve communication.
Focuses on defining behavior in simple language, often using Gherkin syntax.
Encourages collaboration through examples and scenarios, e.g., 'Given a user is logged in, when they click logout, then they should see the login pa...
posted on 7 Jul 2025
I appeared for an interview in Jun 2025, where I was asked the following questions.
posted on 16 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
posted on 6 Feb 2024
I applied via Naukri.com and was interviewed in Jan 2024. There was 1 interview round.
Cypress is a JavaScript-based end-to-end testing framework. It differs from Selenium in terms of architecture, ease of use, and speed.
Cypress is a JavaScript-based testing framework for web applications.
It provides a simple and intuitive API for writing tests.
Cypress runs directly in the browser and can access everything on the page.
Unlike Selenium, Cypress does not use WebDriver and has a different architecture.
Cypres...
Cypress folder structure and its assertions
Cypress follows a specific folder structure for organizing test files
The 'fixtures' folder contains static data used in tests
The 'integration' folder contains the actual test files
The 'plugins' folder contains custom plugins and tasks
The 'support' folder contains reusable functions and commands
Cypress provides various assertions for validating test results
Common assertions inc...
Cypress is a powerful tool for API testing, allowing for easy automation and assertion of API endpoints.
Cypress provides a simple and intuitive syntax for writing API tests
It supports making HTTP requests and asserting responses
Cypress allows for easy mocking and stubbing of API calls
It provides detailed logs and error messages for debugging
Cypress integrates well with other testing frameworks and tools
Cypress is a JavaScript-based end-to-end testing framework that runs directly in the browser.
Cypress allows for easy and fast testing of web applications.
It provides a rich set of APIs for interacting with elements and making assertions.
Cypress runs directly in the browser, eliminating the need for Selenium or other external drivers.
It supports modern JavaScript frameworks like React, Angular, and Vue.
Cypress provides ...
posted on 6 Apr 2024
I applied via Company Website and was interviewed in Mar 2024. There was 1 interview round.
posted on 1 Feb 2023
I applied via Naukri.com and was interviewed in Oct 2022. There were 3 interview rounds.
I am a QA Automation Testing Engineer with experience in various roles and responsibilities. I am interested in joining Global Logic for its global presence and reputation in the industry.
I have worked as a QA Automation Testing Engineer for the past 5 years.
My roles and responsibilities include designing and implementing automated test scripts, executing test cases, and reporting defects.
I have experience in using too...
Selenium components include Selenium IDE, Selenium RC, Selenium WebDriver. Different locators are ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector and XPath. Selenium WebDriver is a tool used to automate web application testing. XPath is a language used to navigate through XML documents and web pages.
Selenium components: Selenium IDE, Selenium RC, Selenium WebDriver
Different locators: ID, Name...
Answering questions related to Robot Framework and its standard libraries, architecture, setup and teardown, and a sample login script.
Standard libraries in Robot Framework include BuiltIn, Collections, DateTime, Dialogs, OperatingSystem, Process, Screenshot, String, Telnet, and XML.
Robot Framework architecture consists of test cases, test suites, and keywords.
Setup and teardown are pre and post conditions for test cas...
Answers to common Selenium interview questions.
Locators in Selenium are used to identify web elements on a web page. Examples include ID, class name, name, tag name, link text, and partial link text.
driver.quit() closes the entire browser window and ends the WebDriver session, while driver.close() only closes the current window or tab.
Implicit wait is a global wait that applies to all web elements and waits for a speci...
To convert JSON object to string, use JSON.stringify(). To convert string to JSON object, use JSON.parse().
JSON.stringify() method converts a JavaScript object or value to a JSON string.
JSON.parse() method parses a JSON string and returns a JavaScript object.
Example: var obj = {name: 'John', age: 30}; var jsonString = JSON.stringify(obj); var jsonObj = JSON.parse(jsonString);
Make sure the JSON string is valid, else it ...
Lists are a collection of ordered and changeable elements. They have various functions to manipulate the data.
Lists are created using square brackets []
They can contain any data type such as strings, integers, or even other lists
Functions include append(), insert(), remove(), pop(), sort(), and reverse()
Example: my_list = ['apple', 'banana', 'cherry']
Example: my_list.append('orange') adds 'orange' to the end of the lis...
Program to find elements of a list with least difference in Python
Sort the list
Find the minimum difference between adjacent elements
Return the elements with minimum difference
posted on 9 Oct 2024
I applied via Naukri.com and was interviewed before Oct 2023. There were 2 interview rounds.
posted on 8 Feb 2024
I applied via Referral and was interviewed in Jan 2024. There was 1 interview round.
based on 2 interview experiences
Difficulty level
Duration
Senior Associate
2.3k
salaries
| ₹17.2 L/yr - ₹33 L/yr |
Associate Technology L2
1.6k
salaries
| ₹9.8 L/yr - ₹18 L/yr |
Senior Associate Technology L1
1.4k
salaries
| ₹16.7 L/yr - ₹28 L/yr |
Senior Software Engineer
1.1k
salaries
| ₹17.8 L/yr - ₹33 L/yr |
Senior Associate 2
685
salaries
| ₹23.5 L/yr - ₹42 L/yr |
Genpact
DXC Technology
Optum Global Solutions
Virtusa Consulting Services