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

Serenity RestAssured: How to mask the parameters(data passed from stories) in Serenity report #719

Closed
siva90144 opened this issue Mar 16, 2017 · 10 comments

Comments

@siva90144
Copy link

Hi,

I am using Serenity Res tAssured framework. In report i want to mask some parameters passed from story file. When i am using post query all he parameters are displaying in report. but i don't want it.
can you please help me.

Thanks in advance.

@wakaleo
Copy link
Member

wakaleo commented Mar 16, 2017

Hi,

These questions are probably better on the Serenity Google Group, or on Stack Overflow, where they would get a broader audience and probably a quicker reply.

This feature isn't currently supported, but it is a useful idea - I will flag it as an enhancement and put it in the backlog. Could you give a sample of what you are doing and the outcome you would expect?

@ManiKalyani234
Copy link

HI Siva, Could you please help me with your pom.xml file. I am using latest versions for Serenity Rest Assured, but I am getting exceptions.

@siva90144
Copy link
Author

siva90144 commented Aug 23, 2018 via email

@susacapuntas
Copy link

Anything new on this?

@wakaleo
Copy link
Member

wakaleo commented Jan 15, 2021

What is in a feature or story file is public. If you want to hide information, use personas and store the fields you don't want to report in config files or in your source code, or as system properties.

@susacapuntas
Copy link

susacapuntas commented Jan 15, 2021

Hmmmm not sure if I'm understanding this or if it is not the same question. Not talking about the parameters but responses.
I want to report REST responses and show them (I'm already doing it).
But I want some of the fields in the response (json) to be masked such as passwords.

@wakaleo
Copy link
Member

wakaleo commented Jan 15, 2021

Ah. That's not currently supported.

@susacapuntas
Copy link

Oh sad to hear that :(
Could you tell which files can I look to try to do it by myself?

@wakaleo
Copy link
Member

wakaleo commented Jan 15, 2021

Probably the RestReportingHelper class in serenity-rest-assured.

@susacapuntas
Copy link

thanks a lot!

@wakaleo wakaleo closed this as completed Feb 12, 2022
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