
Loading ...
Research team at KnowledgeInbox has been working on a revolutionary product code named “PowerDebug”. This product has been under research for over 2 years now and is now on the verge of a Beta Release in Jan 2010. The product is aimed at adding better debugging and error handling capabilities to QTP. This is the [...]
Read the full article...
Tags used -
Debug, Error, Eval, execute, executefile, ExecuteGlobal, Handling, HP QuickTest Pro, libraries, loaded, On Erro Goto, On Error, OnError, Power, run-time, Runtime

Loading ...
We executed the below code in QTP and found that things don’t work the way they are supposed to
Dim RepositoryFrom
Set RepositoryFrom = CreateObject("Mercury.ObjectRepositoryUtil")
RepositoryFrom.Load "C:\KIB\Demo.tsr"
Browser("KIB").Page("KIB").WebEdit("test").Set "Test"
The Browser(”KIB”).Page(”KIB”).WebEdit(”test”) object is present in the demo.tsr file. Another version of the code that does not work is as below
Set RepositoryFrom = CreateObject("Mercury.ObjectRepositoryUtil")
RepositoryFrom.Load "C:\KIB\Demo.tsr"
Set oTestEdit = RepositoryFrom.Load("Browser(""KIB"").Page(""KIB"").WebEdit(""test"")")
oTestEdit.Set "Test"
The code snippets [...]
Register or Login to read the full article...
Tags used -
Error, Issue, load, loaded, Mercury.ObjectRepositoryUtil, Object, Object Repository, ObjectRepositoryUtil, OR, unload