Test Data for DropDown?

I have a drop down with 22 options, I want to iterate through all those 22 options.

I created a test data, However i’m having trouble i’m getting this error

Test Cases/Functional/Create FIMS/LightingSystems/HOSPICE/Create_FIM_LightingSystems_ReplaceLights_Multiple_HOSPICE FAILED because (of) (Stack trace: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
file:/C:/Users/Liezl%20Del%20Castillo/git/Setmetrics.Katalon/Scripts/Functional/Create%20FIMS/LightingSystems/HOSPICE/Create_FIM_LightingSystems_ReplaceLights_Multiple_HOSPICE/Script1547080430512.groovy: 16: unable to resolve class ExcelData 
 @ line 16, column 11.
   ExcelData data = findTestData('null')
             ^

file:/C:/Users/Liezl%20Del%20Castillo/git/Setmetrics.Katalon/Scripts/Functional/Create%20FIMS/LightingSystems/HOSPICE/Create_FIM_LightingSystems_ReplaceLights_Multiple_HOSPICE/Script1547080430512.groovy: 18: unable to resolve class ExcelData 
 @ line 18, column 11.
   ExcelData fimNameData = findTestData('FIM_Name_SpaceType')
             ^

2 errors

HELP PLEASE

Hi @Liezl_Del_Castillo,

Your test case is missing:
import com.kms.katalon.core.testdata.ExcelData
Please add this line in the top of your test script.
Thanks

1 Like