Senior Automation Test Engineer
100+ Senior Automation Test Engineer Interview Questions and Answers

Asked in LTIMindtree

Q. What is overloading and overriding ? What are locators in Selenium? What is the syntax of xpath locator ? What are the methods to write the test cases? Is it mandatory to have input tag in defining xpath?
Answers to questions related to automation testing using Selenium
Overloading is when a method has the same name but different parameters in the same class, while overriding is when a subclass provides its own implementation of a method already defined in its superclass
Locators in Selenium are used to identify web elements on a web page
The syntax of xpath locator is //tagname[@attribute='value']
Methods to write test cases include boundary value analysis, equivalence partitioni...read more

Asked in Cognizant

Q. What are the different types of assertions, and what is the syntax for a hard assertion in TestNG?
Different types of assertions and syntax for hard assertion in TestNG
Types of assertions: Hard assertions and Soft assertions
Syntax for hard assertion in TestNG: Assert.assertEquals(expected, actual)

Asked in Cognizant

Q. What is the difference between List, Set, and Map collections in Java?
List, Set, and Map are different types of collections in Java used to store and manipulate groups of objects.
List is an ordered collection that allows duplicate elements. Example: ArrayList, LinkedList
Set is a collection that does not allow duplicate elements. Example: HashSet, TreeSet
Map is a collection of key-value pairs where each key is unique. Example: HashMap, TreeMap

Asked in Capgemini

Q. How do you fetch unique elements from a column?
To fetch unique elements from a column, use the DISTINCT keyword in SQL.
Use the SELECT statement with the DISTINCT keyword.
Specify the column name from which you want to fetch unique elements.
Example: SELECT DISTINCT column_name FROM table_name;
You can also use GROUP BY clause to group the unique elements based on another column.
Example: SELECT column_name, COUNT(*) FROM table_name GROUP BY column_name;

Asked in e-Zest

Q. What are the types of authentication and authorization used in API testing?
Types of Authentication and authorization in API testing
Basic Authentication
OAuth
API Keys
JWT (JSON Web Tokens)
Digest Authentication

Asked in Capgemini

Q. What are your current and expected CTC?
I prefer not to disclose my current CTC. As for my expected CTC, I am looking for a competitive salary based on my experience and skills.
I am open to negotiation based on the job responsibilities and company's budget
I have researched the market rates for similar positions and have a realistic expectation
I am looking for a salary that reflects my experience and skills
I am also interested in other benefits such as health insurance, retirement plans, and paid time off
Senior Automation Test Engineer Jobs




Asked in Capgemini

Q. How do you copy a table in MySQL?
To copy a table in MySQL, use the CREATE TABLE statement with the SELECT statement.
Use the CREATE TABLE statement with the SELECT statement to copy a table.
Specify the new table name after the CREATE TABLE statement.
Specify the original table name after the SELECT statement.
Add any additional conditions or clauses as needed.
Example: CREATE TABLE new_table SELECT * FROM original_table WHERE condition;

Asked in Capgemini

Q. How do you fetch the first 5 records in SQL?
To fetch 1st 5 records in SQL, use the LIMIT clause.
Use the SELECT statement to specify the columns to retrieve.
Use the FROM clause to specify the table to retrieve data from.
Use the LIMIT clause to specify the number of records to retrieve.
The syntax is: SELECT column1, column2, ... FROM table_name LIMIT 5;
The first 5 records will be returned.
Share interview questions and help millions of jobseekers 🌟

Asked in Capgemini

Q. What are the exceptions in Selenium?
Exceptions in Selenium are errors that occur during test execution.
Some common exceptions in Selenium are NoSuchElementException, TimeoutException, StaleElementReferenceException, and ElementNotVisibleException.
NoSuchElementException occurs when an element cannot be found on the page.
TimeoutException occurs when a command takes too long to execute.
StaleElementReferenceException occurs when an element is no longer attached to the DOM.
ElementNotVisibleException occurs when an e...read more

Asked in Capgemini

Q. Write a query to find the second highest salary in SQL.
Query to find second highest salary in SQL
Use the ORDER BY clause to sort the salaries in descending order
Use the LIMIT clause to select the second highest salary
Use a subquery to exclude the highest salary from the results

