You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
murthysp
changed the title
I am passing some xss data through my story file which breaks the reports. do you have any work around for that.
I am passing some xss scripts through my story file which breaks the reports. do you have any work around for that.
Jul 24, 2018
I have solved it by creating a separate properties file XSS-examples.properties, remove XSS scripts from My-Scenario.story examples section and add references to properties:
Examples:
|name |
|name1 |
Whereas they get loaded in the definitions file someSteps.setName(properties.getProperty("name1"))
The Serenity reports are not really designed to be XSS-proof, and there is only so much escaping that can be done. Feel free to take a look at the Freemarker templates if you can find a tweak that would work better for you.
No description provided.
The text was updated successfully, but these errors were encountered: