stepByStepReporter has stopped working for the past 3 CodeceptJS versions
See original GitHub issueWhat 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:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
@PeterNgTr yes, it definitely would! But am I misunderstanding that ticket when it says
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