Skip to main content

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

Testwizard licensing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

testwizard.smart-tv-3.8.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

testwizard.smart_tv-3.8.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file testwizard.smart-tv-3.8.1.tar.gz.

File metadata

  • Download URL: testwizard.smart-tv-3.8.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for testwizard.smart-tv-3.8.1.tar.gz
Algorithm Hash digest
SHA256 aec51f0b3f586a2211e01a100aeb92e1a90897a58b43d7032abc27c167c12448
MD5 507a1de93ecf16a10b7db7ba54078d81
BLAKE2b-256 9ba606d3390d60c921d5065028b12bf9b07364fab7a3f49a2c28f496601c0766

See more details on using hashes here.

File details

Details for the file testwizard.smart_tv-3.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for testwizard.smart_tv-3.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4511433139768a98d2f42ac926801dfe78deb280b8ff796e94016211c153aed2
MD5 37ee1eb47ce0ec6be7a55f56babc8662
BLAKE2b-256 b20a93607f2650ed5719d25ec4f332455daeb92f538c947abedbe7f7f5e84101

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page