09-27-2011, 02:49 PM
Hi,
I have one logic to do that:
1. First define the environment in-built variable "ResultDir" under File->Settings in QTP script.
2. Then assign the value into a variable like: Test_Result_Path=Environment("ResultDir"), now the variable "Test_Result_Path" should contain the qtp test result location.
3. Now using file scripting object go to the result folder whose path contained by the variable "Test_Result_Path".
4. Now copy the Result folder from that path and paste at any location in QC or QTP
I have one logic to do that:
1. First define the environment in-built variable "ResultDir" under File->Settings in QTP script.
2. Then assign the value into a variable like: Test_Result_Path=Environment("ResultDir"), now the variable "Test_Result_Path" should contain the qtp test result location.
3. Now using file scripting object go to the result folder whose path contained by the variable "Test_Result_Path".
4. Now copy the Result folder from that path and paste at any location in QC or QTP