Module Leviathan Worker helpers

Worker helpers

The worker class can be used to control the testbot hardware. In the suite.js file, you can create an instance of it, and then use its methods to flash the DUT, power it on/off, and set up a network AP for the DUT to connect to.

 const Worker = this.require('common/worker');
this.suite.context.set({
worker: new Worker(DEVICE_TYPE_SLUG, this.getLogger()), // Add an instance of worker to the context
});
const Worker = this.require('common/worker');
const worker = new Worker(DEVICE_TYPE_SLUG, this.getLogger())

Index

Classes