robotframework-crypto
robotframework-crypto copied to clipboard
Prevent decrypted data from being printed in the console
Preconditions & actions:
- Encrypt data, e.g. a string 'test123'.
- For convenience: set 'variable_decryption' to bool 'True'.
- Assign the cipher (i.e. the encrypted string) to a variable, e.g.: ${MY_PLAINTEXT_VAR}.
- Have a test case with one line of code, as follows: Should Be Equal ${MY_PLAINTEXT_VAR} test456
- Run the test case
Expected result:
The test case fails and the console prints (wrt the failed statement):
*** != test456
Actual result:
The test case fails and the console prints (wrt the failed statement):
test123 != test456
Remarks:
In the log *** != test456 is correctly printed.