Usage¶
Send a request on a service already configured¶
- Register manually environment, then service
- Call http://<server>:<port>/soap/<environment>/<localTarget> for a SOAP service or http://<server>:<port>/rest/<environment>/<localTarget> for a REST service.
Send a request on a service not configured¶
Auto register SOAP service by calling http://<server>:<port>/autosoap/<group>/<environment>/<remoteTarget> Auto register REST service by calling http://<server>:<port>/autorest/<group>/<environment>/<remoteTarget>
Example : http://localhost:9010/autosoap/myNewGroup/myNewEnvironment/http://localhost:8080/myWebservices
Jenkins Integration¶
If a ServiceAction’s response time is > threshold, a failed test is generate and visible on Jenkins.
- Create a job, with a shell execution:
rm *.xml ; wget http://<server>:<port>/statsAsJunit/yesterday/yesterday/ -O result.xml
- Add a publish test Junit to view all ServiceAction’s result time.
- Url parameters : http://<server>:<port>/statsAsJunit/<minDate>/<maxDate>/ with minDate / maxDate like : 2012-12-10T00:00, yesterday, today
- You can add extra parameters to the URL, three parameters can be set : treshold, environment and service.
Example : http://localhost:9010/statsAsJunit/group/yesterday/today?service=myService&environment=dev&treshold=10000 This url create a Junit test that check if all actions result time of the ServiceAction ‘myService’ for the environment ‘dev’ are lower than 10 000 ms. You can also test all services of an environment (without setting the service parameter) or test a specific service on all the environments (without setting the environment parameter).