Large temp files are loading when QTP loads the scripts

  • Questions
  • Large temp files are loading when QTP loads the scripts
Question ID: 105460
1
0

Large temp files are being created in drive C when a script is loaded in QTP that used up hard disk space in our machine. Need a way to either redirect the creation of temp files from drive C to drive D or minimize the loading of temp files that uses up space in HD.

Marked as spam
Posted by (Questions: 45, Answers: 1)
Asked on June 30, 2014 9:50 pm
4 views
Answers (1)
1
Private answer

When opening a Shared Object Repository (SOR) with the QTP Object Resource Manager (ORM) in read write mode, there are two files created in the TEMP directory. Each of these TEMP files is approximately the same as the original SOR. When ORM is closed one of the two TEMP files is removed from the TEMP directory but the other stays in the TEMP folder. I do not see anything within QTP that will clean up this extra file in the TEMP folder created by the ORM.

If you want to move the location QTP uses for a TEMP folder then you will have to change the system environment variable TEMP. This will change the location for other application on the machine. I do not recommend changing system environment variable since this will affect system performance.
Recommend manually deleting the files to keep file space to a minimum. This can be done by creating a batch file with the following commands.
---------------------------------------
DEL ''%TEMP%tsr*.tmp''
-------------------------------------

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on June 30, 2014 9:51 pm