Plugin to use TestObject Suites with Pytest
This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.
Features
Use TestObject’s Suites feature to group types of tests.
Run tests with different iOS and Android devices without re-writing code
Requirements
See requirements.txt
To run from source install via:
$ pip install -r requirements.txt
Installation
You can install “pytest-testobject” via pip from PyPI
$ pip install pytest-testobject
Usage
Add your credentials via the following flags:
--to-username=TO_USERNAME --to-api-key=TO_API_KEY --to-suite-id=TO_SUITE_ID
For these to work your tests need to be on a class.
Add the fixtures to_suite and to_driver to your class. Then use the to_driver fixture on your tests as your driver instance.
So it’ll look something like this:
@pytest.mark.usefixtures("to_suite","to_driver")
class TestTODriver(object):
def test_saucelabs(self, to_driver):
#Do stuff like to_driver.get(...)
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the MIT license, “pytest-testobject” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for pytest-testobject 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-testobject-1.0.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_testobject-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / pytest-testobject-1.0.0.tar.gz
| Download URL | pytest-testobject-1.0.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a74152a8e3551e331342352114bc9594daa571e491a7346375800797437f6a4
|
|
BLAKE2b-256 checksum How to use checksums |
767ade284ce154073f021498597c54d892ed019b143a1b42d7f761e70c1e4b79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
|
Release files / pytest_testobject-1.0.0-py3-none-any.whl
| Download URL | pytest_testobject-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d427b3b19d472d43af6e665331d9cb87dfac96d9b2ae94fb2e7174edee1f9cd6
|
|
BLAKE2b-256 checksum How to use checksums |
b9afc3eb797b3f3f34b0abec0384705c8410bfa547d10200a78a08d0fbd1a0b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
|