To attach my xls file to an email I use:
strAttachment = Environment("ResultDir") & "\Report\Results.xml"
I run my test from:
So the results should be saved here:
J:\QTP_Tests\NightlyRegressionTesting\Tests\ImageA ccess_RegressionTestingByENV\Res109\Report\Results .xml
With doing nothing (as far as I know) somehow, the ResultDir changed to:
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.
thx for any help.
Thx for the help ;-)
It's because when you run you picked to save the result in temp folder. [C:\DOCUME~1\a641422\LOCALS~1\Temp\TempResults_2\Re port\Results.xml] is a temp directory.
lol, yea i figured that out. im not sure how it changed on me, but it did. thx!