How to fix it
- Navigate to
Automated Test Framework > Test Resultsand open your most recent failed test execution. - Click the
Step Resultstab and identify the first failing step. Note the exact error message and step type. - If error mentions missing records, go to
Automated Test Framework > Tests, open your test, and verify all referenced records still exist in the target tables. - Check the
Run Asfield on your test record. Navigate toUser Administration > Usersand verify this user has all required roles for the test actions. - For timing issues, edit your test and add
Wait for Conditionsteps before assertions that depend on async operations like workflows or business rules. - Configure wait conditions to check for specific field values, record states, or UI elements that indicate the operation completed.
- If field names or choice values changed, click
Test Stepstab and update theField nameandValuefields in affected steps. - Add cleanup steps at the end of your test to delete created records using
Delete RecordorServer Side Scriptsteps. - For form-based tests, use
Form UItest steps instead of direct database operations to handle client-side logic and validation. - Enable
Debug modeon your test record and run it again to capture detailed execution logs inSystem Logs > System Log > All.
After making changes, run your test in isolation first, then run the entire test suite to ensure no other tests are affected by your modifications.