- How to use the Sauce Labs REST API to update the status of your test after it has already completed
- Your Sauce Labs account credentials
- The JOB_ID for the test you wish to update
update_jobs REST API and pass the parameter "passed" with a value of "true" or "false".
You can obtain the JOB_ID either by:
- Collecting and storing the web driver SessionId for the test, which Sauce Labs uses as the JOB_ID
- testFinding the Id value in the test's Metadata tab in the Sauce Labs app, as shown in the following figure