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 by using TestComplete's data generator to an external file.
How can I pass this data to my code that I record in script testing? I could not find much things to read in official documentation.
Regards
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.