Testing a Service Registry
A service needs to be tested to ensure that it is working based on the given input conditions. The following documentation applies to REST-based, expression and script services.
Preconditions
To test a service registry before publishing, testing needs to be enabled. This can be done by setting the following properties for Flowable Design:
flowable.design.service-registry.enable-service-test=true
flowable.design.remote.idm-url= # URL to Flowable Work, e.g. http://localhost:8090
And since the testing is happening through Flowable Work, the following property for Flowable Work:
flowable.service-registry.enable-service-test=true
Testing a service
To test a service model open a specific operation to test. In the operation, there is a tab 'Test Operation'.
Once the tab 'Test Operation' is selected, the input fields can be filled out.
In case you are testing a stateful API, the actual execution will be done. Please ensure that you only execute operations which you want to execute.
As soon as all required fields are filled out, the 'Test' button can be pressed.
The request will be executed and the result including the mapping is displayed next:
In the response tab the following information is available:
- Full response provided by the REST API.
- Mapped result, the full response mapped according to the configuration properties
- Status code returned by the service
- Response headers provided by the service
- Request body, as it was sent to the service
- Request method, the HTTP method in case applicable
- Request URL, the concatinated URL based on the base as well as the operation specific URL
- Request headers sent to the service