Page 1 of 1

Sharing a test and hiding a password?

Posted: Mon Feb 20, 2017 1:09 pm
by Fergal
(Ranorex 6.2.1)

Scenario
A number of testers are working on the same test suite. Each tester has their own username and password to access the system under test. The test suite includes a Test Case to log into the system.

How can the test suite be shared among the testers, in such a way that the Log In test runs on each individual tester's machine, but that each user's password is kept private to that individual?

Thanks!

Re: Sharing a test and hiding a password?

Posted: Mon Feb 20, 2017 1:56 pm
by odklizec
Hi,

I'm afraid, there is no possibility to hide user names/passwords in test suite files. The only possibility I see is to not include the user credentials in the test suite at all and simply pass them via command line and global parameters connected to required test module variables. This way, nobody is able to read the credentials of other users from the Test Suite files (test modules or data connectors). Hope this helps? ;)

Re: Sharing a test and hiding a password?

Posted: Mon Feb 20, 2017 2:17 pm
by Martin
odklizec wrote:Hi,

I'm afraid, there is no possibility to hide user names/passwords in test suite files. The only possibility I see is to not include the user credentials in the test suite at all and simply pass them via command line and global parameters connected to required test module variables. This way, nobody is able to read the credentials of other users from the Test Suite files (test modules or data connectors). Hope this helps? ;)
Still depending on the setup it might be visible. Lets take Jenkins for example where logs display this kind of info. Probably there are plugins to hide some data in logs.

But locally using .bat files for example to run the tests will not have an issue.

Re: Sharing a test and hiding a password?

Posted: Mon Feb 20, 2017 2:30 pm
by odklizec
Hi Martin,

Of course, it's possible to hide user credentials (and other sensitive data) in Ranorex output (either log or report file). This can be done via Mask combo in Manage Data Sources dialog.

But I guess Fergal's problem is different. He just don't that members of the dev. team see each others credentials? And if they store them in data connectors/test modules, they are available to all people working with the test suite. In this case, the only solution is to not include credentials (and other sensitive data) to Test Suite.

Re: Sharing a test and hiding a password?

Posted: Mon Feb 20, 2017 3:41 pm
by Fergal
Thanks for your replies.
odklizec wrote:...the only solution is to not include credentials (and other sensitive data) to Test Suite.
Will go with that approach for the moment and will try to get a testing account set up that can be used by all testers.

Thanks again.

Re: Sharing a test and hiding a password?

Posted: Mon Feb 20, 2017 4:48 pm
by krstcs
You should not be using real user's information in tests. You should have a (or a set of) test user(s) that have a known password, and that are only available in the test environment.

Again, real user data should not be used due to issue like what is happening here.