Posts: 30
Threads: 14
Joined: Jul 2011
Reputation:
0
09-16-2011, 03:59 PM
Hi ,
I'm new to QC, can anyone help me how can i export test results after every run from qtp to qc. I want all mytest results as attachments (either as PDF, word or excel formats) at one place.
I run all my test scripts from QC. After Run, instead of going to each test script and launch report , is there any option to save the test results as attachment in QC or save them in a specific folder?
Any work arounds for this isssue?
Posts: 107
Threads: 9
Joined: Apr 2011
Reputation:
0
09-17-2011, 05:52 AM
Hi,
The results would have got already stored as an attachment if you are running it from QC. Plz check.
Posts: 30
Threads: 14
Joined: Jul 2011
Reputation:
0
09-21-2011, 04:12 PM
yes In QC, I can see the result when I launch report, but i want that report in a separate folder. is there any method that result after every Run can be saved in a specific folder either from QTP or QC
Posts: 127
Threads: 9
Joined: Apr 2010
Reputation:
0
09-27-2011, 12:54 AM
Hey for this you need to use filesystem objects and prepare some functions to store report in html or xls format.
Posts: 12
Threads: 6
Joined: Jan 2010
Reputation:
0
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
Posts: 30
Threads: 14
Joined: Jul 2011
Reputation:
0
09-29-2011, 03:35 PM
Thanks for the reply, but i did not get the last point copy the result folder from that path and paste in QC, QTP? i dont know where to paste ? also Can we define or change the in built environmnet variables , i did not find any option to do so.