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.
example
constWorker=this.require('common/worker');this.suite.context.set({ worker: newWorker(DEVICE_TYPE_SLUG, this.getLogger()), // Add an instance of worker to the context });constWorker=this.require('common/worker');constworker=newWorker(DEVICE_TYPE_SLUG, this.getLogger())
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.