Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
2.6.1
* Added ability to set project framework
2.6.0
* Add API Key authentication option

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys, os


version = '2.6.0'
version = '2.6.1'

setup(name='testdroid',
version=version,
Expand Down
14 changes: 11 additions & 3 deletions testdroid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from collections import namedtuple
from datetime import datetime

__version__ = '2.6.0'
__version__ = '2.6.1'

FORMAT = "%(message)s"
logging.basicConfig(format=FORMAT)
Expand Down Expand Up @@ -423,11 +423,19 @@ def set_project_config(self, project_id, payload):
path = "/users/%s/projects/%s/config" % ( me['id'], project_id )
return self.post(path=path, payload=payload)

"""Set project framework based on a framework integer id
"""
def set_project_framework(self, project_id, frameworkId):
path = "projects/%(project_id)s/frameworks" % {
'project_id': project_id
}
self.post(path, payload={"frameworkId": frameworkId})

""" Start a test run on a device group
"""
def start_test_run(self, project_id, device_group_id=None, device_model_ids=None):
def start_test_run(self, project_id, device_group_id=None, device_model_ids=None, name=None):
me = self.get_me()
payload={}
payload={} if name is None else {'name':name}
project = self.get_project(project_id)
if not 'id' in project:
print "Project %s not found" % project_id
Expand Down