Forum Discussion

z21ray's avatar
z21ray
Occasional Contributor
6 years ago

SoapUI hide password in reports

After run soapUI tests, I see there are reports on it (junit html) and content contains usernames and password used. They are used as global parameters. I start tests from command line and pass param...
  • groovyguy's avatar
    groovyguy
    6 years ago

    Yeah, I was not sure how that would work 100% with Jenkins being a headless server and being unable to do that. You might be able to use a local install of ReadyAPI to build the template, then move that to jenkins to adjust the logging there.

     

    With your idea, you might be able to set up a tear-down script that overwrites the username/password global property with a fake value to obfuscate it in the report. Good luck!

  • z21ray's avatar
    6 years ago

    In the begging of the command I have added: #!/bin/bash +x

    Then deleted all AppenderRef's from ReadyAPI-2.5.0\bin\soapui-log4j.xml

    Then in teh end of command added: 2>/dev/null

    This way I don't see any output in log (console).

    But I could not hide password in JUnit reports when tests fail.