Test logs record
Summarize
Summary of Test logs record
The Test Logs Record captures detailed console logging and test execution information during Automated Test Framework (ATF) runs in ServiceNow. All information reported to the test environment, including browser console logs, test results, and error messages, is stored in theTest Log (sysatftestresultitem)table. Customers access specific test logs via the Test Log related list on the Test Results form, enabling detailed insights into each test step’s execution.
Show less
Key Features
- Status Field: Indicates test log outcomes such as Success, Failure, Warning, Ignored, Running, Skipped, Error, or Cancelled. This helps quickly identify the state and health of each test step or suite.
- Type Field: Categorizes entries as Step Result, Client Log, or Client Error. Client errors can be optionally marked as ignored or warnings in the Allowed Client Errors table to prevent recurring failures.
- Output Field: Displays detailed console logs, execution outputs, explanations for failures or skips, or client error messages depending on the log type.
- Step Field: Shows the name of the executed test step, facilitating traceability.
- Timing Fields: Include start time, end time, duration, and recorded at timestamp for precise tracking of test step execution periods.
- Allow Listed Client Error: Provides a link to the corresponding Allowed Client Error record, helping manage known client errors and reduce noise in test results.
Practical Use for ServiceNow Customers
ServiceNow customers can leverage Test Logs Records to:
- Diagnose test failures by reviewing detailed console logs and error messages tied to specific test steps.
- Understand the exact timing and sequence of test execution to optimize test suite performance.
- Manage client errors effectively by allowing known errors to be ignored or treated as warnings, thereby maintaining cleaner and more reliable test results.
- Gain comprehensive visibility into each step’s execution status directly from the Test Results form, streamlining troubleshooting and test management.
Related Concepts
- Allowed client errors: Managing and configuring client errors that should not cause test failures.
- Test results and Step results records: For deeper insights into overall test suite outcomes and individual step details.
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 |