Micro Focus QTP (UFT) Forums

Full Version: How to change the ResultDir
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Change ResultDir

To attach my xls file to an email I use:
Code:
strAttachment = Environment("ResultDir") & "\Report\Results.xml"

I run my test from:
Code:
J:\QTP_Tests\NightlyRegressionTesting\Tests\ImageAccess_RegressionTestingByENV

So the results should be saved here:
Code:
J:\QTP_Tests\NightlyRegressionTesting\Tests\ImageAccess_RegressionTestingByENV\Res109"\Report\Results.xml

With doing nothing (as far as I know) somehow, the ResultDir changed to:
Code:
C:\DOCUME~1\a641422\LOCALS~1\Temp\TempResults_2\Report\Results.xml

What may I have done to change my ResultDir? And, how can I change it back to J:…?

I did go to File -> Setting -> Environment but I could not change the ResultDir value.

never mind...

Yup, i feel crazy... lol... its not even Friday yet. OMG

I just saw on my other machine that I had the "New run results folder" selected where my other was set to "Tempoary run results folder".

Yikes!

I need to go play hookey today.
Hello

You can do simple thing make new environment path if you are not able to edit.

OR

You can click on User-Defined in environment or see there no other third party file are imported to environment.