How to clean information about "removed" data connectors?

Ranorex Spy, Recorder, and Studio.
vadim
Posts: 14
Joined: Tue Apr 16, 2013 8:22 am

How to clean information about "removed" data connectors?

Post by vadim » Fri Apr 19, 2013 11:54 am

Hi,

I had several data connectors, that were created with option "Copy file to project".
Due to modifications is test project I removed old connectors and created new connecters with other names.
I used "Manage Data Resources" to perform modifications above.
Now I have problem that project can't build, because it is looking for old connecters:
Error 3656: Could not copy the file "...\Ranorex\RanorexStudio Projects\RanorexTests\MyProject\Test_1.xlsx" because it was not found. (MSB3030)

I looked in all project files for text "Test_1.xlsx" and found it only at "MyProject.csproj" file.
I removed blocks with old connectors from "MyProject.csproj" file.
After that project built successfully.
But after some time these blocks appear in file again.

Thanks,
Vadim

vadim
Posts: 14
Joined: Tue Apr 16, 2013 8:22 am

Re: How to clean information about "removed" data connectors?

Post by vadim » Mon Apr 22, 2013 11:59 am

Hi,

Just to add.
Looks like problem is seen after file replacing for Data Connector.
E.g.
I had connector with name "MyConnector" that referred to file "Test_1.xlsx".
Than I deiced to use file "TestFile_1.xlsx" for "MyConnector".
I opened connected and selected new file.
I deleted also old file "Test_1.xlsx".
After that I got such error.

Cheers,
Vadim

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

Re: How to clean information about "removed" data connectors?

Post by Support Team » Tue Apr 23, 2013 5:20 pm

Hi Vadim,

May I ask you which Ranorex version you are using?

Thanks,
Markus
.
Image

vadim
Posts: 14
Joined: Tue Apr 16, 2013 8:22 am

Re: How to clean information about "removed" data connectors?

Post by vadim » Wed Apr 24, 2013 12:17 pm

Hi Markus,

Ranorex version is 4.0.2.21666.

Cheers,
Vadim

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

Re: How to clean information about "removed" data connectors?

Post by Support Team » Wed Apr 24, 2013 4:08 pm

Hello,

The Test Suite is still linked with your old data source 'Test_1.xlsx'.
Ranorex tries to copy this file to your 'bin\debug' folder but the file is deleted.

Could you please expand your Test Suite file (e.g. MyProject.rxtst) in Ranorex Studio in the Projects view and delete the entry for this old data source?

Regards,
Markus (T)
.
Image

vadim
Posts: 14
Joined: Tue Apr 16, 2013 8:22 am

Re: How to clean information about "removed" data connectors?

Post by vadim » Thu Apr 25, 2013 9:38 am

Hi, Markus.

Thanks.
No, at this moment there is no information at Test Suite file about deleted connecter.
If I see this error again, I will check it.

Cheers,
Vadim

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

Re: How to clean information about "removed" data connectors?

Post by Support Team » Thu Apr 25, 2013 2:33 pm

Hello,

You are welcome :-)

Regards,
Markus (T)
.
Image