When a test fails, you will need to know the reason and figure out how to fix it. In this article, we will go over how to troubleshoot a failing test when you run it from TF Editor.
The approach to troubleshooting a failing test case can vary depending on the driver in which the test is executed.
For browser-based tests, you can click the Screenshot link at the bottom of the test execution log. The screenshot of the failing step will be opened in a new tab. Seeing the screenshot, you can visually assess where the failure might have occurred (for instance, the element is not visible on the page).
For all tests, including the browser-based ones, you can use the Debug log. In order to understand the failure reason from the debug log:
- Click Debug log link at the bottom of the test execution log. The Debug log will open in a new browser tab.
- Press CTRL+F and search for the "✖ failed". On the next line, there will be the description of the error form which you can make the conclusion of what went wrong and correct the test case accordingly.
Comments
0 comments
Please sign in to leave a comment.