Skip to content

Commit a5fe124

Browse files
author
Sakari Rautiainen
authored
Merge pull request #72 from ekreutz/extra_params
Possibility to include additional custom params when launching new test run
2 parents 042f05f + 10df83a commit a5fe124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testdroid/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def set_project_framework(self, project_id, frameworkId):
426426

427427
""" Start a test run on a device group
428428
"""
429-
def start_test_run(self, project_id, device_group_id=None, device_model_ids=None, name=None):
429+
def start_test_run(self, project_id, device_group_id=None, device_model_ids=None, name=None, additional_params={}):
430430
me = self.get_me()
431431
payload={} if name is None else {'name':name}
432432
project = self.get_project(project_id)
@@ -461,6 +461,7 @@ def start_test_run(self, project_id, device_group_id=None, device_model_ids=None
461461

462462
# Start run
463463
path = "/users/%s/projects/%s/runs" % ( me['id'], project_id )
464+
payload.update(additional_params)
464465
reply = self.post(path=path, payload=payload)
465466
print "Test run id: %s" % reply['id']
466467
print "Name: %s" % reply['displayName']

0 commit comments

Comments
 (0)