Automation LMS 24 Interview Questions Flashcards

1
Q

What is Automation Testing?

A

A technique using an automation tool to write and execute tester’s test scripts and cases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the main goal of Automation Testing?

A

To reduce the number of test cases to be run manually and not eliminate Manual Testing altogether.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When will you Automate a Test?

A

Automation in preferred in following cases

  • Repetitive Tasks;
  • Smoke and Sanity Tests;
  • Test with multiple data set;
  • Regression test cases.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to Automate a Test Case (major steps)?

A

Prior to answering this question we have to answer which cases can be automated…

  1. Tasks or Test Cases requiring multiple data sets can be automated;
  2. Automate things which are difficult for humans, for example time sensitive actions requiring accurate timing to capture a state change or certain actions like loading a component with a hundred operations per second;
  3. Certain tasks which require regular setup of environment, for example, are good candidates for automation;
  4. Tasks involving complex calculations candidate for automation;
  5. Regression/Smoke tests are also good candidates for automation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When will you NOT use Automate Testing?

A

One should not automate in following cases.

  • When the Application Under Test changes frequently;
  • One time test cases;
  • Ad Hoc – Random testing.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Selenium?

A

SELENIUM is a free (open-source) automated testing framework used to validate web applications across different browsers and platforms. You can use multiple programming languages like Java, C#, Python etc to create Selenium Test Scripts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Selenium WebDriver

A

Selenium WebDriver is the successor to Selenium RC. Selenium WebDriver accepts commands (sent in Selenese, or via a Client API) and sends them to a browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Cucumber

A

Cucumber is a tool that is based on Behavior Driven Development (BDD) methodology.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the aim of BDD?

A

The main aim of the Behavior Driven Development framework is to make various project roles such as Business Analysts, Quality Assurance, Developers, etc., understand the application without diving deep into the technical aspects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What language is used by Cucumber?

A

Gherkin is the language that is used by the Cucumber tool.

It is a simple English representation of the application behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What keywords does the Gherkin language use?

A

Gherkin language uses several keywords to describe the behavior of applications such as Feature, Scenario, Scenario Outline, Given, When, Then, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is meant by a feature file?

A

A feature file must provide a high-level description of an Application Under Test (AUT)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What Keyword must the first line of a feature file start with?

A

‘Feature’ following the description of the application under test.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can a feature file include multiple scenarios?

A

A feature file may include multiple scenarios within the same file. A feature file has the extension feature.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the various keywords that are used in Cucumber for writing a scenario?

A
  • Given
  • When
  • Then
  • And
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What programming language is used by Cucumber?

A

Cucumber tool provides support for multiple programming languages such as Java, .NET, Ruby etc. It can also be integrated with multiple tools such as Selenium, Capybara etc.

17
Q

What is the purpose of the Step Definition file in Cucumber?

A

A step definition file in Cucumber is used to segregate the feature files from the underlying code.

18
Q

What can each step of the feature file be mapped to?

A

A corresponding method on the Step Definition file.

19
Q

What language are feature files written in?

What language are step definition files written in?

A

While feature files are written in an easily understandable language such as Gherkin.

Step Definition files are written in programming languages such as Java, .NET, Ruby etc.

20
Q

What is an Automation Framework?

A

An integrated system that sets the rules of automation of a specific product.

21
Q

What does the system integrate in an Automation framework.

A

This system integrates the function libraries, test data sources, object details and various reusable modules.

22
Q

Describe your Automation Framework?

A

Programming Language: JavaScript

Test Framework: WebdriverIO for Node.js

Webdriver: Selenium

Behavior-Driven Development Tool: Cucumber

Assertion Library: Chai

Dependency Management: Yarn

Browser: Chrome

Cloud Service: SauceLabs

CI tool: Jenkins

IDE: Microsoft Visual Studio Code