Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AOM script is running only one or two scripts.
#1
Not Solved
Hi,
Any one please help me, AOM script is running only one or two scripts i wrote correct code but it was running sometimes only even qtp is not closing
does we have to change any settings in qtp tool
Here is my code
Code:
Dim App
set App=createobject("quicktest.application")
App.launch
App.visible=true
dim QTP_Tests(3)
QTP_Tests(1)="E:\qtp scripts\excel"
QTP_Tests(2)="E:\qtp scripts\popup"
QTP_Tests(3)="E:\qtp scripts\flight"
set res_obj=createobject("Quicktest.runresultsoptions")
for i=1 to ubound(QTP_Tests)
wscript.sleep 1000
App.open QTP_Tests(i),true
set QTP_Test=App.Test
res_obj.ResultsLocation=QTP_Tests(i)& "\suvarna"      'set the results location
QTP_Test.run res_obj,true
QTP_Test.close
next
wscript.sleep 1000
App.quit
set res_obj=nothing
set QTP_Test=nothing
set App=nothing
Reply


Messages In This Thread
AOM script is running only one or two scripts. - by jramya - 07-24-2014, 05:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issue in running Scripts on Edge browser Deepa_m 0 1,637 12-01-2017, 04:36 PM
Last Post: Deepa_m
  UFT Script running twice SacJoshi 0 2,230 11-11-2016, 01:51 PM
Last Post: SacJoshi
  Driver Script to control child scripts sumanhyd 1 3,180 07-26-2016, 07:06 PM
Last Post: Ankesh
  How to invoke the recording of QTP using AOM(automation object model) of QTP shailesh.gcettb@gmail.com 2 4,112 05-08-2014, 10:30 AM
Last Post: Shriram
  How to run driver script to kick off scripts stored in QC? shipu 0 3,592 04-30-2014, 02:39 AM
Last Post: shipu

Forum Jump:


Users browsing this thread: 1 Guest(s)