UNPKG

rallf-js-sdk

Version:

Toolset to create Tasks for RALLF

30 lines (25 loc) 595 B
const { Task } = require('../../extending'); class TestTask1 extends Task { constructor() { super(); this.firefox = null; } async warmup() { this.logger.debug('warmup'); // this.firefox = await this.devices.get('firefox'); // await this.firefox.get('https://github.com'); } async start(input) { this.logger.debug(this.fqtn + ' started'); return 'started'; } async getTitle(input) { return await this.firefox.getTitle(); } async cooldown() { this.logger.debug('cooldown'); } } module.exports = TestTask1;