Find object in local object repository
Question ID: 107541
0
0

Is there a way I can programmatically find out if an object in my script is in the local repository or not?

Marked as spam
Posted by (Questions: 89, Answers: 4)
Asked on April 18, 2017 7:06 pm
30 views
Answers (1)
0
Private answer

Try the following function:

Function CheckIfObjectPresentInOR
Set ObjectRepositoryUtil = CreateObject(''Mercury.ObjectRepositoryUtil'')
ObjectRepositoryUtil.Load ''''
booFunctionStatus = FALSE
Set TOCOllection = ObjectRepositoryUtil.GetAllObjects

If TOCOllection.Count >0 Then
booFunctionStatus = TRUE
EndIf

Set ObjectRepositoryUtil = Nothing
Set TOCOllection =Nothing
CheckIfObjectPresentInOR = booFunctionStatus
End Function

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on April 18, 2017 7:10 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top