Automation Tester

100+ Automation Tester Interview Questions and Answers

Updated 3 Jul 2025

Asked in EPAM Systems

1w ago

Q. What does CI/CD mean?

Ans.

CI/CD stands for Continuous Integration/Continuous Deployment. It is a software development practice that enables frequent and automated code integration, testing, and deployment.

  • CI/CD is a set of practices and tools that aim to automate the software development process.

  • Continuous Integration involves regularly merging code changes into a shared repository and running automated tests to detect integration issues.

  • Continuous Deployment focuses on automating the release and depl...read more

Asked in LTIMindtree

1w ago

Q. What are Desired Capabilities?

Ans.

Desired Capabilities are a set of key-value pairs used to configure the WebDriver browser during test automation.

  • Used to set properties for WebDriver browser

  • Can be used to configure browser settings like browser name, version, platform, etc.

  • Helps in customizing the behavior of the browser during automation tests

2w ago

Q. How do you perform mouse actions?

Ans.

Mouse actions can be performed using Selenium WebDriver by using Actions class

  • Create an instance of Actions class

  • Use methods like moveToElement, click, doubleClick, contextClick, dragAndDrop, etc.

  • Perform the desired action by calling the respective method on the Actions object

Asked in GS Lab

2d ago

Q. Given an array of integers, find the second largest element.

Ans.

Find the second largest element in an array of strings.

  • Convert the strings to integers for comparison.

  • Sort the array in descending order.

  • Return the second element in the sorted array.

Are these interview questions helpful?

Asked in INDIUM

2w ago

Q. How do you perform parallel execution?

Ans.

Parallel execution can be achieved by running multiple test cases simultaneously to save time and increase efficiency.

  • Use test automation frameworks like TestNG or JUnit to run tests in parallel

  • Configure test suites to run in parallel using tools like Selenium Grid

  • Leverage cloud-based testing platforms for parallel execution

  • Use tools like Jenkins to schedule and execute tests in parallel

Asked in INDIUM

4d ago

Q. How do you run Playwright tests?

Ans.

To run playwright test, use the 'npx playwright test' command in the terminal.

  • Open the terminal

  • Navigate to the directory where your test files are located

  • Run the command 'npx playwright test' to execute the tests

Automation Tester Jobs

Capgemini logo
Capgemini is hiring For Automation tester 4-9 years
Capgemini
3.7
Hyderabad / Secunderabad
Capgemini Technology Services India Limited logo
Automation Tester-Selenium 3-6 years
Capgemini Technology Services India Limited
3.7
₹ 4 L/yr - ₹ 10 L/yr
(AmbitionBox estimate)
Pune
Capgemini logo
Automation Tester (Java + Selenium + BDD Cucumber + API Rest Assured) 6-8 years
Capgemini
3.7
Hyderabad / Secunderabad

Asked in Cognizant

2w ago

Q. What is hard assert?

Ans.

Hard assert is a type of assertion that stops the test execution immediately when it fails.

  • Hard assert is used to validate critical functionality of the application.

  • It is also known as 'assert' or 'assertion'.

  • It is used to check if the expected result matches the actual result.

  • If the assertion fails, the test execution stops immediately and the test case is marked as failed.

  • Hard assert is useful in identifying the root cause of the failure quickly.

Asked in Infosys

1d ago

Q. What are priority and severity?

Ans.

Priority and severity are used to classify the impact and importance of a defect in software testing.

  • Priority determines the order in which defects should be fixed, based on business needs.

  • Severity indicates the impact of a defect on the system or users.

  • Priority is usually set by the product owner or business stakeholders.

  • Severity is typically determined by the testing team based on the impact on functionality.

  • Examples: A critical defect in payment processing would have high ...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
2w ago

Q. How do you read a file from Excel?

Ans.

To read a file from Excel, you can use libraries like Apache POI or Openpyxl in Java or Python respectively.

  • Use Apache POI library in Java to read Excel files

  • Use Openpyxl library in Python to read Excel files

  • Identify the file path and sheet name to read specific data

  • Use appropriate methods like getRow() and getCell() to access data

Asked in TCS

1w ago

Q. Explain your Cucumber framework.

Ans.

Cucumber framework is a BDD tool that allows automation testing using plain English syntax.

  • Cucumber framework uses Gherkin syntax to write test scenarios in plain English

  • It allows collaboration between technical and non-technical team members

  • Cucumber integrates with various programming languages like Java, Ruby, etc.

  • It supports parallel execution of test scenarios

  • Cucumber generates detailed reports for test results

Q. Given a string, find the unique characters.

Ans.

