New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@testwizard/set-top-box

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testwizard/set-top-box

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

latest
npmnpm
Version
3.8.1
Version published
Maintainers
1
Created
Source

Testwizard - 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/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

javascript (set-top-box.js)

'use strict';

const Testwizard = require("@testwizard/test");
const SetTopBox = require("@testwizard/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 (set-top-box.json)

{
    "resources": [
        { 
            "category": "STB", 
            "name": "SetTopBox", 
            "id": "SetTopBox 1"
        }
    ]
}

Compatibility

The version is compatible with testwizard version 3.7

License

Testwizard licensing

Keywords

testwizard

FAQs

Package last updated on 26 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts