Automation LMS 24 Interview Questions Flashcards
What is Automation Testing?
A technique using an automation tool to write and execute tester’s test scripts and cases.
What is the main goal of Automation Testing?
To reduce the number of test cases to be run manually and not eliminate Manual Testing altogether.
When will you Automate a Test?
Automation in preferred in following cases
- Repetitive Tasks;
- Smoke and Sanity Tests;
- Test with multiple data set;
- Regression test cases.
How to Automate a Test Case (major steps)?
Prior to answering this question we have to answer which cases can be automated…
- Tasks or Test Cases requiring multiple data sets can be automated;
- 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;
- Certain tasks which require regular setup of environment, for example, are good candidates for automation;
- Tasks involving complex calculations candidate for automation;
- Regression/Smoke tests are also good candidates for automation.
When will you NOT use Automate Testing?
One should not automate in following cases.
- When the Application Under Test changes frequently;
- One time test cases;
- Ad Hoc – Random testing.
What is Selenium?
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.
Selenium WebDriver
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.
What is Cucumber
Cucumber is a tool that is based on Behavior Driven Development (BDD) methodology.
What is the aim of BDD?
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.
What language is used by Cucumber?
Gherkin is the language that is used by the Cucumber tool.
It is a simple English representation of the application behavior.
What keywords does the Gherkin language use?
Gherkin language uses several keywords to describe the behavior of applications such as Feature, Scenario, Scenario Outline, Given, When, Then, etc.
What is meant by a feature file?
A feature file must provide a high-level description of an Application Under Test (AUT)
What Keyword must the first line of a feature file start with?
‘Feature’ following the description of the application under test.
Can a feature file include multiple scenarios?
A feature file may include multiple scenarios within the same file. A feature file has the extension feature.
What are the various keywords that are used in Cucumber for writing a scenario?
- Given
- When
- Then
- And