@testwizard/android-set-top-box

3.8.1 • Public • Published

Testwizard - Android set-top-box

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

npm (scoped) lerna

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

javascript (android-set-top-box.js)

'use strict';

const Testwizard = require("@testwizard/test");
const SetTopBox = require("@testwizard/android-set-top-box");

async function test() {
    const session = await Testwizard.createSession();

    const setTopBox = await SetTopBox.create(session, "SetTopBox");

    console.log("sendRCKey");
    let result = await setTopBox.sendRCKey("menu");
    console.log(result.message);
    if (!result.success)
        session.addFail(result.message);

    if (!(session.hasFails || session.hasErrors))
        session.addPass("Test was successful");
}

test();

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

Package Sidebar

Install

npm i @testwizard/android-set-top-box

Weekly Downloads

16

Version

3.8.1

License

See readme.md

Unpacked Size

46.4 kB

Total Files

3

Last publish

Collaborators

  • edtb