Forum Discussion
SiKing
11 years agoCommunity Hero
Finally hacked it!
These things are not the path, they are the properties! You need to use:
Also, RequestFilter.filterRequest event runs after the request is submitted! (Could this be a bug?) So only the SubmitListener.beforeSubmit event works correctly.

These things are not the path, they are the properties! You need to use:
def x = context.expand("\${#TestCase#variable_x}")
def y = context.expand("\${#TestCase#variable_y}")
def z = context.expand("\${#TestCase#variable_z}")
def multi = submit.request.addProperty("multi[${x}][${y}]")
submit.request.setPropertyValue(multi.name, z)
Also, RequestFilter.filterRequest event runs after the request is submitted! (Could this be a bug?) So only the SubmitListener.beforeSubmit event works correctly.
