BUG: data source (CSV) not copied to release/debug directory
Posted: Mon Jan 13, 2014 12:03 pm
Hi,
I just started to experience a weird issue with the data source files (CSV).
So far, it all worked great. But after I (temporarily) disabled SETUP section, the CSV data source files were no longer automatically copied to release/debug folder. It seems that enabling/disabling SETUP section somehow unlink the CSV files from the rxtst file! I was also able to reproduce this problem by enabling Setup/Teardown sections in a new project, where the Setup/Teardown sections were not previously used.
And what's worse, even if I don't save the changes in my project, the csproj file is auto-saved with unwanted changes! The data sources are simply removed from the list of included files in csproj file.
In fact, Ranorex does not indicate any change in project (Save and SaveAs buttons stay disabled).
It took me a while to find what's going on, but I'm now able to reproduce it with a simple RX project created in latest 4.1.4. Please check the below steps...
STEPS TO REPRODUCE
- unpack the attached zip - go to the DataSourceTest (without OK) and open the DataSourceTest.rxsln
- switch to DataSourceTest.rxtst tab
- in the Projects pane, expand the DataSourceTest.rxtst node (just to see there is linked large_files.csv file)... - now in the Test Suite view, select DataSourceTest root node, right click on it and select Show Setup/Teardown menu item...
RESULT:
SETUP/TEARDOWN sections are created, but link to large_files.cs is gone! If you now try to build the project, the large_files.csv file will not be copied to Release directory.
Save and SaveAs buttons do not indicate any change in project files. But f you now compare DataSourceTest with DataSourceTest_OK directories, DataSourceTest.csproj is modified (removed include section pointing to large_files.csv).
Hope you will be able to reproduce this issue. Please let me know in case you need more details.
I just started to experience a weird issue with the data source files (CSV).
So far, it all worked great. But after I (temporarily) disabled SETUP section, the CSV data source files were no longer automatically copied to release/debug folder. It seems that enabling/disabling SETUP section somehow unlink the CSV files from the rxtst file! I was also able to reproduce this problem by enabling Setup/Teardown sections in a new project, where the Setup/Teardown sections were not previously used.
And what's worse, even if I don't save the changes in my project, the csproj file is auto-saved with unwanted changes! The data sources are simply removed from the list of included files in csproj file.
In fact, Ranorex does not indicate any change in project (Save and SaveAs buttons stay disabled).
It took me a while to find what's going on, but I'm now able to reproduce it with a simple RX project created in latest 4.1.4. Please check the below steps...
STEPS TO REPRODUCE
- unpack the attached zip - go to the DataSourceTest (without OK) and open the DataSourceTest.rxsln
- switch to DataSourceTest.rxtst tab
- in the Projects pane, expand the DataSourceTest.rxtst node (just to see there is linked large_files.csv file)... - now in the Test Suite view, select DataSourceTest root node, right click on it and select Show Setup/Teardown menu item...
RESULT:
SETUP/TEARDOWN sections are created, but link to large_files.cs is gone! If you now try to build the project, the large_files.csv file will not be copied to Release directory.
Save and SaveAs buttons do not indicate any change in project files. But f you now compare DataSourceTest with DataSourceTest_OK directories, DataSourceTest.csproj is modified (removed include section pointing to large_files.csv).
Hope you will be able to reproduce this issue. Please let me know in case you need more details.