Forum Discussion
8 Replies
Sort By
- Marsha_RModerator
Are you trying to save the message text or compare it or...?
- Vivek72Contributor
Hi Marsha
I created a function which can be used for positive testing (where data is expected to be shown in the grid) and negative testing (data is not expected to be shown in the grid). I use Log.Message and Log.Error consecutively. Now I need to replace those log functions with variable so I don't need to go into script every time based on what type of message I need.
Thanks for response!
- Marsha_RModerator
I experimented a little and kept running in circles trying to evaluate those strings as objects and back again.
Instead of passing in "Log.Message" and "Log.Error", could you pass in "M" or "E" and then choose the log statement inside the code?
Related Content
- 4 years ago