Creating basic stubs
A basic stub, also called a hardcoded stub, is a stub that always returns the same response. You can create a basic stub from recorded events by using the Recorded Events wizard from the Recording Studio perspective.
You can use the Recorded Events wizard to create a basic stub by selecting the
events that you want to simulate in the stub and assign operations to the stub. You can group the
messages or events into transactions. You can choose to either persist the global rules, disable the
global rules, or delete the temporary rules from impacting the grouping in the current wizard
session. You can define keys and allow them to persist beyond the current wizard session. You can
choose to modify the headers. You can then review the created stub and save it.
Restriction:
The basic stub does not execute any other operations, such as performing
calculations, looking-up data, or making decisions.
The Test Factory perspective of Test Integrations and APIs is displayed and the newly created stub is displayed under the relevant logical resource on the Test Factory component tree. If you created a stub for multiple operations, the stub is displayed under each applicable operation.
If you selected the Open resource after finish check box in the Summary window, the stub is opened in the Stub Editor.


