Events Tab (Properties Pane - API Testing)

Relevant for: API testing only

This tab enables you to enter custom code to run special custom code in conjunction with the steps of your test.

To access
  1. Open the Properties pane.

  2. Select a test step in the canvas.

  3. In the Properties Pane, select the Events tab .

Relevant tasks Open a window for writing custom code
See also Event Handlers for API test steps

User interface elements are described below (unlabeled elements are shown in angle brackets).

UI Element

Description

<Events list> - default

A list of events for the activity:

  • CodeCheckPointEvent. Triggered when the activity is executed.

  • AfterExecuteStepEvent. Triggered after the activity was executed.

  • BeforeExecuteStepEvent. Triggered before the activity is executed.

  • ExecuteEvent. Triggered when the activity in the step is run.
<Events list> - Conditional. Loop steps Condition. Defines the conditions under which the code should be run.
<Events list> -
HTTP Receiver
  • OnFilter. The code to execute when the messages are filtered.

  • ReceiveRequest. The code to execute when a request is received.

  • SendResponse. The code to execute when a response is sent.

<Events list> -
IBM Websphere MQ
  • BeforeCreateQueueManager. Code to execute before creating a Queue Manager.

  • BeforeMQGet. Code to execute before getting the messages from the MQ queue through browsing.

  • AfterMQGet. Code to execute after getting the messages from the MQ queue through browsing.

  • BeforeMQPutMessage. Code to execute before putting a message from the MQ queue.

  • AfterMQPutMessage. Code to execute after putting a message from the MQ queue.

  • BeforeMQGetMessage. Code to execute before getting a message from the MQ queue.

  • AfterMQGetMessage. Code to execute after getting a message from the MQ queue.

  • BeforeMQPublishMessage. Code to execute before publishing a message to an MQ topic.

  • AfterMQPublishMessage. Code to execute after publishing a message to an MQ topic.

  • BeforeMQReceiveMessage. Code to execute before receiving a message published on an MQ topic.

  • AfterMQReceiveMessage. Code to execute after receiving a message published on an MQ topic.

<Events list> -
Wait
  • TimeoutReached. The code to execute when the timeout (Input properties) is reached.