- Test Steps
- Step Attachments, Test Attachments, and Step Run Attachments
- Step Parameters
- Call a Test
- Copy Step
A test is usually comprised of several steps. The steps describe in detail the validation checks that need to be performed on your application or system.
To add steps to your tests, go to the Steps tab and add the steps one by one. You can either create a step or call steps from a different test using the test ID. Each test step contains the following fields: Name, Description and Expected Results. You can attach a file or link and add a comment to each step or to the entire test. During the run, you will be able to add files and links to the Step Run.
Step Attachments, Test Attachments, and Step Run Attachments
In the test’s general attachment section, you can add attachments that are relevant to the entire test rather than a specific step (ie., system configuration document for the test).
Test step attachments are relevant to a specific step, such as a screenshot of how things should appear. While running, each step of a test run (ie. step-run) will show the test library’s step fields and attachments. During the run, you can add attachments to the step run; for example, to show a log of the run or a screenshot of how things look while running the test.
After saving a test, you can always go back and add, delete or reorder steps, or call steps from a different test. PractiTest even allows you to modify your steps as you run your tests.
Step parameters are a smart way to increase test reusability. Test step parameters allow you to reuse tests and run them in various test instances while changing the parameters/data being run. For example, when testing the same functionality but on different systems such as various OS’ or mobile devices, you can reuse a test rather than creating a new one.
When used in conjunction with the Call a Test feature, you can achieve even more flexibility and reusability. Calling tests with step parameters already defined in them increases QA coverage and enhances efficiency.
Adding Step Parameters to a Test
Go to any test in the Test Library. In the Steps tab, choose to add a new step or update an existing step.
Add step name.
In the Step Name/Description/Expected results field, add the parameter placeholder using double curly brackets.
When beginning to add a parameter and type opening double curly brackets, a parameters dropdown list will appear. Select an existing parameter from the list or type a new parameter inside the curly brackets to create a new parameter.
Add as many steps with parameters as needed, by repeating the steps above.
Step Parameter Settings
After adding parameters to the tests in the test library, you can edit the parameters and add predefined values for each one.
To do so, click on ‘Settings’ -> ‘Step Parameters’. Then click on the small pencil icon in the parameters line to edit an individual parameter.
To define values for the parameter, change the parameter’s format from ‘text’ to ‘list’ and add the values from the ‘Add possible values’ field.
Note: you can define a default value for the parameter and rename it.
Once you have finished editing the parameter, click ‘Save’.
Run a Test With Step Parameters
Please see the instructions here.
Call a Test
When creating new tests or editing existing tests, it is possible to call test steps from other existing tests in the test library. This feature can save time by reusing already well-defined test steps.
Calling Test Steps Into a Test
Go to the Steps tab and click on ‘call a test’.
Call test steps by entering an existing test ID from the test library and clicking “submit”. You can also select “Show tests” and choose test(s) from the pop-up window.
The called test will appear as a link to the original test within your steps tab display.
Save the new test.
A link to this called test will be added to the traceability tab.
You can nest as many called “child” tests under any “parent” test with multiple levels, as seen in the diagram below:
Running Called Tests
Please see the instructions here.
When creating new tests or editing existing tests, it is possible to copy test steps from the same test or other existing tests in the test library. This feature can save time by reusing already well-defined test steps.
Copying Steps From One Test to Another
In the test library, select ‘Create a new test/Edit an existing test’.
If you have added a new test, name it and add relevant information in the custom fields, then go to the Steps tab. Instead of manually adding a new step, select “Copy step here“.
Copy test steps from a test by entering its test ID and Step number and clicking “Submit”. You can also select “Show Tests”, which will open a pop-up window with all tests (including the existing test, if you saved it). Here you can expand each test to choose the test step to copy to your test.
The copied step will appear within your steps tab with all information including attachments.
When running your test, the step will appear as usual.