Setting up parameters in statements

Statement is the basic building block in action logic. Each statement accomplishes a certain interaction, verification or other command on the test application.

Depending on the nature of statement, you may need to furnish some information to make it complete. For example, if your statement needs to type some text in an input field, you will need to provide the following information.

What text you want to enter? (text to enter)

In which field do you want to enter the text? (field name)

These 2 are called Parameters for the statement. In the following statement, ORD (text to enter) and Origin (field name) are the values for these parameters.

ORD is a data parameter, while Origin is an element parameter.

Element parameter should be selected from the Element Repository (could be abstract or view based).

Values you enter for data parameters need not always be hard-coded literals. Depending on how your Action is laid out from the modularity and re-usability perspective, accelQ provides multiple options.

Following types of parameters are supported in Action logic:

Literal text

Action Parameters

Global Parameters

Local Variables (available only if any local variables already exist in the action logic)

You can setup a parameter types either while you build a new statement or you can update it for an existing statement.

Selecting parameter type for a new statement

Select appropriate parameter type from the list and, if the selection is not a "literal", select the name of Action or Global parameter in the subsequent list.

Modifying parameter type for an existing statement

Click on the icon to the left of the current parameter value (ORD) to bring up the parameter types list.