.RXLOG trims spaces of var values captured by C# User Code
Posted: Wed Feb 19, 2014 11:58 pm
PROBLEM SUMMARY: When a Ranorex script has executed C# User Code that captures a variable value containing multiple spaces, i.e., such as "Lost In Denver", and then publishes that variable value via a 'Report.Log' command (for potential troubleshooting purposes), the variable value in the resulting .RXLOG file is misrepresented. How is it misrepresented? All spaces in this variable value beyond one space are trimmed thus resulting in the variable displaying in a reduced, shortened way in the .RXLOG file compared to how it actually looked within the Web App at playback time.
EVEN IN THIS BUG REPORT, in above-stated Summary, the additional spaces are being removed so that if 5 spaces are present between "In" and "Denver", the display is still "Lost In Denver".
In this Denver example, the value "Lost In Denver" will appear as "Lost In Denver", i.e., with 4 of the 5 spaces in the variable value (i.e., That contained value "Lost In Denver") being incorrectly trimmed by the .RXLOG file.
DESIRED BEHAVIOR: The .RXLOG file should display the actual variable value without attempting to trim out additional spaces. In this Denver example, .RXLOG should have displayed the value as "Lost In Denver" rather than simply "Lost In Denver".
NOTE: This appears to be an RXLOG file problem only. In the above-stated Denver example, Ranorex correctly stores the actual value, i.e., "Lost In Denver", into the variable and can use that true / accurate variable value at playback time.
BUSINESS IMPACT: This .RXLOG trim problem can cause havoc in troubleshooting certain data-driven Ranorex scripts where we depend on the resulting .RXLOG file to state, via a call of C# User Code, what exact variable values Ranorex found at playback time. The net result is that in certain cases, due to this problem, the .RXLOG file can be displaying a false value / doc number.
EVEN IN THIS BUG REPORT, in above-stated Summary, the additional spaces are being removed so that if 5 spaces are present between "In" and "Denver", the display is still "Lost In Denver".
In this Denver example, the value "Lost In Denver" will appear as "Lost In Denver", i.e., with 4 of the 5 spaces in the variable value (i.e., That contained value "Lost In Denver") being incorrectly trimmed by the .RXLOG file.
DESIRED BEHAVIOR: The .RXLOG file should display the actual variable value without attempting to trim out additional spaces. In this Denver example, .RXLOG should have displayed the value as "Lost In Denver" rather than simply "Lost In Denver".
NOTE: This appears to be an RXLOG file problem only. In the above-stated Denver example, Ranorex correctly stores the actual value, i.e., "Lost In Denver", into the variable and can use that true / accurate variable value at playback time.
BUSINESS IMPACT: This .RXLOG trim problem can cause havoc in troubleshooting certain data-driven Ranorex scripts where we depend on the resulting .RXLOG file to state, via a call of C# User Code, what exact variable values Ranorex found at playback time. The net result is that in certain cases, due to this problem, the .RXLOG file can be displaying a false value / doc number.