Testwizard for Android set-top box testobjects
Project description
Testwizard - Android set-top-box
Python language support for testing Android set-top box devices using testwizard
Usage
- import the testwizard.core and the testwizard.android_set_top_box packages
- get a sesion and use it to create an Android 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 (android-set-top-box.py)
import sys
import time
from testwizard.core import TestWizard
from testwizard.core import ResultCodes
from testwizard.android_set_top_box import AndroidSetTopBox
with TestWizard() as TW:
session = TW.session
setTopBox = AndroidSetTopBox(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 (android-set-top-box.json)
{
"tester": "Some tester",
"parameters": [
{ "name": "param1", "value": "value1"},
{ "name": "param2", "value": "value2"}
],
"resources": [{ "category": "ANDROID_STB_TV", "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.android-set-top-box-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9e6a14f6f067d798175b50022068b79e53309a2e67101d2f5c061cdac2ef9ff |
|
MD5 | d63411b18743b7cb1fe32b290d9a4521 |
|
BLAKE2b-256 | 9c7f29e9e7104a39dea32d3bbc12ef99e7c30ed27e881fdc6323874167857569 |
Close
Hashes for testwizard.android_set_top_box-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef13e1721c57be04315e572fc0ac8696e4885da7189221ca9840eafc834e3ed2 |
|
MD5 | 344403557ac3081275fab341dcb5659d |
|
BLAKE2b-256 | 503f857d3d0993bf48cfdc005ddd92dc21e3ab0a65bde3519b8e59567230a6bd |