cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with generated data

SOLVED
Highlighted
New Contributor

Issue with generated data

Hi,

 

I just started using the generate data feature and it seems there is something I'm missing. I was able to generate a table of 12 columns and 2000 rows, I customized each column and everything looks fine in the variables tab.

Then I tried using the data in a recorded test case, by selecting the variable and the specific column I need for each field. None of the fields are being filled and I got the Exception in Test log:

'A row index must be an integer value'

 

Any idea what could be wrong here? thanks!

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Regular Visitor

Hi Maxter,

 

If I understand your requirement correctly, you have created a variable table and would like to loop through the rows in that table.

 

You can do that by creating a data driven loop and select your "Vendor_Name" variable. Refer to https://support.smartbear.com/testcomplete/docs/keyword-testing/basic/data-driven-loops.html

 

Hope this helps.

 

Cheers

View solution in original post

3 REPLIES 3
New Contributor

Was able to figure out what the issue was, I was using this value in my test case:

Variables.VendorFill("Vendor_Name", "") 

 

the problem was the last quotation marks, it was expecting an integer for the row value. makes sense.

I removed those "" and the test case run fine, but it is always trying to use the first row, and I need it to go through the whole table I created (2000 rows).

Is there any automatic way to select a different row in each execution? if so, how can I do that?

 

thanks!

Highlighted
Regular Visitor

Hi Maxter,

 

If I understand your requirement correctly, you have created a variable table and would like to loop through the rows in that table.

 

You can do that by creating a data driven loop and select your "Vendor_Name" variable. Refer to https://support.smartbear.com/testcomplete/docs/keyword-testing/basic/data-driven-loops.html

 

Hope this helps.

 

Cheers

View solution in original post

Highlighted
Community Manager

Thanks a lot for your advice ChristofS!

 

@Maxter Does this help?🙂


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors