Skip to content

Commit b2ec9c1

Browse files
author
Sakari Rautiainen
authored
Merge pull request #73 from bitbar/devel
v2.41.1
2 parents c402669 + 1498a25 commit b2ec9c1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2.41.1
2+
* Possibility to include additional custom params when launching new test run
13
2.41.0
24
* Fixed bug with api access using api_key without login/pass
35
* Fix for download_test_screenshots method to work with version

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys, os
44

55

6-
version = '2.41.0'
6+
version = '2.41.1'
77

88
setup(name='testdroid',
99
version=version,

testdroid/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from optparse import OptionParser
66
from datetime import datetime
77

8-
__version__ = '2.41.0'
8+
__version__ = '2.41.1'
99

1010
FORMAT = "%(message)s"
1111
logging.basicConfig(format=FORMAT)
@@ -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)