Log |
You can insert a custom log statement in a test as a step. The inserted log
statement is printed in the Console window and the
Functional report. For example, you can add a custom statement to demarcate
the test steps related to order generation, user creation, or report
generation in an application or you can use a log statement to display the
value of a variable. |
Perform the following steps:
- Drag and drop the Log element under any test step
as required.
- Click the Log step.
The step details pane is
displayed.
- Enter a custom message in the Log statement text
box.
|
Pause |
You can add Pause as a step in the recorded test for a specified duration.
You can specify the pause duration in milliseconds, seconds, minutes, or
hours. |
Perform the following steps:
- Drag and drop the Pause element under any test step
as required.
- Click the Pause step.
The step details pane is
displayed.
- Specify the amount of time that the step must pause in
Duration.
- Select the unit of time for the timeout in
Unit.
Alternatively, you can select the
Code checkbox to enter the time and unit in the
Duration text box.
- Optional: Enter a message to indicate the reason for the pause in
the Note text box.
|
Verify |
You can verify the property such as content, type, tagname, id, xpath,
name, and value of a UI object. When you run the test, Test Hub compares the
property of the object that was set in the recorded test with the property of
the object during the playback. This comparison helps determine if any changes
have occurred in the application, either intentionally or unintentionally.
|
Perform the following steps:
- Drag and drop the Verify element under any test
step as required.
- Click the Verify step.
The step details pane is
displayed.
- Select an object to be verified from the list in UI
Object.
- Select an identifier such as Content, Xpath, or Id of the object from the
list.
- Click +Add Row to provide values to be verified
under Verification Points.
- Enter the property name and value to be verified in the newly added
row.
Alternatively, you can drag and drop a Property-value pair from the
Properties section.
- Optional: Click the Click here to add relative
to link, specify the relative location in the
Location field, and specify the relative object in
the UI Object field.
- Optional: Click the Click here to add optional
identifier link, and select a target object by selecting a
smartshot in the Target 2 field.
|
Assign |
You can assign a value to an existing variable or a new variable. |
Perform the following steps:
- Drag and drop the Assign element under any test
step as required.
- Click the Assign step.
The step details pane is
displayed.
- Enter a value to be assigned in the Value text
box.
- Select an existing variable from the list or select Add new
variable, enter a name for the variable, and then click
Add.
|