Plugin to use TestObject Suites with Pytest
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pytest_testobject-0.1.0-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34388f8a2504d7cc63c185f0863afcece289109089db9f288b0c3799befb8a09 |
|
MD5 | 59f17cd8dab8516b822a62cd8ce7e9a9 |
|
BLAKE2b-256 | 86be47ae4f2cc019ac9a541260ce1ec7b7b030c69e4fa107149262ddf3121099 |
Hashes for pytest_testobject-0.1.0-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59dead006d68244368d54170fddf5b606dc1b9cddc5e59e69c0fe8d6625609c8 |
|
MD5 | 0ca0897c38a130211f6b76b0dacc111c |
|
BLAKE2b-256 | bb7c73c060d4f2772ffef1252d960359e25d2abb32f3edaa2702c5405a02dc5d |
Hashes for pytest_testobject-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a65f6a91400ab1a15490aa4491dfb04a849261ad1cbd5617a157ad7d22cc5c2d |
|
MD5 | 0d2553be8f11a93cc5fce3f03b43f1fc |
|
BLAKE2b-256 | 69a13c009943992b9149a9da9b78a2ace1d21f1ae2a7e26d5fcb0b79cb861ebd |