Simulating services with stubs
Service stubs enable you to simulate the behavior of an actual service for a wide variety testing or integration purposes.
- Service stub overview
Service stubs are simulations of an actual service, which can be used to functionally replace the service in a test environment. A stub server replaces the actual application server.- Create a service stub
You can use a WSDL (Web Service Description Language) specification file to generate a service stub that can simulate the behavior of the original service and uses the exact same interface.- Editing a service stub
Service stubs are generated with a single default response for each operation in the WSDL specification. You can edit the service stub to change the default responses or to add conditional responses that can simulate the actual service.- Deploying service stubs
You deploy and run service stubs on a stub server, which is a small application server dedicated to running service stubs. The client application, or test, addresses the stub server instead of the actual application of the original service.- Add stub servers to a performance schedule
If you are using Rational Performance Tester, you can automate the deployment of stub servers in a performance schedule.