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.4.4b1054.tar.gz (3.4 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.4.4b1054-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testwizard.set-top-box-3.4.4b1054.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for testwizard.set-top-box-3.4.4b1054.tar.gz
Algorithm Hash digest
SHA256 c3e4f7549666f717cd801447babee57740f9643285dce92b81c7e23a7b468be3
MD5 29f254d620bc19a9a6aeed47814525ef
BLAKE2b-256 28682312b726d9d61921df83212ff2f7bd3cc50a180997176cfb27b090da12fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: testwizard.set_top_box-3.4.4b1054-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for testwizard.set_top_box-3.4.4b1054-py3-none-any.whl
Algorithm Hash digest
SHA256 87d07a06e005d47ae6d3fa28d0b0b5168c3b4e911b570b4c9046c78c19bf0cdc
MD5 b5858c084a8f4dd5f3ee2888903973a5
BLAKE2b-256 5fa2f723a8901b517411f18b7bbd33d3817933e745bbd5b711828da04b12c3d9

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