Setting Name and Status
Each test that you'll run on TestingBot will show up in the Members Dashboard.
By default, we do not know what the name of this test is and if it passed or not.
To correctly display the test name and status, there are two options:
TestingBot REST API
You can use our REST API to update the status and meta-data of a test.
The API can be used with any HTTP client, or use one of our API client libraries.
To use the API, you need the unique identifier of the test that you want to update.
Please see getting the SessionID for more information on how to obtain the sessionID of a specific test.
- (string) id - a unique string identifying your test (= Selenium sessionId, a UUID)
- (boolean) test[success] - indicating if the test was successful
- (string) test[status_message] - the status/error message of your test
- (string) test[name] - the name of your test
- (string) test[extra] - extra data for this test
- (string) groups=...,... - a comma-separated string of groups for this test
- (string) build=... - what build this test belongs to
JavascriptExecutor
TestingBot has its own, custom JavascriptExecutor methods that you can call during your test, to change the meta-data of the test that is running.
Besides changing the name and status of a test, we offer other JavascriptExecutor methods as well.
- (string) id - a unique string identifying your test (= Selenium sessionId, a UUID)
- (boolean) test[success] - indicating if the test was successful
- (string) test[status_message] - the status/error message of your test
- (string) test[name] - the name of your test
- (string) test[extra] - extra data for this test
- (string) groups=...,... - a comma-separated string of groups for this test
- (string) build=... - what build this test belongs to