dridhOn

Automation Testing Interview Question and Answers

Automation Testing Interview Question and Answers

Last Updated on Jan 02, 2025, 2k Views

Share

Automation Testing Course

Automation Testing

Automation testing is a full-fledged career nowadays in the software industry. Automation testing professionals work in continuity with the development team to deliver the project on deadlines which has brought several advantages and offers a lucrative career for modern-age professionals. Here are the top 40 Automation Testing Interview Questions you must know before going for your next interview to ace your Automation Testing Interview in one go.

1) What is Automation testing?

Automation Testing uses an automation tool to execute test cases. The main goal of Automation Testing is to reduce the number of test cases to be run manually and not eliminate Manual Testing.

2) When will you automate a test?

Automation is preferred in the following casesRepetitive Tasks.

Regression Testing

Smoke and Sanity Tests.

Test with multiple data sets.

Testing is not recommended for one-off test cases. Usually, the decision on which test cases to automate is based on the ROI (Return on Investment). The more times the automated test is executed, the better the ROI.

3) When will you not Automate testing?

One should not automate in the following cases

When the Application Under Test changes frequently

One-time test cases

Adhoc – Random Testing

Exploratory Testing

Usability tests that generally need manual intervention to check the test results

Test cases with detailed setup requirements to be done before each execution

Test cases that return unpredicted test results

Exclude unplanned test case

4) What are the steps involved in the Automation Process?

In the automation process, the steps involved are

Selecting the Test tool

Define the scope of automation

Planning, design, and development

Test execution

Maintenance

5) What are the points covered while planning the phase of automation?

During the planning phase of automation, things that must be taken into concern are:

Selection of the “right” Automation tool

Selection Automation Framework, if any.

List of in-scope and out-of-scope items for automation.

Test Environment Setup.

Preparing Gantt Chart of Project timelines for test script development & execution.

Identify Test Deliverables.

6) In what condition you can’t use automation testing for the Agile method?

Automation testing is not helpful for agile methods in the following conditions:

When user stories are constantly changing


When an exhaustive level of documentation is required in Agile.

Only suitable for regression tests during agile testing, like continuous integration.

7) What is a test script?

A test script is a code to perform a set of instructions on an application. It is used to verify whether the application is functioning as per the software requirements.

When you run your script, it gives the test results as a pass or fails, which is determined by whether the application works as per the expectations.

8) How to select a good test automation tool?

Wide Test Environment support

Easy to use

Good debugging facility

Robust object identification

Record and Playback

Supports common programming languages for test script creation, for example, Java Image testing abilities

Testing of database

Parameterization

Support multiple automation frameworks

Type of support is available for the tools like documentation, tutorials, training, etc

Cost and budget

Good reporting system

9) Can you tell me some good coding practices while automation?

Here are good automation practices:

Add appropriate comments to explain that coding part.

You should identify the reusable methods and write them in a separate file.

Must follow the language-specific coding conventions.

Store the test data in a separate file.

Run your scripts regularly.

10) What is a Modular Testing framework?

Modular Testing framework is built on the concept of abstraction. In this type of framework, the tester creates scripts for all the application modules under test, and then these scripts are combined in a hierarchical order to create test cases.

11) Data-Driven Testing framework

Data Driven Testing Image

In Data driven testing framework, the input and expected output data corresponding to the input data is stored in a file or database.

The automated script runs the same test steps for multiple data sets. It also allows you to run multiple test cases where only the input data differs, but the steps of execution remain the same.

12) What version control systems do you use?

We use GitHub. Version control helps you to track code changes. It controls the test script source code with a recorded history of changes to simplify the modification process. You may also revert to previous code versions if you make a mistake.

13) What are XPath Axes? Name some of them.

XPath is a syntax that manipulates XML (Extensible Markup Language) data. They help to locate nodes related to those on the tree. Some important XPath Axes are ancestor, child, namespace, parent, etc.

14) How can you speed up an auto test suite?

Applications that require UI testing that interacts with multiple elements can slow down the testing process. It’s better to create a simple test script that speeds up test execution.

15) Is documentation necessary in Automation Testing?

Documentation plays a vital role in Test Automation. You should document all the methods and procedures to ensure their repeatability. Test specifications, designs, code changes, test cases, automation plans, bug reports

16) What types of frameworks are used in software automation testing?

Four types of frameworks used are

Data-driven automation framework

Keyword-driven automation framework

Modular automation framework

Hybrid automation framework

17) Is it possible to achieve 100% automation?

No, it is not possible to automate everything. Achieving 100% automation is difficult as there are some scenarios where a registration page has a captcha or some test cases we don’t execute often. Moreover, automating these test cases will not add value to the automation or bring positive ROI.

18) What is the average number of test cases you have automated per day?

The answer depends on the length and complexity of the test scenario. Generally, a QA tester can automate 2-4 test scenarios daily when the complexity is limited. However, sometimes it might reduce to 1-2 when the complexity is high.

19) What is the scripting standard while performing automation testing?

While writing the scripts for automation, you must consider the following things:

Uniform naming convention.

3 lines of comments for every 10 lines of code.

Adequate indentation.

Robust error handling and recovery scenario.

Use of Frameworks wherever possible.

20) What are the most popular tools for automation testing?

The most popular test tool for automation testing are:

Selenium

UFT.

Rational Robot.