@testwizard/commands-video
Version:
23 lines (16 loc) • 623 B
JavaScript
;
const Commands = require('@testwizard/commands-core');
const Result = require('./SnapShotResult');
class SnapShotBMPCommand extends Commands.CommandBase {
constructor(testObject) {
super(testObject, 'SnapShotBMP');
}
async execute(fileName) {
if (fileName === undefined)
throw new Error('fileName is required');
const requestObj = [fileName];
const json = await this.executeCommand(requestObj);
return new Result(json, 'snapShotBMP was successful', 'snapShotBMP failed');
}
}
module.exports = SnapShotBMPCommand;