Accessing the console output
When you run tests, you can access the console output that provides information such as error messages, logs, and the test verdict. You can then use this output to troubleshoot issues by reviewing details, such as session IDs and error messages.
Before you begin
- Ensured that you are assigned a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test resource.
- Initiated test runs from the Test Editor page.
Procedure
-
Log in to Test Hub.
The Projects page of the initial team space is displayed.
-
Click
to open the project that contains the test assets.The Overview page of the project is displayed.
-
Click
.The Test Editor page and the test navigator panel are displayed.
-
Click the .yaml file to open the test.
The test steps are displayed on the Test Editor page.
-
Click the Try Now icon
to begin the test run.
-
Go to the Console tab, and then click the
Console link.
Alternatively, you can click the expand icon
The Console output view is displayed..
- Review the console output to identify the error messages and logs.
-
Perform the following actions to manage the console output:
Action
Description
Search a keyword in the console output
Enter a keyword in the Search console field, and the corresponding word is highlighted in the console output.
Select all console content
Right-click the console output area and, then select the Select All option to select all content.
Copy the selected content
Right-click the selected content and choose Copy to copy the content.
Expand console output view
Click the up arrow
to expand the console output view for more details.
Restore console output view
Click the down arrow
to return the console output page to its original size.
Close console output view
Click the drop-down icon
to close the console output view.
Results
What to do next
- Decide on the actions that you might want to take based on the logs.
- Rerun the test asset.