Step Failure Details
The Step Failure Details dialog collects all the information related to a single failed test step. This included failure details, screenshots, and a snapshot of the DOM. You can even resolve the failure directly from the dialog.
In the example below, step four has failed. Double-click the red and white X icon to load the Step Failure Details dialog.
The Failure tab displays the test name, the test step description, and a summary of what caused the step to fail. Step four is verifying that the TextContent exactly matches the string Purple. It does not match; the actual value is Telerik, thus the Verification fails.
- Exception Details - lists the log for just the failed test step.
- Complete Test Log - displays the entire log.
- Copy to Clipboard - copies the exception details for the failed step to the clipboard to paste into another application.
- Export Result To File - saves a zipped file containing a text file with the failed step log, the complete test log, a screenshot of the web page when the failure occurred, and a snapshot of the DOM tree in XML form.
- Submit Bug - load the Submit Bug dialog and log a bug in your previously configured bug tracking application.
- Resolve Failure - navigates to the Resolve Failure tab where you can fix element location errors.
The Image tab displays two screenshots of the browser: the state at time of failure and the expected state. Storyboard must be enabled in Project Settings for the expected state image to appear.
Page DOM Tab
The Page DOM tab displays a tree view of the page's object model state at the time of failure.
Resolve Failure Tab
The Resolve Failure tab provides the opportunity to identify and correct the issue that caused the failure. For validation steps, the Sentence Verification Builder allows you to reload the page, make changes to the verification sentence, and re-run the verification until the verification passes.
In this example, changing xTelerik to Telerik will cause the verification to pass.
Upon failure, decide if the test needs updating or the tested page, Web application, or WPF application has a defect. If the test needs updating, simply modify the verification properties and click OK to update the test. Otherwise, the test has detected a product defect and a bug should be logged in your bug tracking system.