Page 1 of 1

.data_tmp files

Posted: Wed Jun 26, 2013 6:49 pm
by monkey2012
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

Re: .data_tmp files

Posted: Thu Jun 27, 2013 2:25 pm
by Support Team
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)

Re: .data_tmp files

Posted: Thu Jun 27, 2013 4:26 pm
by monkey2012
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.

Re: .data_tmp files

Posted: Fri Jun 28, 2013 12:56 pm
by Support Team
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)

Re: .data_tmp files

Posted: Mon Jul 01, 2013 5:25 pm
by monkey2012
I will try and let you know.

Thanks

Re: .data_tmp files

Posted: Thu Jul 11, 2013 2:49 pm
by monkey2012
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

Re: .data_tmp files

Posted: Fri Jul 12, 2013 1:22 pm
by Support Team
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)