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

    print(f"param1 = {session.parameters['param1']}")
    print(f"param2 = {session.parameters['param2']}")

    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)

{
    "tester": "Some tester",
    "parameters": [
        { "name": "param1", "value": "value1"},
        { "name": "param2", "value": "value2"}
    ],
    "resources": [{ "category": "STB", "name": "SetTopBox", "id": "SetTopBox 1"}
    ],
    "outputFolder": "c:\\temp"
}

License

Testwizard licensing

Project details


Release history Release notifications | RSS feed

This version

3.3.5

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.3.5.tar.gz (3.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.set_top_box-3.3.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testwizard.set-top-box-3.3.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for testwizard.set-top-box-3.3.5.tar.gz
Algorithm Hash digest
SHA256 45451ce209d087b38bb7b386652fff8c9e8e534cba5d3054bee1b3323fe795b3
MD5 c14d0c8364866648c58e8b582999e9a3
BLAKE2b-256 28d512949e96984fbade1d1d2b99acc86cb7e29796f8f68b5a284ce0824c4483

See more details on using hashes here.

File details

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

File metadata

  • Download URL: testwizard.set_top_box-3.3.5-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for testwizard.set_top_box-3.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d1e2b8fd8d48f28624bc4dab6081c870a5f2aedf4262e6859003948662b8718d
MD5 37cd157430d908d20bd46dc6be05fa76
BLAKE2b-256 f599ca9f5f09942db46a7eaf8a6f49dad6d90f4739dadd21318f937baec3851c

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