Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video generate in the cucumber framework #453

Open
jay368 opened this issue Oct 11, 2024 · 1 comment
Open

video generate in the cucumber framework #453

jay368 opened this issue Oct 11, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jay368
Copy link

jay368 commented Oct 11, 2024

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 jay368 changed the title Video recording is not possible in the cucumber framework. video generate in the cucumber framework Oct 11, 2024
@christian-bromann christian-bromann added bug Something isn't working help wanted Extra attention is needed labels Oct 11, 2024
@christian-bromann
Copy link
Contributor

Thanks for raising the issue @jay368 , any contributions would be much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants