julie_mcmanus
11 years agoOccasional Contributor
DDT Driver.First() Method
Hi,
I am having problems with the Driver.First() ,method using DDT on an excell sheet. Running the sample code
...
// Obtains a driver
var Driver = DDT.ExcelDriver("..//..//MyTestBook.xlsx", "TestSheet", true);
// Run some test with the driver
Result = MyTestRoutine(Driver);
// If an error occurs ...
if(! Result)
{
Driver.First(); // Go to the first record
MyTestRoutine(Driver); // and repeat the test
}
...
gives the error " object doesn't support this property or method"
any idea what I'm doing wrong here?
Thank You
I am having problems with the Driver.First() ,method using DDT on an excell sheet. Running the sample code
...
// Obtains a driver
var Driver = DDT.ExcelDriver("..//..//MyTestBook.xlsx", "TestSheet", true);
// Run some test with the driver
Result = MyTestRoutine(Driver);
// If an error occurs ...
if(! Result)
{
Driver.First(); // Go to the first record
MyTestRoutine(Driver); // and repeat the test
}
...
gives the error " object doesn't support this property or method"
any idea what I'm doing wrong here?
Thank You
- Most probably you use older version of TestComplete. For example, in v.8 there is no such method. I don't have TC 9 installed here, but it seems like method First was introduced in TC 10.