Forum Discussion
SiKing
10 years agoCommunity Expert
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.
Related Content
- 5 years agoryanterronez
- 3 years agoEgg
- 9 years agobreaux