Debug using Chrome Console
You can use console.log(myVar) or use the chrome DevTools debugger to see errors while running the test (add debugger to the code).
Debug console errors and network
Testim records the console errors and network errors automatically. You should see it the test's property panel:
Note: The test logs will only appear on remote run on Chrome browser.
Debug by seeing the failed step DOM
When a step fails, we also take a complete DOM snapshot, so you can later debug. Access the DOM through the failed step property panel:
- The DOM will only appear on Chrome browser runs.
- The DOM will only appear on failed steps.
Debug Step parameters
In the properties panel you can see in each step all the parameters used during the run. These parameters can help you understand what happened in each step during the run.
- Incoming params: All incoming parameters that could be used in this step. Parameters can come from the exports in previous steps, from global exports carried out from previous tests in the suite, from data driven parameters, group / step parameters, etc.
- Local exports: Export parameters created in this step.
- Global exports: Global export parameters created in this step.