Pass dynamic "row" value in data driven approach for a Web Service Request?


#1

I’m just getting started with creating API tests. I created a new “Web Service Request”, added a couple of variables.

2019-06-14_11-22-54

One of them is a “Test Data Value” variable, which looks like this:

Name: teamId
Type: Test Data Value
Default value: findTestData(“Folder/DB_Query”).getValue(1,1)

2019-06-14_11-21-50

Is there any way to make the “Row” value dynamic? I don’t always want to be testing with column 1 and row 1. I’d like to make it a random number between 1 and 100.

I’ve done this before within test cases using java-faker and randombetween, but not in test objects.