Asked in Cognizant

Q. What is the syntax for using driver.findElement in Selenium?
The syntax for using driver.findElement in Selenium is driver.findElement(By locator)
Use driver.findElement(By locator) to locate a single element on the web page
Specify the locator strategy (e.g. By.id, By.name, By.xpath) to identify the element
Example: WebElement element = driver.findElement(By.id("username"));

Asked in Cognizant

Q. What types of wait mechanisms are utilized in your project?
Types of wait mechanisms include implicit wait, explicit wait, fluent wait, and thread.sleep.
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.

Asked in GlobalLogic

Q. Agile methodologies. How is the agile methodologies used in your organisation, cardinality and explicit name difference, scenarios based questions in Tosca automation, screen sharing and explain the answer.
Agile methodologies enhance collaboration and flexibility in software development, promoting iterative progress and continuous feedback.
Agile promotes iterative development, allowing teams to adapt to changes quickly.
Daily stand-ups facilitate communication and quick issue resolution.
User stories are prioritized in backlogs to ensure the most valuable features are developed first.
Tosca automation supports Agile by enabling continuous testing and integration.
Cardinality in Agi...read more

Asked in Pitney Bowes

Q. Explain Selenium Grid and how you run your suites in parallel in your project.
Selenium grid is used to run test suites in parallel across multiple machines.
Selenium grid allows for distributed testing across multiple machines
Tests are divided into smaller suites and run in parallel on different nodes
Parallel execution reduces test execution time and increases efficiency
Example: Running smoke tests on one node and regression tests on another node simultaneously

Asked in LTIMindtree

Q. How do you remove duplicates from an array?
Use a Set data structure to remove duplicates from an array of strings.
Create a Set from the array to automatically remove duplicates
Convert the Set back to an array to get the unique values

Asked in Enlume Technologies

Q. What is Cypress and what are features of Cypress
Cypress is a JavaScript-based end-to-end testing framework for web applications.
Cypress allows for easy and fast testing of web applications
It has a simple and intuitive API for writing tests
Cypress provides automatic waiting and retrying for elements and network requests
It also has a built-in dashboard for recording and analyzing test results

Asked in Global Gene Corp

Q. Different kinds of testing, What are the important components of Agile, Difference between Re-testing and Regression Testing, Different kinds of waits in Selenium, Basics of Java
Answering questions related to testing and automation using Selenium and Java
Different kinds of testing include unit testing, integration testing, system testing, acceptance testing, and regression testing
Important components of Agile include continuous integration, continuous delivery, and frequent feedback loops
Re-testing is testing the same functionality again after fixing defects, while regression testing is testing the unchanged functionality to ensure it still works
Diff...read more

Asked in NICE

Q. What is Testing Pyramid? What are the different layers in it?
Testing Pyramid is a testing strategy that suggests the right balance of different types of automated tests.
The Testing Pyramid consists of three layers: Unit Tests, Service Tests, and UI Tests.
Unit Tests are at the bottom of the pyramid and focus on testing individual components or functions in isolation.
Service Tests are in the middle layer and focus on testing the interactions between different components or services.
UI Tests are at the top of the pyramid and focus on test...read more

Asked in e-Zest

Q. Write SQL queries to fetch records based on specific conditions.
Use SQL queries to fetch records based on conditions
Use SELECT statement to fetch records
Add WHERE clause to specify conditions
Use operators like =, >, <, etc. to define conditions
Consider using JOIN for fetching records from multiple tables

Asked in Microland

Q. what is spark? what is legacy defect? find the xpath of given example how will you run the 1 test case multiple times in testng? if the some task will take 8 hours but your manager said that you should complete...
read moreSpark is a fast and general-purpose cluster computing system. Legacy defect refers to a known issue in older versions of software. XPath is a way to navigate XML documents. TestNG allows running test cases multiple times. Approach to completing a task in less time involves prioritizing and optimizing.
Spark is a cluster computing system for big data processing.
Legacy defect is a known issue in older versions of software that has not been fixed.
XPath is a language used to navig...read more

