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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size testwizard.set_top_box-1.0.4-py3-none-any.whl (4.1 kB) | File type Wheel | Python version py3 | Upload date | Hashes View hashes |
Filename, size testwizard.set-top-box-1.0.4.tar.gz (3.4 kB) | File type Source | Python version None | Upload date | Hashes View hashes |
Close
Hashes for testwizard.set_top_box-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 248d1a409325379e1011289906a8bc273d1cf3d8ac5277d8019ac5243ace8f03 |
|
MD5 | a350c6b9f782518e1b775fbd05922b8d |
|
BLAKE2-256 | 40f1afcd35b4846ba9f74eb8edfd7d18809ed8e0dee13bf8a441193040e63047 |
Close
Hashes for testwizard.set-top-box-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 332cc7993524cb7f3b85b0fd4d49876fecb2a717fc48ae0c1aeb80a599d281f0 |
|
MD5 | 53dfcc555acdf91f04513634cd4f065e |
|
BLAKE2-256 | 65c18c609584c5694d0295e88543861309c68803ef93f3399440c4674488133f |