How to close winrunner from winrunner and QTP from QTP.

Showing Answers 1 - 17 of 17 Answers

Cashman

  • Oct 13th, 2006
 

It's easy, just click on the File menu and select Close/Exit. More easy just close the application by clicking on the "X" mark on the top right hand corner

  Was this answer useful?  Yes

murali

  • Oct 15th, 2006
 

we can close Qtp from Qtp by using the Automation object model.

Automation object model is nothing but collection of objects,methods and properties which are used to perform quicktest operations.Throught this object model we can perform any operation described in QTP interface.

For every option in QTP menus(Interface) have Objects,methods and properties are there in this model.

Eg: dim qtApp

     set qtApp=createobject("QuickTest.Application")

     qtApp.Launch  /*It launches the QTP

     qtApp.visible= "true" /* Qtp is visible to us

     qtApp.close  /* It closes the Qtp

  Was this answer useful?  Yes

khaja

  • Oct 31st, 2006
 

thx

  Was this answer useful?  Yes

sudhakar2068

  • Nov 1st, 2006
 

It's easy, just click on the File menu and select Close/Exit. More easy just close the application by clicking on the "X" mark on the top right hand corner.

sudhakar

  Was this answer useful?  Yes

Raghavendra.M.R.

  • Nov 4th, 2006
 

In winrunner write the script as

load_dll("c:\windows\system32\user32.dll"); 
extern unsigned int GetForegroundWindow(); 
extern int PostMessageA(unsigned int,unsigned int,int,inout string<1024>); 
hwnd=GetForegroundWindow(); 
a=PostMessageA(hwnd,16,16,b); 

  Was this answer useful?  Yes

RAJASRI

  • Dec 28th, 2006
 

Create a DSN and connect it as you connect your flight database

  Was this answer useful?  Yes

Guest

  • Jan 11th, 2007
 

Agree with murali ,that We can close QTP from QTP by creating a .vbs file using the Automation object model but instead of  close( ie.qtApp.close  /* It closes the Qtp) it should be Quit .

ie. qtApp.quit /*it closes the qtp.

note:-and to run the .vbs file just double click on the file icon .

  Was this answer useful?  Yes

Sudhir

  • May 25th, 2007
 

Even after qtApp.quit, there seems to be a process QTAutomationAgent.exe running. you can check this  using the task manager. Any ideas?

  Was this answer useful?  Yes

whirata

  • Dec 19th, 2007
 

I have the same problem with QuickTestProfessional. I waited a few minutes and finally it just disappeared from the TaskManager.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions