question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stepByStepReporter has stopped working for the past 3 CodeceptJS versions

See original GitHub issue

What are you trying to achieve?

Have tests running and using the stepByStepReporter to get screenshots at every step

What do you get instead?

Tests fail because helper.saveScreenshot is not a function or undefined

Provide console output if related. Use --verbose mode for more details.

      I am on page "https://testURL.com/"
      › <Can't save step screenshot: TypeError: helper.saveScreenshot is not a function> undefined
      › <stepByStepReport> Adding screenshot to Allure
    [1] Error | Error: ENOENT: no such file or directory, open '/Users/username/Development/service-automation-framework/output/record_836bf26c43211cbbbc0b086f1e023287/0001.png'
    Emitted | step.failed (I am on page "https://testUrl.com/")
    Emitted | step.finish (I am on page "https://testUrl.com/")
    [1] Error | Error: ENOENT: no such file or directory, open '/Users/username/Development/service-automation-framework/output/record_836bf26c43211cbbbc0b086f1e023287/0001.png'

Details

  • CodeceptJS version: 2.6.7 / 2.6.8 / 2.6.9
  • NodeJS Version: 12.18.1
  • Operating System: macOS Catalina 10.15.6
  • WebDriverIO: 6.4.0

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
andrerleaocommented, Aug 21, 2020

@PeterNgTr yes, it definitely would! But am I misunderstanding that ticket when it says

In the changes to remove the REST helper from list supoortedHelpers, we added this bug :'(

Does that mean that codeceptJS 3.x and later will not support REST anymore? I’m thinking that I’m missing some context and that’s not the case.

Hi @GSasu, sorry for my mistake.

This PR is a reopened PR from #2527, in this we explain in detail what we have corrected.

and support REST helper will be maintained!

1reaction
GSasucommented, Aug 21, 2020

@PeterNgTr yes, it definitely would! But am I misunderstanding that ticket when it says

In the changes to remove the REST helper from list supoortedHelpers, we added this bug :'(

Does that mean that codeceptJS 3.x and later will not support REST anymore? I’m thinking that I’m missing some context and that’s not the case

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases - CodeceptJS
3.3.3. Fixed DataCloneError: () => could not be cloned when running data tests in ... stepbyStepReport Plugin: Disabled screenshots after test has failed....
Read more >
Reporters - CodeceptJS
After tests are imported, go to Runs tab and select "Setup automated ... "mochawesome" reporter not found invalid reporter "mochawesome".
Read more >
Getting Started - CodeceptJS
Use run-workers command with the number of workers (threads) to split tests. npx codeceptjs run-workers 3. Tests are split by scenarios, not by ......
Read more >
WebDriver - CodeceptJS
After installing a new version, run codecept3-upgrade which is described below: CodeceptJS 3.0 is a new version of CodeceptJS with some breaking ...
Read more >
Commands - CodeceptJS
Run tests multiple times to detect and fix flaky tests. npx codeceptjs run-rerun. For this command configuration is required: { // inside ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found