Page 1 of 1

[9.1.2] NullReferenceException when moving a Datasource file into a Folder

Posted: Fri Oct 04, 2019 6:55 pm
by AutomationX
Ranorex Studio Version 9.1.2+git.afa46adf

Issue: Moving a file, which is used as a datasource e.g. RxTestDatabase.csv, into a Folder, will also move the Test suite file into that folder.
(normally it is not possible to move a test suite).
When trying to delete the datasource, a NullReferenceException occurs.

Steps to Reproduce:

1) Download and open Demosolution https://www.ranorex.com/rx-media/rx-use ... esting.zip
2) Create a new Data Source in the Test Suite, use included "RxTestDatabase.csv" file in folder "RxDatabase", check "Copy file to project" (which does nothing since the file is already there), and click OK.
Add-Datasource.png
3) Create a folder "DataSource" within the project
4) Drag and Drop "RxTestDatabase.csv" into this folder:
DragDataSource.gif
As you can see, what has happend is that the "RxDatabase.rxtst" test suite file is now shown in the folder.

5) If you now try to delete the datasource, you will get a NullReferenceException on clicking "OK", you can now longer remove the datasource.
delete-datasource.png
Interestingly, the exception is not logged into RanorexStudio.log.

Greetings,
Mario

Re: [9.1.2] NullReferenceException when moving a Datasource file into a Folder

Posted: Mon Oct 07, 2019 2:19 pm
by Support Team
Hello Mario,

Thank you for your post.

I recreated this issue and it seems that it is a bug.
I have forwarded it to our developers.

Thank you for your understanding.

Regards,

Andreas