-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.py
More file actions
21 lines (16 loc) · 776 Bytes
/
example.py
File metadata and controls
21 lines (16 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import testingbotclient
# Credentials can also come from TESTINGBOT_KEY / TESTINGBOT_SECRET env vars
# or a ~/.testingbot file containing "key:secret".
tb = testingbotclient.TestingBotClient('key', 'secret')
# Update a test's result after running it
print(tb.tests.update_test('sessionId', name='my test', passed=True,
status_message='all good'))
# Fetch tests, available browsers, and your account info
print(tb.tests.get_tests(offset=0, limit=10))
print(tb.information.get_browsers())
print(tb.user.get_user_information())
# Upload an app to TestingBot Storage
# print(tb.storage.upload_local_file('/path/to/app.apk'))
# Trigger a Codeless test and wait for the result
# job = tb.lab.trigger(123)
# print(tb.jobs.wait_for_job(job['job_id']))