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 session 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

    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)

{
    "resources": [
        { 
            "category": "ANDROID_STB_TV", 
            "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.android-set-top-box-3.8.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for testwizard.android-set-top-box-3.8.1.tar.gz
Algorithm Hash digest
SHA256 923023c1cbeabd634d9772707014eb9e5103d157972b2d6e53248e1d5da04cd4
MD5 1838ec887c420ffc0f9464cfbdcb5138
BLAKE2b-256 574e9d92db377f318cef6f7bb5f5c4fe87285be7c561baada2d53f46dc1aa6aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for testwizard.android_set_top_box-3.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 898aaec419fdbafb5d84a99b0551b2d222d5ab21c9316e9c3e0139c5056a4c4c
MD5 e4badfe772838c1b6afe1a923b0c15d8
BLAKE2b-256 d50a489f60b0d5f5d6b24e8d0dc3725c24b1bc48e98526a0f6215c7f0be4567a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page