Monday, August 13, 2018

Cucumber HTML reporting

Step 0) Follow below link  to create cucumber project

https://sagarthakare1.wordpress.com/2015/05/15/cucumber-with-junit-and-cucumber-reporting/

1) Download zip file from below link

https://github.com/masterthought/cucumber-sandwich

2) Unzip file

3) Go to \cucumber-sandwich-master\cucumber-sandwich-master

4) Run cucumber-sandwich ms dos file

this file will keep reading C:\Users\hendkin\AppData\Local\dev\fuse\trunk\fuse-acceptance\report\cucumber folder

5) Copy json file

Copy json file created by your cucumber options in  Step 0)
in C:\Users\hendkin\AppData\Local\dev\fuse\trunk\fuse-acceptance\report\cucumber folder folder
This MS don file will generate
cucumber-html-reports folder at C:\Users\hendkin\AppData\Local\dev\fuse\trunk\fuse-acceptance\report\

6) Open login.feature.html file in browser

You will get fancy HTML pages with graphs like below images
https://raw.githubusercontent.com/masterthought/cucumber-reporting/master/.README/feature-overview.png

No comments:

Post a Comment

How to check whether operating system is 64 bit or 32bit?

What is 32 and 64 bit operating system? The terms 32-bit and 64-bit refer to the way a computer's processor that is CPU, handles info...