Test logs record
Summarize
Summary of Test logs record
The Test Logs record in ServiceNow's Automated Test Framework (ATF) captures detailed console logging and test execution data during test runs. This information is stored in thesysatftestresultitemtable and includes browser console logs, test results, and error messages generated by individual test steps or environments. Access to specific test logs is available from the Test Log related list on the Test Results form.
Show less
Key Features
- Status Tracking: Test logs indicate the outcome of each test step with statuses such as Success, Failure, Success with warnings, Ignored, Warning, Waiting, Running, Skipped, Error, and Cancelled. These statuses help you quickly assess test progress and results.
- Test Log Types: Logs are categorized as Step Results (detailing execution and console output), Client Logs (log entry text), or Client Errors (actual client-side errors). This categorization facilitates targeted troubleshooting.
- Allowed Client Errors: Client errors can be marked as ignored or warnings through the Allowed Client Errors feature. This prevents recurring, accepted client errors from causing test failures in future runs, helping maintain test stability.
- Detailed Timing Information: Each log records start time, end time, duration, and the exact time the log entry was recorded, supporting precise analysis of test execution timing.
- Contextual Data: Logs include step names, descriptions, browser type and version, and references to associated test results and allowed client error records, providing comprehensive context for each test step’s execution.
Practical Use for ServiceNow Customers
By leveraging the Test Logs record, you can monitor and diagnose automated test executions effectively. The detailed status indicators and output logs allow you to:
- Identify and understand test step failures and warnings quickly.
- Filter out known client-side errors that do not impact test validity using allowed client errors, thereby reducing noise in test results.
- Access comprehensive execution data for root cause analysis and continuous improvement of test cases.
- Correlate logs with specific browsers and environments to troubleshoot environment-specific issues.
Overall, Test Logs enable you to maintain high-quality automated testing processes by providing transparency into each test step’s execution and outcomes.
The Test Results Item (test log) record contains console logging and test execution information.
During test execution, any information reported to the environment is recorded in the Test Log (sys_atf_test_result_item) table. This information can include browser console logging, results, and error messages recorded by step environments. You access specific test logs from the Test Log related list in the Test Results form.
| Field | Description |
|---|---|
| Status | The result of the test log:
|
| Type | Type of test log:
Note: If a Client Error, you can optionally add it as an ignored or warning
entry in the Allowed Client Errors. Doing so prevents the allowed client errors
from affecting ATF test executions when they recur in future test runs. For more
details, refer to Allowed client errors. |
| Output | Output generated for the test log.
|
| Step | Name of the step executed. This field may be blank for a client log. |
| Test Result | Reference to the test result associated with this step result. Click |
| Description | For a step result, the actions performed in this test step. For a client log, blank. For a client, this message displays: This client error occurred on the page in Browser Type Browser Version (for example, Chrome 62.0.3202.62). |
| Start time | Time at which this test step started executing. |
| End time | Time at which this test step finished executing. |
| Duration | Time duration it took to execute this test step. |
| Recorded at | Time at which this step or log entry was recorded. |
| Allow listed client error | Reference to the Allowed Client Error record (if any). Click |