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.core and the testwizard.set_top_box packages
- get a sesion and use it to create an 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)
import sys
import time
from testwizard.core import TestWizard
from testwizard.core 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)
{
"tester": "Some tester",
"parameters": [
{ "name": "param1", "value": "value1"},
{ "name": "param2", "value": "value2"}
],
"resources": [{ "category": "STB", "name": "SetTopBox", "id": "SetTopBox 1"}
],
"outputFolder": "c:\\temp"
}
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
Close
Hashes for testwizard.set-top-box-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5885e38e9bcd83d3e4fbd15f0c666174b4f984cb0ddcb2a26fe055038e9c2bb |
|
MD5 | ea998a8f58e2156d4c5f4ab658c92817 |
|
BLAKE2b-256 | e4065f529fe8b956d71e888e266212927a7762043b5cdf27f373b07561e9b628 |
Close
Hashes for testwizard.set_top_box-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e07dced09f9088cebb69106aaf57c08b5f7c96100e89b61bcf160b662a34ce |
|
MD5 | 0a55c371a6b8b868051d3cc5d6a8d721 |
|
BLAKE2b-256 | 27f6f66e1a0b5c9ba35122118ee61fbd74e5eb3f1f33113184c37647d16632e8 |