Using a variable as test data value input

I assume I should be able to do this, and I’m getting an error. Should I be able to use a variable in test data values, for example, the Value Type of Variable and the Value being the Variable name? I’m just trying to pick a name in a spreedsheet based on the day of the year, so I have 356 names in a file and today it would pick the 193rd one…but I’m getting this error: FAILED because (of) groovy.lang.MissingMethodException: No signature of method: com.kms.katalon.core.testdata.reader.SheetPOI.getValue() is applicable for argument types: (java.lang.Integer, java.lang.String) values: [1, 193]

Possible solutions: getValue(java.lang.String, int), getValue(int, int), getClass(), getType()

Can anyone help? Thank you!!

Test Data Value.png

As the error message suggests, the signatures for getValue() are:

  • getValue(String, int)
  • getValue(int, int)

Error occurred because you passed getValue(int, String).