rong
rong

Reputation: 121

Karate test - how to embed html in Cucumber HTML report?

e.g. display a link or display a table in the html report

I tried 'print' but it is not working (e.g. the link is displayed as a plain text string, not a link)

Upvotes: 1

Views: 965

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58153

The latest version 0.9.0 supports this: https://github.com/intuit/karate#karate-embed

Refer to this example: embed.feature

* eval karate.embed('<h1>Hello World</h1>', 'text/html')

Upvotes: 2

Related Questions