Testing Frameworks Flashcards

1
Q

What is a testing framework?

A

A testing framework, a.k.a testing automation framework is an execution environment for automated tests.

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

What are the purposes of test automation?

A
  1. It controls test execution including ordering and filtering tests based on criteria.
  2. It avoids repetitive tasks that are inherent with manual test execution.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does a testing framework do?

A
  1. Defines how assertions are defined, which promotes maintainability.
  2. Controls and interacts with the tested application.
  3. Executes tests.
  4. Reports results including both individual and aggregate results.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are test framework assumptions?

A
  1. What responsibilities are being delegated and how.

2. Focus of the developer should be on writing tests – not maintaining supported software.

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

What are test framework concepts?

A
  1. Structural consistency
  2. Tests – what a test does
  3. Results – a collection of successes and failures for analysis, and how to report
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some of the test framework tools?

A
  1. Environment setup – both around the individual tests and groups of tests.
  2. Application control – selectively starting and stopping parts of it.
  3. Test data (some frameworks) – specify test ranges or external resources.
  4. Execution control – a subset of tests or setting thresholds of acceptable failure or duration.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why use a testing framework?

A
  1. Lower maintenance costs
  2. Update tests, not the framework
  3. Reusability
  4. Delegate responsibility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the four phases of testing frameworks?

A
  1. Setup
  2. Execution
  3. Validation
  4. Cleanup
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the ‘setup’ phase of a testing framework?

A

It’s the first phase thereof – the application is prepared for testing (may be as simple as importing a module), dependencies are replaced, and test data is prepared if it’s needed.

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

What is the ‘execution’ phase of a testing framework?

A

It’s the second phase thereof – the target behavior is performed and the output is captured including the response from an API and other sources.

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

What is the ‘validation’ phase of a testing framework?

A

It’s the third phase thereof – the expected result is compared with the actual to ensure correctness. This is when the assertions are used to compare the result with whatever was expected. The testing framework collects the results for reporting.

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

What is the ‘validation’ phase of a testing framework?

A

It’s the fourth and last phase thereof – the application state is restored in order to allow other tests to run without interference. Cleanup is only needed if there’s something that needs to be restored.

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