Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP from QC - close QTP after test run
#1
Solved: 11 Years, 4 Months ago
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
#2
Solved: 11 Years, 4 Months ago
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.
#3
Solved: 11 Years, 4 Months ago
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.
#4
Solved: 11 Years, 4 Months ago
Hi Jan Riis Soerensen ,

Infact you could use either of the above 2 solutions.

If you are executing scripts from QC, then i would suggest to go with Tariksheth solution. Smile
#5
Solved: 11 Years, 4 Months ago
Thx guys, just what i needed.
#6
Solved: 11 Years, 4 Months ago
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.
#7
Solved: 11 Years, 4 Months ago
@Basanth : FYI, Its not mandatory that every post should contain a solution buddySmile

Moreover, I already knew that this post is specific to QC.
Out of 2 ways , i was suggesting to try & follow the Tariksheth solution, since Mic.ini file Settings are meant for closing Tool(QTP)after test run is finished required.
#8
Solved: 11 Years, 4 Months ago
@ 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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximize and Close a Browser mv8167 4 16,640 03-26-2023, 03:55 PM
Last Post: Mike B
  Send automatic email notification when test run started helmzshelmz 0 1,069 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Close popup ad windows dustwynn 1 2,952 10-25-2016, 05:57 PM
Last Post: Ankur
  [UFT] Close opened folder robertosalemi 1 3,336 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Error while opening test run results vkalyankar 3 4,308 11-12-2014, 09:49 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)