Action represents a particular user activity that is possible in a context. It represents a "verb"- what can be done in a given context.
Creating an Action
1. Navigate to create (+) icon on the top navigation area and click and select Action.
On the Action modal window, under the General Info tab
2. Give a Name and Description to the Action you are creating. Remember the given name should be unique in the project.
3. Select the context where this action belongs to or from where this action will be initiated.
4. Select the destination context. Where this action will lead to.
There can be following situations while deciding on the destination context:
- Change in the context of the test application
if the action leads to a different context, select an appropriate context from the destination drop-down list.
Selecting a specific destination context
- No change in the context of the test application
In some cases you may find that the Action performed doesn't change the context and it resolves to the context on which the Action is performed. In those cases select “Current Context”.
Most commonly, Validation Actions do not alter the state of a context.
Selecting Current Context as the Destination
5. Enter Tags by which you would like to filter, associate and analyze this action.
On the Parameters tab
6. Click on Add New under Input Parameters to add a new Input parameter.
An action input parameter replaces the hard-coded values in test logic with variables, whose values are set in different scopes. This helps in developing Data-driven test scenarios. Learn more about Parameterization.
7. similarly, click on the Add New under Output Parameters to add a new output parameter. An output parameter is defined to parameterize the output value of an action statement defined.
Defining parameters for the action is an optional step at this stage and you can always define it later.
On the Custom Info tab
8. Enter the values in the required fields.
Custom fields allow capturing relevant information about an entity with an intent to serve analysis across the system. Learn more about, working with custom fields