Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failed to run test due to unknown error: Need help!
#3
Solved: 11 Years, 2 Months ago
Hi Saket,

I tried your suggestion, but there is still an issue.
The code is now:
Code:
Public Function CheckLoadTime(ByVal LnkName,ByVal BroName,ByVal PagTitle)
Browser("Bro_Google").Page("Pag_Google").Sync
Browser("Bro_Google").Page("Pag_Google").Link("name:="&LnkName).Click
wait(2)
StartTime=MercuryTimers.Timer("Timer1").Start
Browser("name:=" & BroName).Page("title:=" & PagTitle).Sync
StopTime=MercuryTimers.Timer("Timer2").Stop
CheckLoadTime=StopTime-StartTime
End Function
Call CheckLoadTime("Maps","Google Maps","Google Maps")
msgbox CheckLoadTime(LnkName,BroName,PagTitle)

What is happening is:
Maps link is clicked..qtp quickly runs through the next steps, even the last step and then, i see that it stops at Step6 again which is
Code:
Browser("Bro_Google").Page("Pag_Google").Link("name:="&LnkName).Click
It stops here cos it doesnt find "Link maps", obviously it wont cos it has already opened it.
Why doesnt it stop at msgbox and just get the output?
I dont get this behavior.
Either you/someone please help me!
Reply


Messages In This Thread
RE: Failed to run test due to unknown error: Need help! - by Renu0113 - 09-29-2009, 12:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 524 11-05-2023, 03:55 PM
Last Post: lravi4u
  Send automatic email notification when test run started helmzshelmz 0 1,008 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  OpenNewTab stopped working on IE after unknown windows update M851533 0 1,068 07-19-2018, 08:36 AM
Last Post: M851533
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,756 05-04-2017, 03:52 PM
Last Post: Ankur
  Test runned from QualityCenter generated an error "Attempted to divide by zero." robertosalemi 1 2,507 10-14-2016, 08:38 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)