Test Automation Basics Flashcards

1
Q

What is Test Automation?

A

The use of software to perform or support test activities, e.g., test management, test design, test execution and results checking.

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

What is Test Automation framework?

A

A tool that provides an environment for test automation. It usually includes a test harness and test libraries.

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

What is Test harness?

A

A test environment comprised of stubs and drivers needed to execute a test.

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

Where using Test Automation is effective?

A
~ Regression testing
~ Multi-environment testing
~ Configuration testing
~ Combinatorial testing
~ Unit testing
~ Some cases of integration testing
~ Basic security testing
~ Classic well-automated areas
~ Performance testing
~ Smoke for large systems
~ Applications without human interface
~ Technical and low-level operations
~ Long routine operations
~ Standard functionality
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What the automation tool based on the Record and Playback Technology does?

A

~ Records all interactions with application under test
~ Presents the recording in some script language
~ Allows a tester to edit and improve the script
~ Executes the script and logs the results

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

Pros for using the Record and Playback technology

A

~ Easy to learn
~ Quick test skeleton creation
~ Auto-gathering of technical details
~ Routine actions auto-recording

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

Cons for using the Record and Playback technology

A

~ No “ifs”, “cycles”, “subroutines”
~ EVERY action is recorded
~ Hard coding
~ Meaningless variable names

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

What is a Selenium IDE?

A

An integrated development environment for Selenium scripts. It is implemented as a Chrome and Firefox extension, and allows you to record, edit and debug tests.

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

List main types of Selenium IDE commands

A

~ Actions
~ Accessors
~ Asserions
~ Flow operators

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

What do “Action” commands do?

A

Manipulate the state of the application (like “click this link” and “select that option”). If an action fails, or has an error, the execution of the current test is stopped.

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

What do “Accessors” commands do?

A

Examine the state of the application and store the results in variables, e.g. “storeTitle”. They are also used to automatically generate Assertions.

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

What do “Assertions” commands do?

A

Are like Accessors, but verify that the state of the application conforms to what is expected (e.g., “make sure the page title is X” and “verify that this checkbox is checked”).

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

What do “Flow operators” commands do?

A

Allow to use such common programming operators as “if”, “while”, etc.

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

“Assertions” consist mainly from two specific commands, “assert” and “verify”. Name the difference between them and where better to use one or another command.

A

When an “assert” fails, the test is aborted. Useful to check some major condition, failure of which leaves other actions meaningless.

When a “verify” fails, the test will continue execution, logging the failure. Useful to check multiple independent conditions.

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

What types of locators does the Selenium IDE supports?

A

~ Context-insensitive

~ Context-sensitive

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

List examples of context-insensitive locator types and what are they based on

A
~ id
~ name
~ linkText
~ partialLinkText
Based on elements attributes values.
17
Q

List examples of context-sensitive locator types and what are they based on

A

~ css
~ xpath
Based on document structure