Forum Discussion
Hflower
13 years agoOccasional Contributor
Hi thanks for the reply
It makes sense, but I think it's over my head
(beyond my Java skills)
There isn't a RequestFilter button on the TestSteps Editor screen
I've found this
http://www.soapui.org/apidocs/com/eviwa ... ilter.html
But I don't know how to use it if I'm not calling it from a Groovy script?
The problem with sorting the parameters is I don't know where the sort is stored or how to access that field, it could be within the generated WADL or when you view the parameters in the bottom left corner window and move them up and down or sort alphabetically.
I'd like to have a function/method that doesn't need to know what the parameter names are before it can write them out, then I can reuse that function with all my tests on my Different Resources (who each have different parameter requirements).
Or else I have to write a different function for each Resource test - not good for code reuse or fixing bugs etc
From my Groovy script:
Path is now /data/app/ws/rest/companies/role/search/v1.0?page=2&q=smith&type=DIR&size=3
From the Request
Path is now /data/app/ws/rest/companies/role/search/v1.0?page=2&q=smith&size=3&type=DIR
I haven't noticed but does the Request parameters always come out alphabetically? Is the Sort only used to show in the fields in the GUI like the Form for the Rest Test Request?
thanks
It makes sense, but I think it's over my head

There isn't a RequestFilter button on the TestSteps Editor screen
I've found this
http://www.soapui.org/apidocs/com/eviwa ... ilter.html
But I don't know how to use it if I'm not calling it from a Groovy script?
The problem with sorting the parameters is I don't know where the sort is stored or how to access that field, it could be within the generated WADL or when you view the parameters in the bottom left corner window and move them up and down or sort alphabetically.
I'd like to have a function/method that doesn't need to know what the parameter names are before it can write them out, then I can reuse that function with all my tests on my Different Resources (who each have different parameter requirements).
Or else I have to write a different function for each Resource test - not good for code reuse or fixing bugs etc
From my Groovy script:
Path is now /data/app/ws/rest/companies/role/search/v1.0?page=2&q=smith&type=DIR&size=3
From the Request
Path is now /data/app/ws/rest/companies/role/search/v1.0?page=2&q=smith&size=3&type=DIR
I haven't noticed but does the Request parameters always come out alphabetically? Is the Sort only used to show in the fields in the GUI like the Form for the Rest Test Request?
thanks