Adding a Standard Output Value
You can create a standard output value from an object property value. When
you run the test, Quick Test retrieves the current value of the property and
enters it in the run-time Data Table as an output value.
To create a standard output value while recording:
- Choose Insert > Output Value > Standard Output
Value.
The mouse pointer turns into a pointing hand.
- Click the object in your application.
If the location you clicked is associated with more than one object, the
Select an Object dialog box opens.
- Select the object for which you want to specify an
output value.
- Click OK.
The Output Value Properties dialog box opens.
- Specify the settings for the output value.
- Click OK to close the Output Value Properties dialog
box.
- An output value step is added to your test tree.
Creating Image Output Values
You can create an image output value from the property value of a Web image.
When you run the test, Quick Test retrieves the current value of the property
and enters it in the run-time Data Table as an output value.
To create an image output value while recording:
- Choose Insert > Output Value > Standard Output
Value .
The mouse pointer turns into a pointing hand.
- Click the image.
- If the location you clicked is associated with more
than one object, the Select an Object dialog box opens.
- Select the Image item you want to specify for an
output value.
- Click OK.
The Image Output Value Properties dialog box opens.
- Specify the settings for the output value.
- Click OK to close the Image Output Value Properties
dialog box.
- An output value step is added to your test.
Creating Table Output Values
You can create a table output value from the contents of a table cell. When
you run the test, Quick Test retrieves the current value of a table cell and
enters it in the run-time Data Table as an output value.
To create a table output value while recording:
- Choose Insert > Output Value > Standard Output
Value. The mouse pointer turns into a pointing hand.
- Click the table. If the location you clicked is
associated with more than one object, the Select an Object dialog box
opens.
Select a Table item and click OK. - The Output Value Properties dialog box opens.
- Specify the settings for the output value.
- Click OK to close the Output Value Properties dialog
box.
- An
output value step is added to your test tree.
Example: Consider the following problem for flight reservation application:
Create a new reservation
and verify the reservation details.
Hint: you need order number to verify the reservation details.
Steps to solve the problem:
1. Create two actions à Create New Order and Open Order.
2. Create an output
value for the order number field in Create New Order Action.
3. Parameterize Order Number in Open Order Action.
No comments:
Post a Comment