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.test and the testwizard.android_set_top_box packages.
- Get a session 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)
from testwizard.test import TestWizard
from testwizard.test import ResultCodes
from testwizard.android_set_top_box import AndroidSetTopBox
with TestWizard() as TW:
session = TW.session
print(f"param1 = {session.parameters['param1']}")
print(f"param2 = {session.parameters['param2']}")
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-3.4.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecfc1e1c6881674be10f81961d0b9f244c417ad61728968fd2a85ff2c58d508d |
|
MD5 | 22b8113166fa1b5c278740c44864cbd9 |
|
BLAKE2b-256 | 1234ab3504915a06f7e950a50578e664c48a12d2cfd5a33286e2a07664c6dbf2 |
Close
Hashes for testwizard.android_set_top_box-3.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a6ffd029bd87c892087b2fddd3ac545bc379c5eccb672bae37659a45302294c |
|
MD5 | 4a2720b4aebd7f36e755d751960d34d9 |
|
BLAKE2b-256 | 0a8457b534115846e02e2f7fc9d135a38a18b8864488e9c8a2540d8fd1117770 |