ContributionsMost RecentMost LikesSolutionsRe: VB Runtime Error with The Case of the Method Name When Using ScriptExtension <RuntimeObject Name="TextBox" Namespace="HTML"> <Method Name="FillTextBox" Routine="FillTextBox"> Enter a value in the specified textbox. </Method> <Method Name="LookupValue" Routine="LookupValue"> Click on lookup button and select an item based on value. </Method> <Method Name="verifyTextBoxState" Routine="verifyTextBoxState"> Verify if a Textbox is enabled/disabled. strState: Enabled/Disabled </Method> <Method Name="TabFromTextBox" Routine="TabFromTextBox"> Tab from the specified textbox </Method> <Method Name="ReadValueFromTextBox" Routine="ReadValueFromTextBox"> Read a value from the text box and store it in a project variable with the specified name </Method> <Method Name="verifyvalue" Routine="verifyvalue"> Verify a value in the Textbox </Method> </RuntimeObject> Re: VB Runtime Error with The Case of the Method Name When Using ScriptExtensionMaybe I didn't explain the issue clearly. The problem is the method I define in ScriptExtension is "verifyvalue" (all characters are in lower case) and the method I called is "verifyvalue" (lower case as well). But the TestComplete considered that I call a method "VerifyValue" (two "v" are both in upper case), and think the method I called didn't exist. But actually, I didn't call "VerifyValue" (upper case) at all. Re: VB Runtime Error with The Case of the Method Name When Using ScriptExtensionThe error still exist. I need help.Re: VB Runtime Error with The Case of the Method Name When Using ScriptExtensionYes, but after I have added Keyword "Call", the same error still exists.VB Runtime Error with The Case of the Method Name When Using ScriptExtensionI 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? Re: VBScript Runtime Error when Using DDTDriver Object in TestExecuteI don't think I pass the incorrect column name. The face is that everytime some cases fails, but I don't know which ones fail, and the same case may fail after I ran it several times. For example: I have 10 cases to be run and case-A is one of them. First time case-A had been executed without any error found, but next time, the error occurred when executed case-A. And the third time, the error will occurred in executing case-B. VBScript Runtime Error when Using DDTDriver Object in TestExecuteCurrently I've tried to use TestExecute to run my test scripts and met some unexpected runtime error which never occurred when I tried in TestComplete. In my scripts, I tried to open the excel file using the DDTDriver Object (actually the ExcelDriver). The script I create the ExcelDriver is as follows: p.s. I am sure that AccessDatabaseEngine has already been installed in my testing environment. ================ Function getDriverObject(strSpreadSheetName, strDriverName) Dim pathresource pathresource = Project.Path + "Resources\" + strSpreadSheetName Set getDriverObject = DDT.ExcelDriver(pathresource, strDriverName, TRUE) getDriverObject.Name = strDriverName End Function ====================== And the scripts to read the excel content is as follows: ===================== Function getContentFromSpreadSheet(ByRef strDriverName, strColumnName) strTemp = DDT.DriverByName(strDriverName).Value(strColumnName) If IsNull(strTemp) then getContentFromSpreadSheet = "" Else getContentFromSpreadSheet = strTemp End if End Function ===================== The issue is that I need to call the funtion "getContentFromSpreadSheet" several times in each cases, and there are always some cases failed due to the error "item cannot be found in the collection corresponding to the requested name or ordinal". The error occurred when execute the statement below: ============== strTemp = DDT.DriverByName(strDriverName).Value(strColumnName) ============== Since I need to read excel file to get my testing data, this issue will block my entire testing scenario. So I really need some suggestions. Thanks a lot! p.s. I do remember calling the DDT.CloseDriver(strDriverName) each time when I finish the entire loop in the excel file. Solved