Create a custom step configuration that can form the basis of new steps that run on
the server.
시작하기 전에
Role required: atf_test_admin
주: Creating configurations are only supported in the server steps, the UI steps (running in the browser) are not supported. Also, only scripted steps are supported, custom Java-based steps are not supported.
이 태스크 정보
The Automated Test Framework
includes specific types of steps such as Open Form, Set Value, Assert Value and so
forth. With the Step Configurations module, you can create steps
that perform actions you specify. You can only create configurations for steps that run
on the Server. You cannot create configurations for steps that run on the
browser.
프로시저
-
Navigate to .
-
Click New.
The system displays the Test Step Config
form.
-
In the Name field, enter a name for your step
type.
-
Leave Active
checked.
-
Leave Step environment set to Server-Independent.
You can define only step configurations that run on the server and not step configurations that run in the browser.
- 옵션:
In the Category field, select the category to which you want to assign this step.
Categories are used for filtering the step list in the Add Step dialog. For more information, see
Category field example.
- 옵션:
In the Batch Order Constraint
field, choose one of the following values.
-
None: A step based on this configuration can
appear at any point in a test.
-
Start Batch Execution: If this test includes a
batch with this step, this step must be the first in the batch.
-
Run in the middle of an execution: If a test
includes a batch with this step, this step must appear after the first and
before the last step of the batch.
-
Stop Execution: If a test includes a batch with
this step, this step must be the last step in the batch.
-
In the Order field, enter an integer specifying where steps with this configuration appear in the step list on the Add Test Step dialog.
-
In the Template reminder field, enter the instructions you want to appear when this step is included in a test as part of a template.
-
In the HTML description field, enter the text you want to appear when the cursor highlights this step on the Create New Step dialog.
For more information, see the example using the HTML description field in .
주: The next two steps involve writing scripts, which you should wait to complete until you have added input and output variables.
-
In the Description generation script field, add code to the provided template to generate the description assigned to a Test Step record when a step of this type is included in a test.
-
In the Step Execution Script field, add code to the provided template to define the script that executes when a step of this type runs.
The script template provides instructions and examples for working with step inputs, outputs, and step results. For more details on the step execution script, see
Step execution scripts.
-
Click Submit.
The system creates a new test step configuration and returns to the list of test
configurations.
- 옵션:
Add input variables to this step config.
-
Access the step config record.
-
Scroll to the Input Variables tab, then click New.
-
Fill in the required fields for the new variable.
-
Click Submit.
-
Repeat these steps until you have added all the input variables needed.
- 옵션:
Control the order in which input variables appear on the New Step form by editing the values in the Order column for the Input Variables related list.
- 옵션:
Add output variables to this step config.
-
Scroll to the Output Variables tab, then click New.
-
Fill in the required fields for the new variable.
-
Click Submit
-
Repeat these steps until you have added all the output variables needed.