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

I have written the following function to calculate the loading time.
Objective: Open Google Page
Click on any link (say, Maps)
Calculate time required for the Google Maps page to load

Code:
Public Function CheckLoadTime(ByVal LnkName,ByVal BroName,ByVal PagName)
'Dim LnkName
'Dim BroName
'Dim PagName
Browser("Bro_Google").Page("Pag_Google").Sync
Browser("Bro_Google").Page("Pag_Google").Link(LnkName).Click
StartTime=MercuryTimers.Timer("Timer1").Start
Browser(BroName).Page(PagName).Sync
StopTime=MercuryTimers.Timer("Timer2").Stop
CheckLoadTime=StopTime-StartTime
End Function

Call CheckLoadTime("Lnk_Maps","Bro_GoogleMaps","Pag_GoogleMaps")
msgbox CheckLoadTime(LnkName,BroName,PagName)

Now, when I run the test, GoogleMaps opens, but I get a error as
"Failed to run test due to uknown error" and it points to Line(6):
Code:
Browser("Bro_Google").Page("Pag_Google").Link(LnkName).Click

Can someone please tell me where I am going wrong?I know,perhaps my basics are not in place, but I am learning.

Thanks,
Joshi
Reply


Messages In This Thread
Failed to run test due to unknown error: Need help! - by Renu0113 - 09-26-2009, 07:09 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 350 11-05-2023, 03:55 PM
Last Post: lravi4u
  Send automatic email notification when test run started helmzshelmz 0 937 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  OpenNewTab stopped working on IE after unknown windows update M851533 0 999 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,651 05-04-2017, 03:52 PM
Last Post: Ankur
  Test runned from QualityCenter generated an error "Attempted to divide by zero." robertosalemi 1 2,376 10-14-2016, 08:38 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)