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

Bug reports.
AutomationX
Posts: 1
Joined: Fri Oct 04, 2019 4:07 pm

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

Post by AutomationX » Fri Oct 04, 2019 6:55 pm

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
Add-Datasource.png (41.66 KiB) Viewed 258 times
3) Create a folder "DataSource" within the project
4) Drag and Drop "RxTestDatabase.csv" into this folder:
DragDataSource.gif
DragDataSource.gif (45.56 KiB) Viewed 258 times
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
delete-datasource.png (8.82 KiB) Viewed 258 times
Interestingly, the exception is not logged into RanorexStudio.log.

Greetings,
Mario

User avatar
Support Team
Site Admin
Site Admin
Posts: 12143
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Mon Oct 07, 2019 2:19 pm

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
.
Image