12-16-2010, 11:41 AM
(This post was last modified: 12-16-2010, 12:11 PM by ShrikantBiradar3449.)
Hi Saket,
My Framework Contains a Driver Script,3 Functional Libraries to create an instance of objects in Dll and a Dll scripted in VB.
Dll Contains Four Classes divided according to the functions written in it like Data Entry Class, Test Case Class and Utilities Class.
And the below code is from one of these class:
The Public Property variable is defined for this:
‘while creating instance:
‘while checking for Login Dialog:
->End Property
Everything works fine until I add below code in my driver script:
In Dll After "End Property" line It gives that Run time Error.
Please suggest me how to get rid of this error.
My Framework Contains a Driver Script,3 Functional Libraries to create an instance of objects in Dll and a Dll scripted in VB.
Dll Contains Four Classes divided according to the functions written in it like Data Entry Class, Test Case Class and Utilities Class.
And the below code is from one of these class:
Code:
If Not CBool(CStr(JavaDialog("GTMLogin").Exist(0))) Then
SystemUtil.Run "iexplore", Environment("App_URL")
End If
The Public Property variable is defined for this:
‘while creating instance:
Code:
Public Property Set JavaDialog(mObject)
Set mJavaDialog = mObject
mSC.AddObject "JavaDialog", mJavaDialog, True
End Property
‘while checking for Login Dialog:
Code:
Public Property Get JavaDialog()
Set JavaDialog = mJavaDialog
Everything works fine until I add below code in my driver script:
Code:
If qtpRepositories.Find(SourceFileC) = -1 Then ' If the repository cannot be found in the collection
qtpRepositories.Add SourceFileC, 1 ' Add the repository to the collection
End If
In Dll After "End Property" line It gives that Run time Error.
Please suggest me how to get rid of this error.