I have use the Active Data Wizard to load the data from excel file into my script.I have added 2 column which are 'name' and 'age' as the header in a sheet.I want to load the data from the first row of the file into the two same procedures as the codes below.But i got the 'invalid index'error at 'RLBRE = Result_Row.GetString(object)' statement .May anyone know whats wrong with the codes and how to fix it?Thanks a lot.
Public Sub CDA(object)
Dim Result_Row As TActiveDataRow
Dim Result_ActiveData As TActiveData
Set Result_ActiveData = LoadActiveData("Result,1,1,0")
For Each Result_Row In Result_ActiveData
RLBRE = Result_Row.GetString(object)
I also got that same error this morning where the header name wasn't what testpartner was expecting ie: My header in excel said Default Charge, but what I had put into Testpartner was AddRates_Row.GetString("Charge Default").
Don't know if that helps at all!
TestPartner 6.3, Visual Tests
Application under test: Client/Server based, C# .Net App with Infragistics Presentation layer
Database: SQL 2000/2005