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.
Procedure
-
Click the
button displayed on the Test
Editor page.
The Edit button appears only when no active edit branch is
selected.
Alternatively, right-click the test in the test navigator panel and select
Edit.
The Edit branch dialog is displayed.
If the
Edit branch dialog is not displayed, then go to step
2.
-
Drag and drop the Log element under any test step as required
from the General catalog in the Catalog
tab.
-
Click the Log step.
The step details pane is displayed.
-
Enter a custom message in the Log statement text box.
-
Click the Save icon
to save the modifications.
Results
You have added a custom message in the test by using the
Log step from the General catalog.
What to do next
You can run the test and view the results. See Running a Web UI test.