Forum Discussion
rraghvani my problem is solved by using a project variable of type Password. Thanks. I still have a concern because you mentioned that the command line is written to the log files. Please let me know where in the log file the command line is written.
Here is what we are doing.
We have a Azure Pipeline to execute the test cases.
The pipeline fetches the credentials of the AUT from Azure Key Vault.
These credentials are passed to TestExecute command line using /PrjVar switch.
Since there is no way to pass a Password type value on the command line, we have defined two project variables for AUT password. One variable is of type String and this is the one that receives the password value from command line. In the script, where we are populating the password in the AUT GUI, we first initialize the encrypted password variable with the value of decrypted password variable. i.e. something like this:
Project.Variables.EncryptedPasswordVar = Project.Variables.DecryptedPasswordVar;
passwordControl.SetText(Project.Variables.EncryptedPasswordVar);
I am not sure how secure this solution is. At least now I am not seeing the password value in the log when I call SetText.
It will be good if someone can review this and let us know if this is secure.
Related Content
- 3 years agoUConnAnnMarie
- 3 years agovertikav
- 6 years agoSaid
Recent Discussions
- 2 days agoMW_Didata