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

improve cucumber json / html report output for called features #379

Closed
ptrthomas opened this issue Apr 23, 2018 · 9 comments
Closed

improve cucumber json / html report output for called features #379

ptrthomas opened this issue Apr 23, 2018 · 9 comments
Assignees
Milestone

Comments

@ptrthomas
Copy link
Member

As reported here: https://stackoverflow.com/q/49984628/143475

There's an opportunity to add the text of the called Feature title and the (first?) Scenario if it is present.

@ptrthomas ptrthomas added this to the v0.8.0 milestone Apr 23, 2018
@ptrthomas ptrthomas self-assigned this Apr 23, 2018
@backfloep
Copy link

Hi Peter,

thanks for adding the feature request! All the features I call have always only one scenario that is designed in a generic way, in order to be able to call them with different payloads and evaluate different responses.

ptrthomas added a commit that referenced this issue Apr 24, 2018
also there was an xml node bug that borked the svg image in html report
only for demo, looks like classpath lib changes via gatling caused different behavior, xml parser changed ?
anyway fixed with safer xml node conversion approach
@ptrthomas
Copy link
Member Author

@backfloep 0.8.0.RC3 is available, please try this and let me know if it looks ok

@gondos
Copy link

gondos commented May 4, 2018

@ptrthomas I was also looking for something like posted as part of this issue, i have taken 0.8.0.RC3, wanted to know if we need to any format for printing some reference text for any Step like below:
I just want some help text like -> "Login to App" appear in report before it prints call login.verifyLogin()

Scenario: Verify that User is able to login

Given path ''
And request payload
When method POST
Then status 200
And match response contains { hasError: false}

* def Page= Java.type('executionSuite.Login')
* def login = new Page()
* Login to App
* call login.verifyLogin()	

@ptrthomas
Copy link
Member Author

@gondos just use the print keyword, look it up in the doc

@ptrthomas
Copy link
Member Author

released 0.8.0

@ouquoi
Copy link

ouquoi commented Jul 12, 2019

is there a way to have specific rendering of print output in the cucumber report ?
Actually print output is displayed like any other lines.
Thanks for the answer

@ptrthomas
Copy link
Member Author

@ouquoi you can look at HTML via karate.embed() here is an example: https://github.com/intuit/karate/blob/master/karate-demo/src/test/java/demo/embed/embed.feature

@ouquoi
Copy link

ouquoi commented Jul 12, 2019

Thanks for your answer, i was not aware of this features can usefull in some context but i search for something that can be directly displayed without any action.
After some test with karate.embed() i have this output as you see this need a click to see the content.
image
image
could be great to just display the embed part without display the step itself. Thanks for your feedback.

@ptrthomas
Copy link
Member Author

@ouquoi yep ! keep in mind this is a 3rd-party report. eventually we will have our own "native" karate report where we will have full control. for now it is a good strategy to be cucumber-compliant and make use of the ecosystem, for example we have the following other integrations: allure, assertThat, trivago cluecumber

I just opened a roadmap item: https://github.com/intuit/karate/projects/3#card-23900118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants