Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any experience or advise on fixing these intermittent Run Errors?
#1
Not Solved
I have the following code (and a lot of similar code/same issue). The code works flawlessly, then all of the sudden it stops and ...

Code:
Public Function ChangeAcctNumber ()

With Browser("Wisdom").Page("Wisdom Main")
            .WebEdit("Account").Set DataTable("ACCT1", dtGlobalSheet)
            .Image("imButAcct2").Click 'Click GO
            Wait(1)
            .Link("All Images").Click
End With

End Function


... I get the Run Error:

Cannot identify the object "Account" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application.

Function file: O:\QTP Tests\LibraryImageAccessMain-2.qfl
Line (201): " .WebEdit("Account").Set DataTable("ACCT1", dtGlobalSheet)".


What is going on in QTP? Is my coding to complicated? I can sometimes shut everything down and restart my machine, QTP and IE and it may work or it may still error out.

Any experience or advise on fixing these intermittent Run Errors?

Thx Guys and Gals...
Reply
#2
Not Solved
Try Below stuufs,

1.Try highlighting WebEdit, verify whether QTP is able to recognize it
2. Verify output from DataTable("ACCT1", dtGlobalSheet), i doubt this "ACCT1" might have more than 1 value
3.You also can take this Function ChangeAcctNumber () alone and try debugging it
4. Descriptive programming will solve most of your problems.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Intermittent Pausing On One Object zunebuggy 0 729 04-13-2020, 11:38 PM
Last Post: zunebuggy
  How to obtain professional experience in software testing? MiliGupta 0 1,023 10-06-2018, 12:19 PM
Last Post: MiliGupta
  Web Testing and Unexpected Server Errors zunebuggy 0 1,278 01-24-2018, 11:41 PM
Last Post: zunebuggy
  Very confused on how to deal with run errors atester 0 1,526 03-07-2014, 04:03 PM
Last Post: atester
  QTP gets crashed on start up or on save a script. Pls advise pandeche 2 3,488 04-16-2012, 12:14 PM
Last Post: leema

Forum Jump:


Users browsing this thread: 1 Guest(s)