Asked in Cognizant

Q. How do you manage frames in Selenium?
Frames in Selenium can be managed using switchTo() method to navigate between frames.
Use driver.switchTo().frame() method to switch to a frame by index, name or WebElement
Use driver.switchTo().defaultContent() method to switch back to the main content
Use driver.switchTo().parentFrame() method to switch to the parent frame

Asked in e-Zest

Q. Explain the difference between smoke, sanity, and regression testing.
Smoke testing is a quick test to check if the build is stable, sanity testing is a subset of regression testing focusing on specific areas, and regression testing is a comprehensive test to ensure no new bugs are introduced.
Smoke testing is a preliminary test to check if the critical functionalities work without major issues after a build is deployed.
Sanity testing is a subset of regression testing that focuses on specific areas or functionalities to ensure they still work af...read more

Asked in Synechron

Q. Why mobile testing is important, how to scroll on phone,Touch Actions class,Selenium4 features,Appium 2.X features, one coding in Java
Mobile testing is important for ensuring the functionality and usability of applications on various devices. Techniques like scrolling and touch actions are essential for testing mobile apps.
Mobile testing ensures that applications work correctly on different devices and screen sizes.
Scrolling on a phone can be done using methods like swipe or scroll actions in automation tools like Appium.
The Touch Actions class in Selenium allows for performing complex touch gestures like t...read more

Asked in LTIMindtree

Q. How do you configure Appium to run tests on iOS or Android devices?
To run tests on iOS or Android devices using Appium, specify the platformName capability in desired capabilities.
Specify platformName capability as 'iOS' for iOS devices and 'Android' for Android devices
Include other necessary desired capabilities like deviceName, platformVersion, appPackage, appActivity, etc.
Example: capabilities.setCapability('platformName', 'iOS');

Asked in DataVisor

Q. Write an SQL query to fetch managers who have at least 5 employees reporting to them.
Use SQL query to fetch managers with at least 5 employees under them
Use GROUP BY clause to group by manager
Use HAVING clause to filter managers with count of employees >= 5
Join manager table with employee table using manager_id

Asked in Infosys

Q. How do you handle windows and frames in Selenium?
Windows and frames can be handled in Selenium using switchTo() method.
Use driver.switchTo().window() to switch between windows.
Use driver.switchTo().frame() to switch between frames.
To switch back to the default content, use driver.switchTo().defaultContent().

Asked in Enlume Technologies

Q. What are custom commands in Cypress?
Custom commands in Cypress are user-defined functions that can be reused across multiple tests.
Custom commands can be defined in the 'commands.js' file in the Cypress support folder.
They can be used to encapsulate complex logic or to simplify repetitive tasks.
Custom commands can be chained with Cypress commands to create more complex test scenarios.
Examples of custom commands include logging in a user, navigating to a specific page, or interacting with a custom UI component.

Asked in Bit Canny Technologies

Q. What is a full join?
Full join is a type of SQL join that returns all the rows from both tables, matching rows from both tables and nulls where there is no match.
Full join is also known as a full outer join.
It is used to combine data from two tables where some of the data may not match.
The result set includes all the rows from both tables, with nulls where there is no match.
Full join is represented by the keyword 'FULL OUTER JOIN' in SQL.
Example: SELECT * FROM table1 FULL OUTER JOIN table2 ON tab...read more

Asked in e-Zest

Q. Explain the status codes used in API testing.
Status codes in API testing indicate the outcome of the request made to the API.
200 - OK: Request was successful
201 - Created: Request resulted in a new resource being created
400 - Bad Request: Request was invalid
401 - Unauthorized: Request requires authentication
404 - Not Found: Resource not found
500 - Internal Server Error: Server encountered an error

Asked in NICE

Q. Given a string s1= Apple. Write code to convert s1 to an array and put the vowels into that array.
Convert string to array and extract vowels into a new array
Iterate through each character in the string
Check if the character is a vowel (a, e, i, o, u)
Add the vowel to a new array of strings
Interview Experiences of Popular Companies





Top Interview Questions for Senior Automation Test Engineer Related Skills



Reviews
Interviews
Salaries
Users

