Forum Discussion

EkremMese1's avatar
EkremMese1
Contributor
7 months ago

Passing test data randomly to script tests from Excel file

Hello everyone,  Have a productive week. I just started playing around with TestComplete so I will around for some time. Thanks in advance for any comments.  My question is:  I created  data...
  • rraghvani's avatar
    7 months ago

    You already have an example in your previous post Item cannot be found in the collection corresponding to the requested name or ordinal and I've already provided documentation links.

    You will have to read the file contents, and store the data into an array. You can then access the array index via a random number, see  Generate a random number within a range | SmartBear Community you can the pass the returned value to your function.