Suitest JavaScript API v3

To program your test cases and advanced usage of Suitest features use the Suitest JavaScript API. If JavaScript is not your thing, you can create your tests with our excellent Test editor or check our Appium integration.

What is it for?

With the JavaScript API you can program your end-to-end tests. Aside from testing you can use the library to create companion apps that manipulate your Suitest devices or apps. For example, you can easily create a universal remote control or an app performance status reporting application.

An example test scenario for illustration:

const suitest = require('suitest-js-api');

async function myTest() {
    await suitest.openApp();
    await suitest.assert.location().equals('');

myTest().finally(() => suitest.closeSession());

Pretty easy right?

The JavaScript API is designed as a Node.js module and is freely available for download through NPM. Want to start right away? You'll just need your Suitest account and read our JavaScript API docs.

Suitest Network API is another useful API to access and manage things in Suitest or to marry Suitest with your continuous integration process.

Have fun!