Testwizard for Smart TV testobjects
Project description
Testwizard - Smart-Tv
Python language support for testing Smart-Tv devices using testwizard
Usage
- Import the testwizard.test and the testwizard.smart_tv packages
- Get a session and use it to create a Smart TV 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 (smart-tv.py)
from testwizard.test import TestWizard
from testwizard.test import ResultCodes
from testwizard.smart_tv import SmartTv
with TestWizard() as TW:
session = TW.session
smartTv = SmartTv(session, "SmartTv")
print("sendRCKey")
result = smartTv.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 (smart-tv.json)
{
"resources": [
{
"category": "SMART_TV",
"name": "SmartTv",
"id": "TV Model 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
Close
Hashes for testwizard.smart-tv-3.8.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec51f0b3f586a2211e01a100aeb92e1a90897a58b43d7032abc27c167c12448 |
|
MD5 | 507a1de93ecf16a10b7db7ba54078d81 |
|
BLAKE2b-256 | 9ba606d3390d60c921d5065028b12bf9b07364fab7a3f49a2c28f496601c0766 |
Close
Hashes for testwizard.smart_tv-3.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4511433139768a98d2f42ac926801dfe78deb280b8ff796e94016211c153aed2 |
|
MD5 | 37ee1eb47ce0ec6be7a55f56babc8662 |
|
BLAKE2b-256 | b20a93607f2650ed5719d25ec4f332455daeb92f538c947abedbe7f7f5e84101 |