Test Flow

LegiTest ›› Overview ››
Parent Previous Next


Test Flow


A LegiTest Suite organizes all test elements into three scopes. These scopes help divide tests into similar functionality. LegiTest organizes Test Suites into test groups. They manage the Group and Test Level Initialization as well as the the Group and Test Level Teardown steps. Test groups hold all tests with similar functionality and make navigation between tests easier.


Tests contains all elements needed for the preparation, execution, verification and cleanup. A Test holds the Test Initialization, Execution Tracks, Assertions and Test Teardown Steps.



Group Initialization Steps

The Group Initialization executes only once at the beginning the entire test group. This step is the first to run before any tests are actually executed. This step is the first to run before any tests within the group are actually executed. Each test group in a suite has its own Group Initialization Step. This step configures everything needed to prepare the test environment for the group execution.


Group Level Test Initialization Steps

This steps executes once at the beginning of every test in the group. It will run right before the actual test begins executing. Each test group in a suite has its own Group Level Test Initialization step. This step configures everything needed to prepare the test environment before each test execution.


Test Initialization Steps

This step executes once at the beginning of single test. Each test contains its own Test Initialization step.  This step configures unique elements needed to prepare this test for execution.


Executions Tracks

Execution Tracks contain the actual elements that compose the test. Each test can hold any number of tracks. By default, the test will execute as many tracks as the test environment can handle. If they wish, users can modified this behavior to only run a set number of tracks at the same time.


Assertions

Assertions contain test validation that confirms whether a test has passed or failed. Assertions are run immediately after all execution track for the current test has completed. Assertions compares expected data to actual data generated during the execution tracks. The results of these data comparisons will dictate whether the test passes or fails.


Test Teardown Steps

This step executes once at the end of single test. Each test contains its own Test Teardown step.  This step configures unique elements needed to clean the test environment after test execution.


Group Level Test Teardown Steps

This steps executes once at the end of every test in the group. It will run right after the actual test finishes executing. Each test group in a suite has its own Group Level Test Teardown step. This step configures everything needed to clean the test environment after each test completes.


Group Teardown Steps

The Group Teardown executes only once at the end of the entire test group. This step is the last to run after all tests in the test group have executed. Each test group within a suite has its own Group Teardown. This step configures everything needed to clean the test environment once group execution completes.