Forum Discussion

tinauser's avatar
tinauser
Frequent Contributor
14 years ago

Conflict access to temporary folder

Hallo,

once upon a time I was working with an application, and I reported this strange behaviour .

Now I am back and I have again the same problem.

I did some intensive debug, and I found out that:

1. The problem occurs when test complete "sees" the save dialog that my application open

2. That there is a conflict in accessing the temp file (%USERPROFILE%\Local Settings\Temp): if I run first my application and then test complete, trying to record a test  i get the error message "Test Complete cannot access the file %USERPROFILE%\Local Settings\Temp\~tmp1". If I remove this file and try to record the test, when the application try to save in this folder, gives me an "access denied".



How can I solve this problem. (TC version 8.60)



PS:

To add some oddities, the error appears only on winXP, not on win7 (

2 Replies

  • Lorenzo,


    TestComplete uses the Temp folder to save data during the recording. Perhaps, there is a conflict between your application and the Test Visualizer functionality as it saves the images to the Temp\TmpN folder (where N is 1, 2, 3, etc.)


    To avoid the problem, I'd suggest that you disable Test Visualizer, or try modifying your test so that it does not use this folder.


    Also, I'd suggest that you examine your application as locking the Temp folder and its subfolders does not seem to be a good solution, because this may cause problems with other applications.

  • tinauser's avatar
    tinauser
    Frequent Contributor
    Hi, thanks for the answer.

    I also though of disabling the visualizer. i found out that the problem occurs only if ie8 or higher is installed.

    Anyway, you are right, is probably an unwanted "feature" of the application I´m testing.