[10.4] Extra commandline parameter causes corrupt report

Bug reports.
Dominic Christen
Posts: 1
Joined: Tue Nov 08, 2022 1:30 pm

[10.4] Extra commandline parameter causes corrupt report

Post by Dominic Christen » Tue Nov 08, 2022 2:29 pm

Hello

This bug was found on Windows 10 Version 21H2 (Build 19044.2130) and Ranorex 10.4.0, but has also been reproduced on Windows Server.
It can be reproduced using the Desktop Sample, which why there is no user code.

How to reproduce:
1. Ensure your Ranorex installation has the samples installed.
2. Open Ranorex Studio
3. On the Ranorex Studio Home Screen click on the Desktop sample
4. Build the KeePassTestSuite Solution
5. In the Projects node right click the KeePassTestSuite project and click "Open command prompt here"
6. Now in the command prompt enter "cd bin\Debug"
7. Now enter "KeePassTestSuite.exe /pa:ThisParameterDoesNotExist=" and let the test run
8. After the test is finished run the command "explorer Reports" which will open the file explorer in the reports directory
9. Trying to open the .rxlog file will display an error with opening the corresponding .rxlog.data file
The reason the .rxlog.data file cannot be opened will be obvious: It is empty and has a size of 0 bytes.

Ideally Ranorex would report a Warning and then ignore extra parameters, but in any case should the reporting not be impacted.

Obviously on the user side there is any easy "workaround" or rather solution, just don't supply any parameter not used by the tests.

I hope this can help anyone experiencing the same issues.

Best regards

Dominic Christen

cazzish
Posts: 2
Joined: Tue Sep 29, 2020 11:56 am

Re: [10.4] Extra commandline parameter causes corrupt report

Post by cazzish » Tue Dec 13, 2022 2:24 pm

Thanks so much for this, it's saved us a lot of head scratching as we had the same issue!