Katalon has very good execution logs, but sometimes I don’t want some logs.
For example, if I want to have sms notification, I need to set api keys in my codes. Currently, such sensitive data are logged in the html reports, but I don’t want this data in the log for the sake of security.
How can I close logs for specific statements? Or is there alternative method to set sensitive data without logs?
I solved this problem by reading sensitive data from a data file, which is ignored by version control system.
Once I have done this, the log can only record where I read these sensitive data, but it doesn’t record what the exact values are
Liam_B
January 15, 2018, 3:15am
3
Andy Zhang said:
I solved this problem by reading sensitive data from a data file, which is ignored by version control system.
Once I have done this, the log can only record where I read these sensitive data, but it doesn’t record what the exact values are
Hi Andy,
Awesome! Would you mind sharing the details solution for other users that might have the same issue?
Thanks in advance,
Liam
Liam B said:
Andy Zhang said:
I solved this problem by reading sensitive data from a data file, which is ignored by version control system.
Once I have done this, the log can only record where I read these sensitive data, but it doesn’t record what the exact values are
Hi Andy,
Awesome! Would you mind sharing the details solution for other users that might have the same issue?
Thanks in advance,
Liam
ok, it is easy.
Firstly, I create a data file, for example `settings_data`, and this data file is ignored by git.
Secondly, I read data from this file with
InternalData data = findTestData("settings_data")
data.internallyGetValue("column_name", index)
Andy Zhang said:
Liam B said:
Andy Zhang said:
I solved this problem by reading sensitive data from a data file, which is ignored by version control system.
Once I have done this, the log can only record where I read these sensitive data, but it doesn’t record what the exact values are
Hi Andy,
Awesome! Would you mind sharing the details solution for other users that might have the same issue?
Thanks in advance,
Liam
ok, it is easy.
Firstly, I create a data file, for example `settings_data`, and this data file is ignored by git.
Secondly, I read data from this file with
InternalData data = findTestData("settings_data")
data.internallyGetValue(“column_name”, index)
1 Like