Posts: 54
Threads: 30
Joined: Jul 2008
Reputation:
0
10-08-2009, 12:22 PM
Hi all
Im running a QTP test from Quality Center. The test runs as it should and the result is stored in QC (pass or fail). When the test run is finished, QTP is shown with the open script in read only mode.
Is there a way to close QTP after a test run and return to the result in QC ?
regards
Jan Riis Soerensen
Posts: 159
Threads: 0
Joined: Mar 2009
Reputation:
0
10-08-2009, 12:32 PM
Hi,
Do you want to close the qtp after each iteration or when the test suite execution completes?
2. If you wish to close the qtp after all the iteration then following will help you.
Navigate to
C:\Program Files\Mercury Interactive\QuickTest Professional\bin\mic.ini
Find entry:
CloseToolAfterRuns=0
then
under [RemoteAgent]
and change it "CloseToolAfterRuns=1"
Restart the qtp and remote agent from QC as well.
2. If you are running from Quality center then by default the focus will be on Quality center after the execution.
Let us know if this helps.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
10-08-2009, 01:05 PM
FurtherMore, If you do not want to play with the .ini configuration file and would want to handle the QTP machines interacting with QC based on your preference, then write a vbs file using the QTP AOM to simply say,
Code:
Set oApp = CreateObject("QuickTest.Application")
oApp.Close
Set oApp = Nothing
On the QC, under test settings enter this vbs file as a cleanup script.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 54
Threads: 30
Joined: Jul 2008
Reputation:
0
10-08-2009, 04:39 PM
Thx guys, just what i needed.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
10-08-2009, 05:43 PM
(This post was last modified: 10-08-2009, 05:44 PM by basanth27.)
Srikanth -
Just for your clarification, the solution i posted was specific to execution from QC.
Morever, I was expecting a solution in your post. Why would you need to suggest when the person who posted can try it out ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
10-09-2009, 12:03 PM
@ Everyone - Please be aware that every post on the forum is not a discussion but a solution seek. Discussion's are posted under different categories. Morever, there is no reason for anyone to come up with just posts explaining which solution to follow. the original poster is at the luxury to try out the various suggested solutions and use them.
Since Jan Riis Soerensen has the solution required, i have closed this thread.
Ankur has been intimated to take a look at such issues and maybe if possible add a few steps to the forum guidelines so that we dont have posts just for the sake of it.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.