Debugging Test Failures - Best Practices - Sofy Support Docs: No-Code Automation Testing Platform Help

Debugging Test Failures - Best Practices

Updated 1 year ago
by
Kashif Hussain

When a test case fails, it's crucial to identify the root cause of the failure. Effective debugging requires a thorough understanding of both the test case logic and the application under test.

Best Practices for Debugging

Clear cache

Cache stores temporary data to speed up application performance. However, outdated or corrupted cache can cause test failures or unexpected behavior.

When to clear cache in testing/debugging:

Clearing Cache in Sofy Lab
During a device session, users have the option to clear cache for the app being tested.

Conditionals

Conditionals allow users to create dynamic and flexible test flows based on specific scenarios or outcomes. They help test cases adapt to different application states during execution.

Common Use Cases for Conditions

Example:

If a pop-up appears, then close it;

Else, continue to the next step.