Automation Testing interview questions

Ratings:
(4)
Views:215
Banner-Img
  • Share this blog:

Automation Testing Interview Questions

Following are some of the most frequently asked Automation Testing interview questions in the interview, here are the answers for them.

What Are The Criteria For Selecting A Test Case For Automation?

We recommend considering the following points for automating a test case.

-Determine the execution frequency of the test case. Do you run it often for every new build or once with large input? -Find out if automating it would save you time that you can devote to exploratory testing. -Is the test case critical for business or does it cover an end-to-end scenario? -Make sure analyzing the result of an automated test should not exceed the time it used to take during manual execution. Otherwise, it’ll lose its viability for automation. -Do consider the likelihood of the test catching defects. -Could it be a blocker for a major feature or functionality which is critical to business? If the answer is yes, then make sure to it get automated and passed in every build.

What is Automation Testing?

Test Automation is a process of automating the manual process to test the application/system under test. Automation testing involves use to a separate testing tool which lets you create test scripts which can be executed repeatedly and doesn’t require any manual intervention.

What are the testing types that can be supported by Selenium?

Selenium supports the following types of testing:

-Functional Testing

-Regression Testing

What is Automation?

Automation is any action which can reduce human efforts.

Can you achieve 100% automation?

100% automation would be difficult to achieve because there would be many edge test cases and some cases which are executed seldom. Automating these cases which are not executed that often will not add value to the automated suite.

What is a framework?

A framework is a set of structure of the entire automation suit. It is also a guideline, if followed can result in a structure which is easy to maintain and enhance. These guidelines include:

Coding standards

Handling the test data

Maintaining and handling the elements (object repository in QTP)

Handling of environment files and properties file

Reporting of data

Handling logs

Where you maintain information like URL, login, password?

This information should always be maintained in a separate file.

Can you tell some good coding practices while automation?

Some of the good coding practices include:

-Add appropriate comments

-Identify the reusable methods and write it in separate file

-Follow the language specific coding conventions

-Maintain the test data in a separate file

-Run your scripts regularly

 How do you select which automation tool is best suited for you?

Selecting the automation tool depends upon various factors like:

-Scope of the application which we want to automate

-Management overhead like cost and budget

-Time to learn and implement the tool

-Type of support available for the tool.

-Limitation of the tool

What do you think holds testers back to do automation? Is there a way to overcome it?

The major hurdle for testers is to learn programming / coding when they want to automate. Since testers do not code, adapting to coding is a bit challenging for testers. We can overcome it by:

-Collaborating with developers when automating

-Considering that automation is the responsibility of the whole team and not only of the testers

-Giving a dedicated time and focus on automation.

-Getting proper management support.

You can save these automation testing interview questions as pdf and print for further reading.

 Any kind of test which you thing should not be automated?

-Test which are seldom executed

-Exploratory testing

-Usability testing

-Test which are executed fairly quickly when done manually

Can WebDriver test Mobile applications?

WebDriver cannot test Mobile applications. WebDriver is a web based testing tool, therefore applications on the mobile browsers can be tested.

What is Object Repository? How can we create Object Repository in Selenium?

Object Repository is a term used to refer to the collection of web elements belonging to Application Under Test (AUT) along with their locator values. Thus, whenever the element is required within the script, the locator value can be populated from the Object Repository. Object Repository is used to store locators in a centralized location instead of hard coding them within the scripts.

In Selenium, objects can be stored in an excel sheet which can be populated inside the script whenever required.

Can captcha be automated?

No, captcha and bar code reader cannot be automated.

On what basis you can map the success of automation testing?

By following criteria, the success of automation testing can be mapped

-Defect Detection Ratio

-Automation execution time and time savings to release the product

-Reduction in Labour & other costs

What are the most popular tools for automation testing?

The most popular test tool for automation testing are

-QTP (HP UFT)

-Rational Robot

-Selenium

What are the types of the framework used in software automation testing?

In software automation testing four types of framework used are

-Data-driven automation framework

-Keyword driven automation framework

-Modular automation framework

-Hybrid automation framework

What is the scripting standard while performing automation testing?

While writing the scripts for automation, you must consider 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

What are the primary features of good automation tool?

-Test Environment support and easy to use

-Good debugging facility

-Robust object identification

-Object and Image testing abilities

-Object identification

-Testing of database

-Support multiple frameworks

What are the steps involved in the Automation Process?

In the automation process, steps involved are

-Selecting the Test tool

-Define scope of automation

-Planning, design, and development

-Test execution

-Maintenance

 When will you not automate testing?

One should not automate in following cases

-When the Application Under Test changes frequently

-One time test cases

-Adhoc – Random testing

What are the advantages of Automation framework?

Advantage of Test Automation framework

-Reusability of code

-Maximum coverage

-Recovery scenario

-Low cost maintenance

-Minimal manual intervention

-Easy Reporting

What are Junit annotations?

Following are the Junit Annotations:

@Test: Annotation lets the system know that the method annotated as @Test is a test method. There can be multiple test methods in a single test script.

@Before: Method annotated as @Before lets the system know that this method shall be executed every time before each of the test method.

@After: Method annotated as @After lets the system know that this method shall be executed every time after each of the test method.

@BeforeClass: Method annotated as @BeforeClass lets the system know that this method shall be executed once before any of the test method.

@AfterClass: Method annotated as @AfterClass lets the system know that this method shall be executed once after any of the test method.

@Ignore: Method annotated as @Ignore lets the system know that this method shall not be executed.

What is Junit?

Junit is a unit testing framework introduced by Apache. Junit is based on Java.

How can we handle windows based pop up?

Selenium is an automation testing tool which supports only web application testing, that means, it doesn’t support testing of windows based applications. However Selenium alone can’t help the situation but along with some third party intervention, this problem can be overcome. There are several third party tools available for handling window based pop ups along with the selenium like AutoIT, Robot class etc.

You liked the article?

Like : 0

Vote for difficulty

Current difficulty (Avg): Medium

Recommended Courses

1/15

About Author
Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox