.data_tmp files

Ranorex Spy, Recorder, and Studio.
monkey2012
Posts: 77
Joined: Wed Sep 26, 2012 8:15 pm

.data_tmp files

Post by monkey2012 » Wed Jun 26, 2013 6:49 pm

I am using Ranorex 4.0.2

I realized that every single directory or folder that I have used as current directory, contains *.data_tmp files, and so I have to go to each of them and delete all these files. Is there an option or setting in Ranorex that I should use so that these files will be deleted after test finished or not generated at all.

Thanks

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

Re: .data_tmp files

Post by Support Team » Thu Jun 27, 2013 2:25 pm

Hello,

This file is temporarily used to store report data during a test execution in the output directory.
It should be deleted automatically after the test had ended.

Do you have any issues with your reports?
Do you use a customized report or Report.Setup() in your code?

Regards,
Markus (T)
.
Image

monkey2012
Posts: 77
Joined: Wed Sep 26, 2012 8:15 pm

Re: .data_tmp files

Post by monkey2012 » Thu Jun 27, 2013 4:26 pm

They are not deleted after test case ended. I don't use Report.Setup at all, I only use Report.Info, Report.Failure, Report.Error, Report.Debug, Report.Success.

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

Re: .data_tmp files

Post by Support Team » Fri Jun 28, 2013 12:56 pm

Hello,

Could you please try to update to our current version of Ranorex (4.0.4)?
Ranorex can be downloaded from our archive.

Thank you in advance.

Regards,
Markus (T)
.
Image

monkey2012
Posts: 77
Joined: Wed Sep 26, 2012 8:15 pm

Re: .data_tmp files

Post by monkey2012 » Mon Jul 01, 2013 5:25 pm

I will try and let you know.

Thanks

monkey2012
Posts: 77
Joined: Wed Sep 26, 2012 8:15 pm

Re: .data_tmp files

Post by monkey2012 » Thu Jul 11, 2013 2:49 pm

I just upgraded to Ranorex 4.0.5, the *.data_tmp files are removed from Reports and bin\Debug or bin\Release; however, they are not deleted from other directories.

Example:
string pubDir = @"C:\\Users\\Public";
Directory.SetCurrentDirectory(pubDir);

After the test had ended, browse to C:\Users\Public\, and the file is there.
MyProject_1_20130711_070425.html.data_tmp

I double check all the directories that I used Directory.SetCurrentDirectory("anyDir");
They all contain the *.data_tmp files in this format: MyProject_1_20130711_<datetime>.html.data_tmp

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

Re: .data_tmp files

Post by Support Team » Fri Jul 12, 2013 1:22 pm

Hello,

Thank you for your short example.

It looks like that you set the working directory after your start the Test Suite.
Could you please try to add your lines of code before you call TestSuiteRunner.Run?
We recommend to specify the 'Report File Directory' via properties of the Test Suite.

Regards,
Markus (T)
.
Image