Testwizard for set-top box testobjects
Project description
Testwizard - set-top-box
Python language support for testing set-top box devices using testwizard
Usage
- Import the testwizard.test and the testwizard.set_top_box packages.
- Get a session and use it to create a set-top box testobject.
- Use this object to execute commands.
- You can use the session to add results that will be reported to the robot when the script finishes or set results that will be posted immediately.
Sample script
Python (set-top-box.py)
from testwizard.test import TestWizard
from testwizard.test import ResultCodes
from testwizard.set_top_box import SetTopBox
with TestWizard() as TW:
session = TW.session
setTopBox = SetTopBox(session, "SetTopBox")
print("sendRCKey")
result = setTopBox.sendRCKey("menu")
print(result.message)
if not result.success:
session.addFail(result.message)
if not (session.hasFails or session.hasErrors):
session.setResult(ResultCodes.PASS, "Test was successful")
sidecar file (set-top-box.json)
{
"resources": [
{
"category": "STB",
"name": "SetTopBox",
"id": "SetTopBox 1"
}
]
}
Compatibility
The version is compatible with testwizard version 3.7
License
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 Distribution
File details
Details for the file testwizard.set-top-box-3.8.1.tar.gz
.
File metadata
- Download URL: testwizard.set-top-box-3.8.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01b4879a7bfdccdba210f946e93325a98dcd6f4768c88a703a232e76568ede39 |
|
MD5 | 4f3c9c96a5472a180744360e554b14dd |
|
BLAKE2b-256 | 1af52f8bfdb29adc02221f72aea2dcc044a3f9cc9351155b7be95b969d5d7afa |
File details
Details for the file testwizard.set_top_box-3.8.1-py3-none-any.whl
.
File metadata
- Download URL: testwizard.set_top_box-3.8.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c296f0d836a2f224422e4404a6f35186aef6ff21562b251447f21582bcad82e5 |
|
MD5 | 9cca34f547022ec4cdfc93af5985828b |
|
BLAKE2b-256 | 32a447954baa75b00dcf622e72d0688e0d7a4e9a7bf4c1cbdd60f8063e0266fe |