@testwizard/mobile

3.8.1 • Public • Published

Testwizard - Mobile

Javascript language support for testing Mobile devices using testwizard

npm (scoped) lerna

Usage

  • import the @testwizard/test and the @testwizard/mobile packages
  • get a session and use it to create a mobile 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

javascript (mobile.js)

'use strict';

const Testwizard = require("@testwizard/test");
const Mobile = require("@testwizard/mobile");

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

    console.log("-- Parameter usage ---");
    console.log("param1 = " + session.parameters.param1);
    console.log("param2 = " + session.parameters.param2);

    const mobile = await Mobile.create(session, "Mobile");

    let result = await mobile.initDriver();
    console.log(result.message);
    if (!result.success) {
        session.addFail(result.message);
        return;
    }

// Add your commands here

    result = await mobile.quitDriver();
    console.log(result.message);
    if (!result.success)
        session.addFail(result.message);

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

test();

sidecar file (mobile.json)

{
    "resources": [
        { 
            "category": "MOBILE", 
            "name": "Mobile", 
            "id": "Mobile 1"
        }
    ]
}

Compatibility

The version is compatible with testwizard version 3.7

License

Testwizard licensing

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.8.12latest
3.8.1-build48110develop
3.4.30branch

Version History

VersionDownloads (Last 7 Days)Published
3.8.12
3.8.1-build48110
3.8.1-build47480
3.8.0-build41470
3.8.0-build37920
3.8.0-build33531
3.8.0-build33460
3.7.10
3.7.1-build32650
3.7.0-build32590
3.7.00
3.7.0-build28590
3.7.0-build28150
3.7.0-build28110
3.7.0-build22550
3.7.0-build17150
3.7.0-build16510
3.6.00
3.5.00
3.6.0-build13000
3.6.0-build12620
3.6.0-build12610
3.5.0-build12600
3.5.0-build12490
3.5.0-build11910
3.5.0-build10710
3.5.0-build10610
3.4.50
3.4.4-build10440
3.4.4-build10330
3.4.4-build9310
3.4.4-build9270
3.4.4-build9190
3.4.40
3.3.140
3.3.130
3.3.120
3.3.110
3.3.100
3.3.90
3.3.80
3.3.70
3.4.30
3.4.0-alpha.00
3.3.40
3.3.30
3.3.21
3.3.10
3.3.00
3.2.90
3.2.80
3.2.70
3.2.60
3.2.50
3.2.40
3.2.30
3.2.20
3.2.00
3.1.190
3.1.180
3.1.170
3.1.160
3.1.150
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10

Package Sidebar

Install

npm i @testwizard/mobile

Weekly Downloads

7

Version

3.8.1

License

See readme.md

Unpacked Size

47.5 kB

Total Files

3

Last publish

Collaborators

  • edtb