kkc
11 years agoOccasional Contributor
VB Runtime Error with The Case of the Method Name When Using ScriptExtension
I currently met a problem using ScriptExtension in TestComplete 9.31.3889.7. When I tried to call my method defined in ScriptExtension, there is always a VB runtion error.
My code is as follows:
=========================================
Sub VerifyMaintenanceScreen(ByVal strDriverName)
Call Log.AppendFolder("Verify the data in the Maintenance Screen.")
'Verify the fields
HTML.TextBox.verifyvalue(id, value)
Call Log.PopLogFolder
End Sub
=========================================
The runtime error is as follows:
=========================================
Object doesn't support this property or method: 'HTML.TextBox.VerifyValue'
Error location:
Unit: "BaseModule\BaseModule\Script\BASE_GeneralizedCodeGroup"
Line: 182 Column: 9.
=========================================
I didn't quite understand why I called method "HTML.TextBox.verifyvalue" but the TestComplete considered the method I called as 'HTML.TextBox.VerifyValue'.
Is this a bug or something?
My code is as follows:
=========================================
Sub VerifyMaintenanceScreen(ByVal strDriverName)
Call Log.AppendFolder("Verify the data in the Maintenance Screen.")
'Verify the fields
HTML.TextBox.verifyvalue(id, value)
Call Log.PopLogFolder
End Sub
=========================================
The runtime error is as follows:
=========================================
Object doesn't support this property or method: 'HTML.TextBox.VerifyValue'
Error location:
Unit: "BaseModule\BaseModule\Script\BASE_GeneralizedCodeGroup"
Line: 182 Column: 9.
=========================================
I didn't quite understand why I called method "HTML.TextBox.verifyvalue" but the TestComplete considered the method I called as 'HTML.TextBox.VerifyValue'.
Is this a bug or something?