Set run conditions

Relevant for: business process testing

The following steps describe how to set run conditions for the flows and components in a business process test or flow.

Note: This task is part of a higher-level task. For details, see Create and maintain business process tests and flows in UFT One.

Prerequisites

Ensure that the component for which you are setting run conditions has parameters or that the flow containing the component has a parameter.

Back to top

Select the flow or component to set run conditions

Do one of the following:

  • If you are setting run conditions for a flow, in the document pane, select the test containing the flow.

  • If you are setting run conditions for a component, in the document pane, select the business process test or business process flow containing the component.

Back to top

Set On Failure settings

If you are editing a test, you can set On Failure options for all the flows or components included in the test:

  1. In the Solution Explorer or document pane, select the business process test you are editing.

  2. In the document pane, select the flow or component for which to set On Failure settings.

  3. In the Properties pane, open the Properties tab .

  4. In the Properties tab, set the options for the selected flow or component:

    • Continue. Continues the test regardless whether the test passes or fails.

    • Exits. Immediately stops the test and exists the test run.

Note: For versions ALM 12.20 and higher, if you defined a default On failure condition in the component in ALM, UFT One displays the default value.

Back to top

Set run conditions

When you are editing a business process flow or component, you can set additional run options for the components included in the flow:

  1. In the Solution Explorer or the document pane, select the business process test or flow on which you are working.

  2. In the document pane, select the component to which you want to add run conditions.

  3. In the Properties tab in the Properties pane, select the Use run condition option.

  4. In the middle section of the Properties tab, set the condition options:

    • Run if: Indicates what type of parameter (flow or component parameter) and the name of parameter for which a condition must be met

    • Is: the operator for the parameter value

    • Else: Instructs UFT One what to do with the test run if the condition is not met, including:

      Skip to next component and continue The selected component does not run, and the test run continues with the next component in the flow. The component is not displayed in the run results.
      End component run and fail. The component for which the run condition is set does not run, but instead sets the status of the component run as Failed. The flow either continues to the next component or ends, depending on the failure condition set for the component.
      Go To

      UFT One continues to the specified place in the test. You select the location in the Go To: dropdown list.

      The selected flow, component, or group of components must exist in the test after the current component. For example, you cannot go to a component that has already run.

      Note: The GOTO condition is supported only for ALM versions 12.50 patch 1 or higher.

Back to top