Skip to main content

Testwizard for Android set-top box testobjects

Project description

Testwizard - Android set-top-box

Python language support for testing Android set-top box devices using testwizard

Usage

  • import the testwizard.test and the testwizard.android_set_top_box packages
  • get a sesion and use it to create an Android 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 (android-set-top-box.py)

from testwizard.test import TestWizard
from testwizard.test import ResultCodes
from testwizard.android_set_top_box import AndroidSetTopBox

with TestWizard() as TW:
    session = TW.session

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

    setTopBox = AndroidSetTopBox(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 (android-set-top-box.json)

{
    "tester": "Some tester",
    "parameters": [
        { "name": "param1", "value": "value1"},
        { "name": "param2", "value": "value2"}
    ],
    "resources": [{ "category": "ANDROID_STB_TV", "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.android-set-top-box-3.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

  • Download URL: testwizard.android-set-top-box-3.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for testwizard.android-set-top-box-3.2.0.tar.gz
Algorithm Hash digest
SHA256 a4554bebb627d829a7f54e2dceb3835049b599dfa60dc859f8c4b366e8590b6b
MD5 0183b5bc573c628876efd728d677d3ee
BLAKE2b-256 36adceee8aba6bd3da46071228aa7732aecdb7def32389e12515ff51509d63dc

See more details on using hashes here.

File details

Details for the file testwizard.android_set_top_box-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: testwizard.android_set_top_box-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for testwizard.android_set_top_box-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e926a03879981cf718babba84f9324f334414e8529539c145f7d24896404a8cf
MD5 27094eb5d7eddd722e8d24f8fb8a14d5
BLAKE2b-256 0599af3df0e8cde5e7db1a1c47a40f20ed77273f0f50f945921a5527c0b3c394

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