Enable String Parameters in Report.Debug/Info/Etc.
Posted: Mon Feb 04, 2013 4:06 pm
I'm not sure if this is the right forum to post general requests or comments, but feel free to move it to an appropriate forum if it isn't. Thanks.
Quite often when writing to the Ranorex Report, I want to include some additional information. For instance which window was detected, which button was pressed or what the contents of a text box was. Whenever I want to write this to the report, I have to use a string.Format inside. It's not a big problem, but it would be really helpful if the Report.Debug/Info/others would automatically accept string parameters in the same way as the Console.WriteLine does by default.
So, instead of writing:
I would write:
It's not much time saved in just one instance, but it helps when writing a lot of text to the report over the course of many thousand lines of test automation code.
Quite often when writing to the Ranorex Report, I want to include some additional information. For instance which window was detected, which button was pressed or what the contents of a text box was. Whenever I want to write this to the report, I have to use a string.Format inside. It's not a big problem, but it would be really helpful if the Report.Debug/Info/others would automatically accept string parameters in the same way as the Console.WriteLine does by default.
So, instead of writing:
Code: Select all
Report.Debug(string.Format("Available Memory is '{0}'MB", repo.TextField.Text));
Code: Select all
Report.Debug("Available Memory is '{0}'MB", repo.TextField.Text);