What you will learn:
- Incorporating repetitive test logic into loops
- Creating high-level actions
- Refactoring your test lines
- Passing values to actions and receiving return values
- Basic understanding of the TestArchitect user interface
- Familiarity with the TestArchitect test editor
- Essential understanding of TestArchitect repositories, projects, and tests
- Basic understanding of computer programming concepts
Audience: Testers, Automation engineers
Duration: 2 hours
Handling repetitionTests frequently perform the same steps repeatedly, often varying only the input data values. Sets of actions can be used to create control loops to enable such repetitive processing.
Create a test module / test case that reports the sales tax for cars across a range of prices.
Use the control loop actions to create looping, or iteration example.
High-level actions consist of sequences of actions that typically relate to a single function in the application under test.
Refactor test lines to produce tests that are easy to read and maintain.
Refactoring test lines
In this exercise you will refactor your last test case by incorporating the report action line of the last test case into a high-level action.
Actions can return one or more values to the test module or action that called them.
Returning values from actions
In this exercise you will create a new action that performs the same essential work as the report sales tax action.
Summary: What you learned
What you learned in this lesson: