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
[TestingBot](https://testingbot.com/) allows you to run your Selenium tests in the cloud.
15
-
With access to over 400 different browser combinations, you can run your tests in parallel on their Selenium grid.
15
+
[TestingBot](https://testingbot.com/) allows you to run Selenium tests in the cloud.
16
+
With access to over +1500 different browser/device combinations, you can run your browser and mobile tests in parallel on the TestingBot Selenium grid.
16
17
17
-
## Using the client
18
+
## Getting Started
18
19
19
20
```python
20
21
import testingbotclient
21
22
22
-
tb = testingbotclient.TestingBotClient(
23
-
'key',
24
-
'secret'
25
-
)
26
-
print tb.tests.update_test("webdriverSessionId", 'my test name', False, 'test failure error')
It is also possible to use `TESTINGBOT_KEY` and `TESTINGBOT_SECRET` environment variables instead of specifying these in the TestingBotClient constructor. Or use a `~/.testingbot` file with `key:secret`.
30
27
31
-
## Running tests
32
28
33
-
This library is only intended to query the TestingBot API.
34
-
Below is a simple example which runs a Selenium Webdriver test on TestingBot and reports its name/success state back to TestingBot via this library:
29
+
*All API methods can throw these exceptions:*
35
30
36
31
```python
37
-
import unittest
38
-
import sys
32
+
TestingBotException(errorMessage)
33
+
```
39
34
40
-
from selenium import webdriver
41
-
from selenium.webdriver.common.keys import Keys
42
-
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
For more information on running Selenium RC/WebDriver tests with Python, please see [Python WebDriver Examples](https://testingbot.com/support/getting-started/python.html)
58
+
### stopTest
59
+
Stops a running test
60
+
<https://testingbot.com/support/api#stoptest>
73
61
74
62
75
-
## More documentation
63
+
```python
64
+
testingbotclient.tests.stop_test(sessionId)
65
+
```
66
+
67
+
### deleteTest
68
+
Deletes a test from TestingBot
69
+
<https://testingbot.com/support/api#deletetest>
70
+
71
+
72
+
```python
73
+
testingbotclient.tests.delete_test(sessionId)
74
+
```
75
+
76
+
### getTest
77
+
Retrieves information regarding a test
78
+
<https://testingbot.com/support/api#singletest>
79
+
80
+
81
+
```python
82
+
testingbotclient.tests.get_test(sessionId)
83
+
```
84
+
85
+
### getTests
86
+
Retrieves a collection of tests
87
+
<https://testingbot.com/support/api#tests>
76
88
77
-
Check out the [TestingBot REST API](https://testingbot.com/support/api) for more information.
0 commit comments