Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error while adding Object to Object repository at run time
#1
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi All,

I am trying to add new object to object repository in run time with the following code resulting "error : R6025 -pure virtual function call" please help me on this.

Code:
Set RepositoryFrom  = CreateObject("Mercury.ObjectRepositoryUtil")
RepositoryFrom.Load  "c:\testrep.tsr"
Set PageObj = RepositoryFrom.GetObjectByParent("Browser(""Google"")","Page(""Google"")")
Set CustomObj = Browser("Google").Page("Google").WebButton("micclass:=WebButton")
RepositoryFrom.AddObject CustomObj, PageObj
RepositoryFrom.Save
Set RepositoryFrom = Nothing

Regards,
SaranKumarV
Reply


Messages In This Thread
Error while adding Object to Object repository at run time - by SaranKumarV - 10-11-2010, 05:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  adding atachment to QC (ALM) - overwrite psova 1 4,481 02-07-2023, 03:18 PM
Last Post: RachapudiSaiSowmya
  Error in Code while accessing WPF object Dinesh_cts 1 3,330 11-08-2017, 11:46 PM
Last Post: lotos
  Loading QRS files at Run time dvkbabu 2 10,016 03-24-2017, 09:04 PM
Last Post: UrmilaSaha
  Missing Resources, Information Pane, Debug Viewer, Run time Data Table not visible Aurodeepta 3 6,973 05-28-2015, 02:52 PM
Last Post: Aurodeepta
  Object Identification not working on Run Time Ajatshatru 2 3,260 05-06-2015, 07:27 PM
Last Post: Ajatshatru

Forum Jump:


Users browsing this thread: 2 Guest(s)