Creating Business Process Test Steps
Relevant for: business process tests
After you create the structure of your business process test or flow, you must then add test steps inside each component. These test steps perform user actions on your application and actually test your application.
Create object repositories
To create test steps, you must have test objects. These test objects are saved in object repositories which are then associated with the component (if you record the test steps) or the component's application area.
Add test objects to an object repository:
In a component's local object repository: Using the Capture toolbar, scan all the objects in your application or in a specified area of your application. UFT saves these objects to the component's local object repository and the test objects are available for use in the associated component.
For details on how to capture test objects from your application, see Add test objects to a component with Capture.
In a shared object repository: In the Object Repository Manager, learn the objects in your application. Then, the shared object repositories is associated with one or more application areas.
For more detail on creating shared object repositories, see Test Objects in Object Repositories.
Add object repositories to your application areas
In order for the individual components to access the test objects, the object repositories containing the objects must be included in an application area. Once you associate the object repository with a application area and the application area with a component, you can see the test objects in the Toolbox pane and use the objects in test steps.
For details on how to associate an object repository with your application area, see Add object repositories to an application area.
Add test steps to the component
After you have the test objects available to use in your component's steps, you can add the test steps to the component:
- By recording: You can use UFT's recording functionality to record user actions on the application. UFT then turns these actions into test steps, including the test object on which the action was performed, the action (method), and any parameters of the action (such as the location on the screen where the action was performed).
- Manually: You can manually add test objects to the component by dragging them from the Toolbox pane, selecting them from the list of available objects in the Keyword View, or adding statements in the Editor.
Enhance your component's test steps
In addition to adding simple test steps that you perform on your application's objects, you can add additional types of steps that extend the test:
- Checkpoints: Checkpoint steps check the state of your application or its objects in the course of the test run. For additional details on checkpoints, see Checkpoints in GUI Testing.
- Functions: Function steps enable you to run a custom process within the test progress. For additional details on functions, see User-Defined Functions.
- Output values: Output values enable you to output a property from a test object in order to use this value in other steps. For additional details on output values, see Output Values in GUI Testing.