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
#2
Not Solved
Did you check the result log? Where is it exiting the code? You may need to debug.
Reply
#3
Not Solved
thanks for reply sir
but i didn't understood what u r saying
Reply
#4
Not Solved
Are you running the code from QTP? IF yes then chk the Run REsult. There may be some issue.
Reply
#5
Not Solved
no, i am running from notepad vbs file it does not give any error simply remains constant
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Issue in running Scripts on Edge browser Deepa_m 0 1,528 12-01-2017, 04:36 PM
Last Post: Deepa_m
  UFT Script running twice SacJoshi 0 2,057 11-11-2016, 01:51 PM
Last Post: SacJoshi
  Driver Script to control child scripts sumanhyd 1 2,937 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 3,958 05-08-2014, 10:30 AM
Last Post: Shriram
  How to run driver script to kick off scripts stored in QC? shipu 0 3,375 04-30-2014, 02:39 AM
Last Post: shipu

Forum Jump:


Users browsing this thread: 1 Guest(s)