To find unique characters from a string, we can iterate through the string and store each character in a set to check for uniqueness.

  • Iterate through the string and store each character in a set

  • Check if the character already exists in the set, if not add it

  • Return the set of unique characters

Asked in TCS

1w ago

Q. What is Selenium?

Ans.

Selenium is a popular open-source automation testing tool used for web application testing.

  • Selenium supports multiple programming languages like Java, Python, C#, etc.

  • It allows testers to write test scripts in a variety of programming languages.

  • Selenium can automate web browsers and simulate user interactions.

  • It can be integrated with testing frameworks like TestNG and JUnit.

  • Selenium Grid allows for parallel test execution on different browsers and operating systems.

Asked in Google

1w ago

Q. What is TestNG?

Ans.

TestNG is a testing framework for Java that supports various testing levels like unit, functional, integration, etc.

  • TestNG allows for easy configuration of test cases using annotations like @Test, @BeforeSuite, @AfterSuite, etc.

  • It supports parallel execution of test cases, grouping of test methods, and generation of test reports.

  • TestNG provides features like data-driven testing, parameterization, and dependency management.

  • Example: @Test annotation is used to mark a method as ...read more

Asked in Barclays

4d ago

Q. Write a Selenium program to handle alerts.

Ans.

To handle alerts in Selenium, use the Alert interface methods like accept(), dismiss(), getText(), and sendKeys().

  • Use driver.switchTo().alert() to switch to the alert

  • Use accept() method to click on OK button in the alert

  • Use dismiss() method to click on Cancel button in the alert

  • Use getText() method to get the text present in the alert

  • Use sendKeys() method to enter text in the alert input box

Asked in IBM

1w ago

Q. Explain your project framework.

Ans.

Our project framework is based on the Page Object Model design pattern, using Selenium WebDriver and TestNG for automation testing.

  • Page Object Model design pattern is used to create separate classes for each web page, making the code more organized and maintainable.

  • Selenium WebDriver is used for interacting with web elements and performing actions on the web pages.

  • TestNG is used for test case management, grouping, and reporting.

  • We also use Maven for project management and dep...read more

Asked in Accenture

1w ago

Q. Write a Merge Sort program.

Ans.

Merge Sort is a divide and conquer algorithm that divides the input array into two halves, sorts them, and then merges them back together.

  • Divide the array into two halves recursively

  • Sort each half using Merge Sort recursively

  • Merge the sorted halves back together

Asked in Wipro

2w ago

Q. What is RemoteWebDriver?

Ans.

RemoteWebDriver is a class in Selenium WebDriver that allows you to execute test cases on a remote machine.

  • RemoteWebDriver is a subclass of WebDriver interface in Selenium.

  • It allows you to control the browser on a remote machine through the use of a server.

  • You can use RemoteWebDriver to run tests on different browsers and operating systems.

  • Example: RemoteWebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), DesiredCapabilities.chrome());

Asked in ZNetLive

1w ago

Q. How do you use Excel sheets in automation testing?

Ans.

Excel is a powerful spreadsheet application used for data organization, analysis, and visualization through various features.

  • Data Organization: Excel allows users to create tables to organize data efficiently, such as sales records or inventory lists.

  • Formulas and Functions: Users can perform calculations using built-in functions like SUM(), AVERAGE(), and VLOOKUP() to analyze data.

  • Charts and Graphs: Excel provides tools to create visual representations of data, such as bar ch...read more

Asked in Capgemini

1w ago

Q. What are Hooks in BDD?

Ans.

Hooks in BDD are special methods that allow for setup and teardown actions before and after scenarios in test automation.

  • Hooks are used to perform actions before and after scenarios in BDD tests.

  • They can be used for setup (Before) and teardown (After) actions.

  • Hooks help in reducing code duplication and improving test maintenance.

  • Examples include setting up test data before a scenario and cleaning up resources after a scenario.

1w ago

Q. What is API testing?

Ans.

API testing is a type of software testing that involves testing APIs directly to ensure they meet functionality, reliability, performance, and security requirements.

  • API testing involves testing the functionality, reliability, performance, and security of APIs.

  • It focuses on verifying the communication and data exchange between different software systems.

  • API testing can be done at different levels such as unit testing, integration testing, and end-to-end testing.

  • Tools like Post...read more

Asked in Rakuten

1w ago

Q. Explain the usage of the TestNG Framework.

Ans.

TestNG is a testing framework used for automated testing in Java.

  • TestNG allows for easy configuration of test cases using annotations.

  • It supports parallel execution of test cases.

  • TestNG provides reporting and logging features for test results.

  • It allows for grouping of test cases for better organization.

  • TestNG supports data-driven testing using data providers.

