BehatHtmlFormatterPlugin icon indicating copy to clipboard operation
BehatHtmlFormatterPlugin copied to clipboard

Report not rendering multiline pystring json object

Open nodeJerry opened this issue 6 years ago • 15 comments

My report will not render/ display the multiline json object. when i inspect the html in the browser. I can see the json data. But it is just not rendered.

nodeJerry avatar May 29 '19 14:05 nodeJerry

Can any one give some insight to this ?

for example

the "i send post request ....... with body:

will not output in the report.

image

nodeJerry avatar Sep 03 '19 10:09 nodeJerry

Can you provide a screenshot of the generated html so we do not have to setup your test?

PurHur avatar Sep 03 '19 10:09 PurHur

Thank you for coming back to me PurHur. While examining this a little more. I believe i am not actually seeing a lot of data.

I have taken the html from webpage behind firewall in our staging environment. and pasted it in to brackets, and then presented it to a browser.

Some UI objects are being presented which i can not see behind firewall.

nodeJerry avatar Sep 03 '19 10:09 nodeJerry

image

nodeJerry avatar Sep 03 '19 10:09 nodeJerry

So the items with the arrows are not being presented behind firewall

nodeJerry avatar Sep 03 '19 10:09 nodeJerry

getting only one error behind firewall

image

nodeJerry avatar Sep 03 '19 10:09 nodeJerry

the read me on https://packagist.org/packages/emuse/behat-html-formatter does not show the ui elements pointed to by the arrows

nodeJerry avatar Sep 03 '19 10:09 nodeJerry

Why is my scenario-overview hidden

nodeJerry avatar Sep 03 '19 10:09 nodeJerry

You showed two diffrent reports. The first one (without the arrows) is the old behat2 report style. You can use that with --format behat2

The second one is the twig template which requires jquery and bootstrap to load from external servers.

I guess the error is happening because your firewall blocked: https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js (and the other resources)

I will merge #114 soon so you can change the template for your needs.

PurHur avatar Sep 03 '19 10:09 PurHur

Thanks again for your help PurHur.

As you can see this is REST API tesging.

Two years ago i made a fork and i created https://github.com/ijerry/BehatHtmlFormatterPlugin for the report to work behind firewall. So behind the firewall i can access these resources with this change.

So I am working off Twig version of the report. Not older version

So how can i get the new version of the report display the "Scenario-overview" part of the report ?

Also in the below diagram around the "STAR" graphic; How can i get the report to display the information here " a JSON PAYLOAD"

nodeJerry avatar Sep 03 '19 11:09 nodeJerry

image

nodeJerry avatar Sep 03 '19 11:09 nodeJerry