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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
Python client for Testdroid Cloud APIv2
=======================================

Dependencies
-----

For Linux installatin you need Python dev package.

Ubuntu
`sudo apt-get install python-dev`

Command line
-----

Install it with:
`sudo pip install testdroid`

Upgrade it with:
`sudo pip install testdroid --upgrade`

Usage
-----

Expand Down Expand Up @@ -45,3 +56,8 @@ Usage
`testdroid`


Troubleshooting
-----

If you see Pillow error messages on Linux you are most likely missing python-dev, see dependencies.

6 changes: 3 additions & 3 deletions testdroid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def get_device_groups(self):
""" Returns list of devices
"""
def get_devices(self, limit=0):
return self.get("devices?limit=%s" % (limit))
return self.get(path = "devices", payload = {'limit': limit})

""" Print device groups
"""
Expand Down Expand Up @@ -437,7 +437,7 @@ def stop_device_session(self, device_session_id):
""" Get all test runs for a project
"""
def get_project_test_runs(self, project_id, limit=20):
return self.get("me/projects/%s/runs?limit=%s" % (project_id, limit))
return self.get(path = "me/projects/%s/runs" & project_id, payload = {'limit': limit})

""" Print test runs of a project to console
"""
Expand All @@ -454,7 +454,7 @@ def get_test_run(self, project_id, test_run_id):
""" Return device runs for a project
"""
def get_device_runs(self, project_id, test_run_id, limit=1000):
return self.get("me/projects/%s/runs/%s/device-runs?limit=%s" % (project_id, test_run_id, limit))
return self.get(path = "me/projects/%s/runs/%s/device-runs" % (project_id, test_run_id), payload = {'limit': limit})

""" Downloads screenshots list for a device run
"""
Expand Down