Asked in EPAM Systems

2w ago

Q. Have you used Java streams?

Ans.

Yes, I have used Java streams for processing collections in a functional style, enhancing code readability and efficiency.

  • Streams allow for functional-style operations on collections, such as filtering and mapping.

  • Example: List<String> names = Arrays.asList("Alice", "Bob", "Charlie"); List<String> filteredNames = names.stream().filter(name -> name.startsWith("A")).collect(Collectors.toList());

  • Streams support parallel processing, which can improve performance on large datasets...read more

Asked in EPAM Systems

5d ago

Q. How did you implement loggers?

Ans.

Implemented loggers using Log4j for detailed tracking of test execution and error handling in automation testing.

  • Configured Log4j in the project by adding the necessary dependencies in the build file.

  • Created a logger instance in each test class using: 'private static final Logger logger = Logger.getLogger(ClassName.class);'.

  • Used different logging levels (INFO, DEBUG, ERROR) to categorize log messages based on severity.

  • Logged important events, such as test start and end, using...read more

Asked in Senco Gold

2w ago

Q. Tell me about yourself.

Ans.

I am an experienced Automation Tester with a strong background in software testing and a passion for quality assurance.

  • Over 5 years of experience in automation testing using tools like Selenium and TestNG.

  • Proficient in programming languages such as Java and Python for writing test scripts.

  • Experience in developing and maintaining test automation frameworks.

  • Worked on projects in Agile environments, collaborating closely with developers and product owners.

  • Implemented CI/CD pipel...read more

Asked in Incedo

6d ago

Q. Given a string s, return true if it is a palindrome, or false otherwise.

Ans.

A palindrome is a string that reads the same forwards and backwards, like 'radar' or 'level'.

  • A simple way to check for a palindrome is to reverse the string and compare it to the original.

  • Example: 'madam' reversed is 'madam', so it is a palindrome.

  • Another example: 'hello' reversed is 'olleh', so it is not a palindrome.

  • Palindromes can also be phrases, ignoring spaces and punctuation, e.g., 'A man, a plan, a canal, Panama!'

3d ago

Q. What is the difference between Abstraction and Interface?

Ans.

Abstraction is hiding the implementation details while Interface is a contract that defines the methods that a class must implement.

  • Abstraction focuses on what an object does, while Interface focuses on what an object is.

  • Abstraction can be achieved through abstract classes in Java, while Interface is implemented using the 'implements' keyword.

  • Abstraction allows for code reusability and flexibility, while Interface enforces a specific set of methods that must be implemented.

  • An...read more

Asked in Infosys

1w ago

Q. How would you find repeated words in a sentence?

Ans.

Use a hash map to find repeated words in a sentence.

  • Split the sentence into words using space as delimiter

  • Create a hash map to store word frequencies

  • Iterate through the words and update the frequencies in the hash map

  • Identify words with frequency greater than 1 as repeated words

Asked in Capgemini

4d ago

Q. What are the different exceptions in Selenium?

Ans.

Different exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, StaleElementReferenceException, TimeoutException, and WebDriverException.

  • NoSuchElementException: Thrown when an element could not be found in the DOM.

  • ElementNotVisibleException: Thrown when an element is present in the DOM but not visible.

  • StaleElementReferenceException: Thrown when the element is no longer attached to the DOM.

  • TimeoutException: Thrown when a command does not complete i...read more

Asked in Qualitest

1w ago

Q. Explain the defect life cycle.

Ans.

Defect life cycle is the process of identifying, reporting, fixing, retesting, and closing defects in software development.

  • Defect identification: Defects are identified through testing or user feedback.

  • Defect reporting: Defects are reported in a defect tracking tool with details like steps to reproduce, severity, and priority.

  • Defect fixing: Developers fix the reported defects based on the information provided.

  • Defect retesting: Testers verify that the fixed defects are indeed ...read more

Asked in TCS iON

3d ago

Q. Write a Java program to perform string manipulation.

Ans.

This question tests your ability to manipulate strings in Java, focusing on common operations and algorithms.

  • Use String methods like length(), charAt(), and substring() for basic operations. Example: String str = 'Hello'; str.charAt(0) returns 'H'.

  • Utilize StringBuilder for mutable strings, which is more efficient for concatenation. Example: StringBuilder sb = new StringBuilder(); sb.append('Hello');

  • Explore common algorithms like palindrome checking. Example: 'madam' is a pali...read more

Previous
1
2
3
4
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.8
 • 8.6k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Automation Tester Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits