Forum Discussion

mgroen's avatar
mgroen
Frequent Contributor
12 years ago

Data driven testing in Keyword mode (TC10) ???

I have created a simple Data driven keyword test, using the DataLoop wizard in TC10.
Very basic, the used variable is of table format, contains 4 rows.

But the loop is not executed multiple times, although the log says it did...

Is this a bug in TestComplete or am I missing some point here?

Attached is the project. Any tips/fixes would be welcome.

1 Reply


  • Hi Mathijs,


     


    I've modified your project a bit (I've attached the modified version). During the loop you were accessing the only one cell all the time: KeywordTests.Test1.Variables.Var1(0, 1)


    That's why, you didn't see the differences between the circles of the loop.


     


    As you are using a Table variable to store data, you can access the cells by the column name. For this, I add the code that gets access to data via the Table Data mode. See the Value column of the Log.Message operation in the Keyword editor.