diff --git a/README.md b/README.md index d49e57c..fba1938 100644 --- a/README.md +++ b/README.md @@ -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 ----- @@ -45,3 +56,8 @@ Usage `testdroid` +Troubleshooting +----- + +If you see Pillow error messages on Linux you are most likely missing python-dev, see dependencies. + diff --git a/testdroid/__init__.py b/testdroid/__init__.py index 4a08a64..b92ffa0 100755 --- a/testdroid/__init__.py +++ b/testdroid/__init__.py @@ -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 """ @@ -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 """ @@ -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 """