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

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.2.10.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.2.10-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testwizard.set-top-box-3.2.10.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.2.10.tar.gz
Algorithm Hash digest
SHA256 8a921506c47059c44cd1cfbe12e0a786a1253030cd4f3ce9e80aebcb4f8186bf
MD5 6334e0dfaf6b5b8e0fb7a422a2a8377d
BLAKE2b-256 3a00abb9c04ce7b5eeeb6ec76c2436fa708a101e99680bfbfcba33acc9d5b965

See more details on using hashes here.

File details

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

File metadata

  • Download URL: testwizard.set_top_box-3.2.10-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.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d2a17f9be7f1af32a2de7a6ec5597296a3cc42870dfa081d54ae7315b26b417b
MD5 a0cf51cdb606f3776481a298fdadccc1
BLAKE2b-256 90165dcbfa7951a50ae9ff2543c1a2ac4f706427083b9b64e9bb5d92f2dbf1b4

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