Record a business process test
Relevant for: business process tests or flows
This task describes how to record a business process test.
Recording enables you to create component steps or even a full business process test in your application without the need to manually create separate components and their associated application areas before starting to create steps.
When recording, you perform user actions, create additional components as necessary, and your full business process test is automatically created.
Note: This task is part of a higher-level task. For details, see Create test steps in a business process test.
Create a business process test or business process flow or open an empty business process test/flow.
Note: You cannot record steps into an existing test.
Set recording options
In the Recording Settings pane of the Options dialog box (Tools > Options > BPT Testing tab > Recording Options node), select or clear the following settings as needed:
|Automatically parameterize steps using Business Component Parameters||
Instruct UFT One to create component parameters for each operation recorded and link the step values to these parameters.
|Automatically check in newly recorded components when creating a BPT test||If you are working with a version-controlled ALM project, this instructs UFT One to prompt you to check in all new components after recording.|
|Automatically create snapshot for newly recorded components when recording a BPT test||Instructs UFT One to take a snapshot of the application window when recording a BPT test.|
Set default parameter behavior
In the General pane of the Options dialog box (Tools > Options > BPT Testing tab > General node, select one of the following options in the Auto-parameterization level section:
Parameterize user input only: UFT One will parameterize only those objects where a user performs an action (such as text edits, etc.)
Parameterize all steps:UFT One will parameterize all objects in a given window of an application
Start the test record
Do one of the following:
In the UFT One toolbar, press the Record button .
In the BPT View, click the Record a New Business Process Test or Flow button.
In the New Business Component dialog box, provide the Name, Location, and default Application Area for your component.
Click Add. UFT One is minimized and the Record toolbar is displayed.
Perform steps on your application
Perform user actions on your application. As you perform the steps, UFT One lists the number of user actions performed in the Record Toolbar next to the name of the test being recorded.
Record Toolbar also provides additional features for you to use. For details, see Record a GUI test or component.
Add additional components to the test (optional)
In the Record toolbar, click the Add New Business Component button .
In the New Business Component dialog box, provide a name for the component. (The component is saved in the same location you entered when beginning the recording session.)
Subsequent steps are recorded in the created component.
In the Record Toolbar, press the Stop button . UFT One loads and creates the components, displaying them in the test canvas or grid.
If you selected the option to automatically parameterize objects in the Recording Settings pane of the Options dialog box, the parameters are displayed in the Data pane and in the Parameters tab of the Properties pane.
Note: If you are recording on Mobile browsers, and you press the Cancel button when recording, you cannot start recording again. Instead press the Stop button in the Record toolbar.
If necessary, when prompted, in the Check In dialog box, check in the new components to your version controlled ALM project.