Debug scripts
If your script is not running properly, you can view snapshots and log files to help you determine the cause of the failure.
Tip: When debugging your test, it may be necessary to restart or reinstall your app. To do so, select the relevant item from the menu in the TruClient Steps box for Native Mobile. This can also be helpful if you want to return to the Home screen.
General debugging
You can run individual steps to see that it is properly configured. Use the right-click context menu to play an individual step, or, to or from a specific step. For details, see Context menu.
When testing Android devices, while running a test, open the Chrome browser on the Connector machine and view the WebView console output.
When testing iOS devices, use the iOS WebKit proxy and view the logs in the connector machine's Chrome browser.
Debug using snapshots
TruClient generates snapshots of interactive steps during the recording and replay of a script.
The following table summarizes where each snapshot is generated for each testing mode:
Testing Mode | Generated in |
---|---|
Interactive | Remote access window |
Load | Digital Lab |
When you click TruClient's Snapshot button, the Snapshot Viewer displays the snapshots in the right pane. For details, see Snapshots. The table below describes how to locate the relevant snapshot.
UI Element | Description |
---|---|
Snapshot type |
|
Slide Shows |
|
Views |
In the Snapshot Viewer's top-right corner, select how to view the snapshots:
|
Previous/Next |
Navigate to the snapshot for the previous or next step. The corresponding step is highlighted in the script. |
Next steps: