Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitbar/testdroid-api-client-python
Testdroid API client for Python
https://github.com/bitbar/testdroid-api-client-python
Last synced: 3 months ago
JSON representation
Testdroid API client for Python
- Host: GitHub
- URL: https://github.com/bitbar/testdroid-api-client-python
- Owner: bitbar
- License: apache-2.0
- Created: 2014-11-03T04:04:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T12:34:32.000Z (12 months ago)
- Last Synced: 2024-05-14T00:50:18.636Z (6 months ago)
- Language: Python
- Size: 237 KB
- Stars: 3
- Watchers: 45
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE.txt
Awesome Lists containing this project
README
[![PyPI version](https://badge.fury.io/py/testdroid.svg)](https://badge.fury.io/py/testdroid)
Python client for Testdroid Cloud APIv2
=======================================Dependencies
-----For Linux installation 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
-----`testdroid --help`
Note that you can set `TESTDROID_APIKEY` and `TESTDROID_URL` environment variables.
Module
-----You can use this class as a command line utility or import it to your own code.
The example below is using api key as the authentication method.
Example:
```python
>>> from testdroid import Testdroid
>>> testdroid = Testdroid(apikey="")
>>> testdroid.get_test_run(1233, 12345)
{u'displayName': u'Test Run 1', u'logZipState': u'BLANK', u'screenshotZipState': u'BLANK', u'projectId': 12340, u'number': 1, u'successRatio': 0.814815, u'createTime': 1393595647000, u'executionRatio': 1.0, u'state': u'FINISHED', u'startedByDisplayName': u'John Doe', u'id': 10}
```Developing and testing
----------------------Set up sandbox
`virtualenv myenv && source myenv/bin/activate`
Build example
`python setup.py clean && python setup.py sdist && pip install -U dist/testdroid-.tar.gz`
Usage
`testdroid`
Troubleshooting
-----If you see Pillow error messages on Linux you are most likely missing python-dev, see dependencies.
Contributing
------------1. **Fork** the repository and clone it locally.
2. **Create a branch** from Bitbar devel branch for your edits.
3. **Commit and push** to your own branch in Github
4. **Open pull request** for your changes for Bitbar devel branch.