![]() |
How to change the ResultDir - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to change the ResultDir (/Thread-How-to-change-the-ResultDir) |
How to change the ResultDir - mv8167 - 08-23-2012 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. RE: How to change the ResultDir - QTPScript - 08-29-2012 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. |