Forum Discussion

mgroen2's avatar
mgroen2
Super Contributor
10 years ago

Data driven testing in Keyword mode: implement action: "go to next record"

Following is the scenario:

Right now, when I am creating a Data driven Loop, I have the option to specify beginning and end of the record (its an Azure Sample database). See attached screenshot.

 

However, I want to create an index (integer) and use the index myself in keyword mode testing, however I can't get it work.

 

The only workable option I have right now is to convert it to Script and then change the index in the script.

 

However I want TestComplete to become a better product and this kind of DataDriven testing in combination with Keyword testing (so, not having to change it to script first).

 

What am I looking for is some operations I can use in Keywordtesting like "go to next record", and "update row index".

 

 

I hope it's clear what I mean. If not I can explain it if requested.

 

2 Replies

  • cunderw's avatar
    cunderw
    Community Hero

    You should be able to create and increment your own counter and also use labels and go to label to accomplish this. 

    • mgroen2's avatar
      mgroen2
      Super Contributor

      Hi cunderw,

       

      I create a local variable index of type integer, craete a while loop and incrementing the value of index with 1 each iteration, also used code snipped to go to next record, however it fails. Both variable index does not get incremented and the code snippet to navigate to next record fails as well.

       

      See attached screenshot.

      Any tips?