You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test annotation refers to adding information to your tests, such as a name, build number, tag, and pass/fail status. These annotations are useful for managing your tests and builds (for example, when searching and sorting tests in your [Archives](/test-results/viewing-test-results/#archived-test-results)).
22
+
Test annotation refers to adding information to your tests, such as a name, build number, tag, and pass/fail status. These annotations are useful for managing your tests and builds (for example, when filtering tests in your [Test Results](/test-results/viewing-test-results/#filtering-and-searching-automated-test-results)).
23
23
24
24
You can add annotations after test execution with our [REST API](/basics/test-config-annotation/test-annotation/#sauce-labs-rest-api) or during test execution with the [Selenium JavaScript Executor](/basics/test-config-annotation/test-annotation/#selenium-javascript-executor). You can also use [sample test frameworks](https://github.com/saucelabs-training) to automatically add annotations to your tests.
25
25
@@ -165,7 +165,7 @@ public class TextInputTest extends TestBase {
You can manage your tests more effectively from your Dashboard and Archives with annotations. The Sauce Labs REST API includes an [update_job](/dev/api/jobs/#update-a-job) method that you can use to set a name, tags, pass/fail status, and custom data for your test after it runs. To automate test annotation with this method, you'll want to create a simple set of functions to perform the put request for you.
168
+
You can manage your tests more effectively from your Dashboard with annotations. The Sauce Labs REST API includes an [update_job](/dev/api/jobs/#update-a-job) method that you can use to set a name, tags, pass/fail status, and custom data for your test after it runs. To automate test annotation with this method, you'll want to create a simple set of functions to perform the put request for you.
169
169
170
170
<details>
171
171
<summary>Sauce Labs REST API Examples</summary>
@@ -187,8 +187,8 @@ You can set the following [test configuration options](/basics/test-config-annot
187
187
| Option | Description | Key | Value Type | Example |
| Test Names | Used to record test names for jobs and make it easier to find individual tests |`name`| string |`"name" : "my example name"`|
190
-
| Build Numbers | Used to associate jobs with a build number or app version, displayed on the Dashboard and Archives views |`build`| string |`"build": "build-1234"`|
191
-
| Tagging | User-defined tags for grouping and filtering jobs in the Dashboard and Archives|`tags`| list |`"tags": ["tag1","tag2","tag3"]`|
190
+
| Build Numbers | Used to associate jobs with a build number or app version, displayed on the Dashboard views |`build`| string |`"build": "build-1234"`|
191
+
| Tagging | User-defined tags for grouping and filtering jobs in the Dashboard | `tags` | list | `"tags": ["tag1","tag2","tag3"]`
192
192
| Pass/Fail Status | Selenium and Appium handle sending commands to control a browser or app, but don't report to the server whether a test passed or failed. To record pass/fail status on Sauce, set the passed flag on the job.<br/>Since you can't know in advance whether a test passed or failed, this flag can't be set in the initial configuration. |`passed`| boolean |`"passed": "true"`|
193
193
| Custom Data | User-defined custom data that will accept any valid JSON object, limited to 64KB in size. |`customData`| object |`"customData": {"release": "1.0", "commit": "0k392a9dkjr", "staging": true, "execution_number": 5, "server": "test.customer.com"}`|
0 commit comments