Create and maintain business process tests and flows in UFT One

Relevant for: business process tests and flows

This task describes the high-level steps on how to create, maintain, and run business process tests and flows in UFT One.

Prerequisites

  • Load the necessary add-ins in the Add-in Manager on UFT One startup.
  • Connect to an ALM server and project.

Back to top

Create application areas for each area of your application

Before creating tests and their components, create application areas for each area of your application. The application area contains the object repositories with the test objects, function libraries, and specific settings to use for the component.

  1. Do one of the following:

    • In the toolbar, click the New button down arrow and select New Application Area.
    • In the BPT View, click the Add a New Application Area button.
  2. In the New Application Area dialog box, navigate to the directory in your ALM project in which you want to save the application area and provide a name for the application area.
  3. Click Create. UFT One adds the application area to your ALM project and opens the application area in the document pane.

Back to top

Create components

Components make up the building blocks of a business process test. Therefore, before creating the business process tests, you must create the individual components.

Note: If you are recording the steps in your test, you do not need to create components before beginning to record. For details on how to add components to the test by recording, see Add components to business process tests and flows below.

  1. In the toolbar, click the New button down arrow and select New Business Component.
  2. In the New Business Component dialog box, select the type of component: Keyword GUI or Scripted GUI.
  3. In the New Business Component dialog box, provide a Name and Location for the new component.
  4. In the Application Area field, click the Browse button and navigate to an application area to use with your component.
  5. Click Create. UFT One opens the new component in the document pane.

Back to top

Add components to business process tests and flows

Your business process test consists of components, groups of components, or business process flows. In order to run a business process test, you must build the test with its components.

From the Toolbox pane
  1. Open the Toolbox pane.
  2. Under the Components tree, expand the nodes and navigate to the component or flow you want to add.
  3. Double-click or drag and drop the component to the test grid or canvas.
  4. Order the items in your test or flow as needed by dragging and dropping the individual components or using the arrow buttons in the BPT toolbar.
While recording
  1. In the toolbar, click the Record button .
  2. In the New Business Component dialog box, specify a Name, Location, and default Application Area for the test.
  3. Record user actions on your application.
  4. As your record, in the Record toolbar, click the New Business Component button .
  5. In the New Business Component dialog box, specify the name of the new component. Components added during recording are saved in the same location specified in the beginning of the recording session.
  6. When you are finished recording, click the Stop button . UFT One adds all the recording components to the test with the recording steps (from the steps you performed on your application).

Back to top

Add steps to your component

For details, see Create test steps in a business process test.

Back to top

Group components and flows

In the document pane (grid view or canvas view), select the components or flows you want to group, and in the toolbar, click Group .

Note: When iterating groups, all items to be included in the group must have the same number of iterations, or an error message is displayed when you group the items.

Back to top

Add structure to your test with branches

Add additional structure to your business process test using branches and branch conditions. These are helpful when your app has a dynamic functionality and interface, or the common user flow is non-linear.

For details, see Use BPT branches.

Back to top

Use parameters in your test

For details, see Use data in a business process test

Default values for component or flow parameters are used during the run session, if no other value is supplied.

Back to top

Iterate components and flows

By default, each component or flow you add to your test has a single iteration. If you need to run specific components multiple times, you can add iterations for these components and specify different values for the component parameters in each iteration.

For details on defining iterations and parameter values for the iterations, see Add iterations for a component or flow and Set data values for the parameters for each iteration.

Back to top

Add a test configuration

You can add test configurations to your test to enable you to run the test with varying sets of data. For details, see Set up and run test configurations.

Back to top

Debug and run your test

To debug a test or component

Insert breakpoints in specific components or flows in your test, and then run your test. The run session stops at each breakpoint.

If you run a BPT test from the ALM Test Plan module or from UFT One, UFT One stops the test at all breakpoints in both Debug and Normal modes. However, before running the BPT test, you must open the business components with the breakpoints and add them to the solution in UFT One.

To run your test:

In the toolbar, click the Run button .

  • Before running a test from ALM, you must enable the Allow other Micro Focus products to run tests and components option in the Test Runs pane (Tools > Options > GUI Testing tab > Test Runs node)
  • For improved performance when running business process tests or flows, UFT One creates and runs a hosting test, named Test Runtime. The Test Runtime test is recreated each time the test or flow runs, and is not saved with the run.

Back to top

View the run results

After the business process test run is complete, by default, the run results open. You can choose to display them in the Run Results Viewer or as an HTML-based report:

  1. In the Run Sessions pane of the Options dialog box (Tools > Options > General tab > Run Sessions node), select the report format you want: HTML Report or Run Results Viewer Report.
  2. Run your test.

The results are displayed in the document pane (for a HTML report) or in the Run Results Viewer.

Note: You can view the report in HTML format only when your business process test is stored in an ALM server running version 12.50.

Back to top