wdio-video-reporter icon indicating copy to clipboard operation
wdio-video-reporter copied to clipboard

video generate in the cucumber framework

Open jay368 opened this issue 4 months ago • 1 comments

Is your feature request related to a problem? Please describe.

  • I am using cucumber framework but onTestEnd is not executed inside code. So video generate is impossible.

( wdio-video-reporter/dist/wdio-video-reporter.mjs )

    onTestEnd(test) {
        console.log(`onTestEnd`)
        if (!__classPrivateFieldGet(this, _VideoReporter_record, "f")) {
            return;
        }
        this.clearScreenshotInterval();
        if (this.options.filenamePrefixSource === 'test' || this.isCucumberFramework) {
            this.testNameStructure.pop();
        }
        __classPrivateFieldGet(this, _VideoReporter_instances, "m", _VideoReporter_extendAllureReport).call(this);
        if (test.state === 'failed' || (test.state === 'passed' && this.options.saveAllVideos)) {
            this.addFrame();
            this.generateVideo();
        }
    }

Describe the solution you'd like

  • Please allow us to generate videos in the cucumber framework.
  • cucumber framework hooks
    • before
    • after
    • beforeScenario
    • afterScenario
    • beforeStep
    • afterStep

jay368 avatar Oct 11 '24 18:10 jay368