Mochawesome Reporter | JavaScript API Automation

  Рет қаралды 5,876

SDET Unicorns by Dilpreet Johal

SDET Unicorns by Dilpreet Johal

Күн бұрын

Пікірлер: 22
@vlatkod1065
@vlatkod1065 3 жыл бұрын
I really appreciate your work, and sharing the content with us! can you please create a video with Supertest using mocha and Allure reporting? I will really appreciate it! if you can !
@hellocodeur
@hellocodeur 2 ай бұрын
Thank you !
@qatester6425
@qatester6425 2 жыл бұрын
Great video bro, just wanna ask how to display the response body data json in html report? Thank you.
@devisenapati8295
@devisenapati8295 3 жыл бұрын
i recently upgraded to webdriverio v7 and post upgrade mochawesome report is nt getting generated, the dependencies are updated as well with ncu command . I checked it's unable to generate the required json file and tried to downgrade my dependencies to older version but still getting same error. Checked the official documentation they have provided official version compatibility details for wdio v4 and v5. Could you please give any suggestions on this, the dependencies used are mochawesome-report-generator:5.2.0 wdio-mochawesome-reporter:4.0.0
@joejpf
@joejpf Жыл бұрын
How to add request and response logs to mochawesome report?
@mbadakhoury2
@mbadakhoury2 Жыл бұрын
any idea if we can use mochawesome in parallel mode? ive been having problems with the generated report (error at runtime)
@sdetunicorns
@sdetunicorns Жыл бұрын
Yeah that should work, that's how I have run it in CI. May be open an issue in the Github for this
@mbadakhoury2
@mbadakhoury2 Жыл бұрын
it worked only when i added --require mochawesome/register to the command@@sdetunicorns
@mbadakhoury2
@mbadakhoury2 Жыл бұрын
this registers the --parallel as a hook, without it the generated json file will be corrupted, which will lead to runtime error when running the generated html
@saurabhsrivastav902
@saurabhsrivastav902 Жыл бұрын
Hi, I am using cy.log(JSON.stringify(res.body)) and can see the API response in Test runner, but it doesn't display the API response in mocha HTML report. Can you guide me how to print the API response in Mocha HTML report?
@sdetunicorns
@sdetunicorns Жыл бұрын
You need to build a custom report to show API responses in html report.
@saurabhsrivastav902
@saurabhsrivastav902 Жыл бұрын
@@sdetunicorns can you guide me through it. Have tried fee of them from online but no luck.
@shoaibkiyani9813
@shoaibkiyani9813 4 жыл бұрын
Can you share how to integrate it with webdriverio and also how to generate same steps in report of test script under execution.
@sdetunicorns
@sdetunicorns 4 жыл бұрын
You can use this package for webdriverio - www.npmjs.com/package/wdio-mochawesome-reporter. It has all the instructions on how to set it up.
@shoaibkiyani9813
@shoaibkiyani9813 4 жыл бұрын
@@sdetunicorns Thank you so much for your reply but its not compatible with version 6 of WebdriverIO.
@sdetunicorns
@sdetunicorns 4 жыл бұрын
Should probably use Allure in that case, has a lot more features - kzbin.info/www/bejne/m3q5ppdqm5WZl8U
@piyushmathpal4244
@piyushmathpal4244 3 жыл бұрын
unable to generate reports in v7. Can you please confirm? Instead getting log files
@sdetunicorns
@sdetunicorns 3 жыл бұрын
I am assuming you are referring to WebdriverIO v7? This video is for API Automation only and does not apply to WebdriverIO.
@piyushmathpal4244
@piyushmathpal4244 3 жыл бұрын
@@sdetunicorns wanted to explore on mocha awesome reports, so landed over here. Yes Im integrating it with wdIO but getting 2 log files instead of html and json file
@sdetunicorns
@sdetunicorns 3 жыл бұрын
mocha awesome hasn't been upgraded since v5, so I would not use that for WebdriverIO. You can use TimelineReporter instead - webdriver.io/docs/wdio-timeline-reporter
@shilpakothari990
@shilpakothari990 3 жыл бұрын
Thank you for the video. I followed all your steps but not able to run the report. Is there something to do with the version . Please guide.
@sdetunicorns
@sdetunicorns 3 жыл бұрын
Hi, what error are you getting?
API Tests Jenkins Integration | JavaScript API Automation
12:58
SDET Unicorns by Dilpreet Johal
Рет қаралды 4,3 М.
Using Async-Await with SuperTest | JavaScript API Automation
19:27
SDET Unicorns by Dilpreet Johal
Рет қаралды 7 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Chai JS Assertions - WebdriverIO Tutorial | #6
12:01
SDET Unicorns by Dilpreet Johal
Рет қаралды 7 М.
Cypress Mochawesome Reporting with Cypress 12 is awesome ⚡️📊
11:06
Execute Automation
Рет қаралды 11 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
Write your first API test using JavaScript
14:26
SDET Unicorns by Dilpreet Johal
Рет қаралды 21 М.
Postman API Test Automation for Beginners
4:16:01
freeCodeCamp.org
Рет қаралды 191 М.
Writing Negative API Tests | JavaScript API Automation
10:41
SDET Unicorns by Dilpreet Johal
Рет қаралды 6 М.
Mochawesome Html Report in Cypress - Part - 16
28:59
Naveen AutomationLabs
Рет қаралды 19 М.