Micro Focus QTP (UFT) Forums
Run QTP script on system without QTP IDE - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Run QTP script on system without QTP IDE (/Thread-Run-QTP-script-on-system-without-QTP-IDE)



Run QTP script on system without QTP IDE - nacchio - 09-28-2011

Hello,

can I run a QTP script on a system where not install QTP?

I read that I can run QTP script in remote mode but I don't understand:

1. I lunch qtp script from not-qtp machine on the qtp machine or

2. I lunch qtp script from qtp machine on the not-qtp machine?


Thanks a lot


RE: Run QTP script on system without QTP IDE - rajpes - 09-30-2011

I don't know about remote machine but you can definitely launch qtp in local machine using a driver files (notepad.vbs) in which you have to create quicktest.application object and write automation scripts in it


RE: Run QTP script on system without QTP IDE - sandya.qtp - 09-30-2011

can we run qtp script without installing qtp in local machine?


RE: Run QTP script on system without QTP IDE - nacchio - 10-12-2011

Hi Sandya,

you cannot run qtp script without installing qtp in local machine because in this way you infrange the license term of qtp.

But you can run qtp test in automatic way on a machine where qtp is installed. If you click Tools-->Options-->General Tab-->Generate Script you create a .vbs that permits to open qtp IDE. Then you can add these follow lines to open a qtp test, to run it and to save the results

Code:
Set App = CreateObject("QuickTest.Application")
...
App.Open "your_path\qtp_test"
Set qtResult = CreateObject("QuickTest.RunResultsOptions")
qtResult.ResultsLocation = "your_path\results_folder"
App.Test.Run qtResult


Cheers

Andrea