Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP runs action More than once
#1
Not Solved
Hi all,

Please help me with below issue.

I Have a QTP Script with 3 Actions called into main Action . All the three are Internal Actions.

The script goes this way....

Code:
DataTable.Import ("\\wax-qms-qc\Test-Automation\ABCURL.xls")
URL = Datatable.Value("URL",dtGlobalSheet)
Systemutil.Run  "iexplore.exe",URL

RunAction "Action 1", oneIteration

RunAction "Action 2", oneIteration

RunAction "Action 3", oneIteration

Some test Script......

Browser("").close.


The test ends with Closing the browser. QTP Runs fine till Browser().Close and again start to run only Action 3. In Action 3 it doesnt find the required Objects and Fails.

I Have Datatable Iterations set as "Run One iteration Only" and also in excel sheet only one URL is being used.

I want QTP to run only till Browser Close without going to Actions Again.
What do i need to do for this?
Reply
#2
Not Solved
Hi,

Could u please check these:
1) File->Setting->Run : Run one iteration.
2)Action call properties(by right clicking on action)->Run : Run one iteration.

Regards,
Sankalp
Reply
#3
Not Solved
Hi Sankalp,

Both have been set to Run one Iteration. This did not help. Any other workaround?
Reply
#4
Not Solved
Hi,

For workaround u can use Exit Test() function but please check if u r using any loop or something else which is calling action 3 again.
Please debug the script at that point to check why it is navigating again to action 3.

Regards,
Sankalp
Reply
#5
Not Solved
I'll Use Exit test () at the end of the script and give a try. I tried to debug, After the last step Browser.close, it directly goes to Action 3 Line 1 just as it goes to next step with out any error or message or information .

Reply
#6
Not Solved
Hi,
Please re check action 3, action call properties->run
Its definitely be the issue with calling action.

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP runs slow when scheduled through a Virtual Machine BajaJeff 3 5,317 06-11-2013, 02:45 AM
Last Post: Ankur
  reusable action called inside another reusable action in qtp ritugoyal 0 2,608 05-05-2010, 03:16 PM
Last Post: ritugoyal
  Scheduled runs from QC stevol 2 2,672 11-12-2008, 06:38 PM
Last Post: stevol
  Issue with Oracle Application 10g testing(runs on JRE 1.5) thru QTP 9.5 Sarada 0 2,860 07-16-2008, 10:39 PM
Last Post: Sarada

Forum Jump:


Users browsing this thread: 1 Guest(s)