Skip to main content

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.test and the testwizard.set_top_box packages.
  • Get a session and use it to create a 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)

from testwizard.test import TestWizard
from testwizard.test 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)

{
    "resources": [
        { 
            "category": "STB", 
            "name": "SetTopBox", 
            "id": "SetTopBox 1"
        }
    ]
}

Compatibility

The version is compatible with testwizard version 3.7

License

Testwizard licensing

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

testwizard.set-top-box-3.7.0b2877.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

testwizard.set_top_box-3.7.0b2877-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file testwizard.set-top-box-3.7.0b2877.tar.gz.

File metadata

File hashes

Hashes for testwizard.set-top-box-3.7.0b2877.tar.gz
Algorithm Hash digest
SHA256 dfc13024891a03fc22077e57b1cd81a28f893466639b291125627e98eea758d4
MD5 94364773bb7de344a90ebf2dc18bc2ba
BLAKE2b-256 8396684d4931b60b254036f3a7eefc65d5fc54e119c986cafb56d025503b51c7

See more details on using hashes here.

File details

Details for the file testwizard.set_top_box-3.7.0b2877-py3-none-any.whl.

File metadata

File hashes

Hashes for testwizard.set_top_box-3.7.0b2877-py3-none-any.whl
Algorithm Hash digest
SHA256 cf425161cc8e9a95af661e1117821ada970a9f22f83093b5f8ae7b9aa3d9536a
MD5 aac34c8bccd9c467989a0c09fb7646c3
BLAKE2b-256 e2324a4a09551ac55de5ab45a3d5ff96224ede059dcb2269e2e7f979d9abfcaf

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