stephensurya
16 years agoNew Contributor
REST testing - how to pass path parameters from Java code
(I'm a newbie so forgive me if the question is pretty basic)
Hi,
I'm trying the Junit integraiton with the example at:
http://www.soapui.org/userguide/command ... unner.html
I see two ways to execute a particular test case from Junit - the examples are "testRunner" and "testTestCaseRunner". I got both of them working in my end to test my REST services.
Now, how do I pass a PATH parameter from Junit - say my REST path looks like this:
http://localhost:8080/myapp/rest/users/{userId}/purchase
I want to set the value of {userId} from my Junit test case - how do I do this?
thanks,
Stephen
Hi,
I'm trying the Junit integraiton with the example at:
http://www.soapui.org/userguide/command ... unner.html
I see two ways to execute a particular test case from Junit - the examples are "testRunner" and "testTestCaseRunner". I got both of them working in my end to test my REST services.
Now, how do I pass a PATH parameter from Junit - say my REST path looks like this:
http://localhost:8080/myapp/rest/users/{userId}/purchase
I want to set the value of {userId} from my Junit test case - how do I do this?
thanks,
Stephen