Forum Discussion

avasile's avatar
Occasional Visitor
7 years ago

SoapUI RequestFilter



I try to create a request filter in SoapUI 5.3.0 where I want the request body to be modified on-the-fly before it is sent to the destination.


In my RequestFilter I tried to update the modified body using different approaches:




but none of them will update the request sent to the destination on the first try. I can see that the body is updated in the REST request window and second try (run the request manually again) succeeds.


Also, how can I get the current test suite or step properties either from SubmitContext or RestRequestInterface?


Third, are the filters stateless? How can I cache some object that are expensive to build?