Configuring stub pass-through behavior

You can configure a stub to use pass-through actions in HCL OneTest™ API in three ways.
Note: You must configure the transport associated with a stub to use the pass-through action. For details, see Properties tab and Configuring transports to use the sift-and-pass-through capability.
The following table outlines the methods using which you can configure a stub:
Method Application Description
Use the Pass-Through window on the Properties tab of the Stub Editor HCL OneTest™ API

The transport type (HTTP, IBM® WebSphere® MQ, or WebMethods Integration Server) associated with a stub determines the range of possible pass-through actions for each operation within a stub.

The Pass Through window on the Properties tab on the Stub Editor is used to configure a specific pass-through action for each operation in the stub (irrespective of the number of events that are defined for each operation) that will be executed if the stub cannot process any requests from any of the relevant transport types (HTTP, WebSphere MQ, or WebMethods Integration Server).

Irrespective of the number of events (configured on the Events tab of the Stub Editor) that are defined for each operation within a stub’s properties, there can be only one pass-through action for each operation. (For instructions, refer to the table in Properties tab.)

Customize a stub’s execution to use the sift-and-pass-through capability temporarily HCL OneTest™ API
Instructions:
  1. Right-click the stub on the Test Factory perspective.
  2. Click Run… on the shortcut menu. The Customized Execution dialog box is displayed.
  3. Modify the pass-through actions (for information about this method, refer to table in Properties tab).
  4. Click Run.
Modify a stub’s properties to use the sift-and-pass-through capability before starting the stub HCL Quality Server For instructions, see Starting stubs: HCL Quality Server method.
Add a Pass Through action to the stub HCL OneTest™ API For instructions, see Stub actions.
Feedback