ActiveVOS Designer User’s Guide

Commands

Open a B-unit file in the BUnit editor, and select Commands from the Outline view. To add a command, right-mouse click on BPEL Unit.

Commands send messages to the BUnit test engine to execute the test logic.

The commands you can add are as follows:

Send Message

Sends WSDL messages to the test engine.

Select an Operation for the specified partner link.

Delivery Options.

  • Async. Controls whether or not two receives can execute in a row, without waiting for the reply associated with the first receive to complete
  • Delay. Wait value that the BUnit waits before starting to check the Timeout.
  • Timeout. Sets a value for the how long the test engine should wait for process completion. This setting ensures that the invokes complete with the correct count.

Message Context. Optionally specify the meta-data for the incoming message, including the authenticated principal, and other message header data.

Wait Until

Checks for the execution completion of the process.

  • Delay. Wait value that the BUnit waits before starting to check the Timeout.
  • Timeout. Sets a value for the how long the test engine should wait for process completion. This setting ensures that the invokes complete with the correct count.
  • Fail on Timeout. Enable this check box to fail the test if the process does not complete within the timeout value.

Terminate Process

Terminates a process instance for one of the processes in the BUnit test, if you are running more than one process.

Assert Process State

Asserts the execution state of the process that you specify.

  • Process State. Running, suspended, complete, faulted, final. Select final to assert completed and faulted states.
  • Process Id. Used only if you are running the test on multiple BPEL files.
  • Delay. Wait value that the BUnit waits before starting to check the Timeout.
  • Wait for Async. If you have Async selected in a Send Message command for the same process, this property allows you to wait to assert the process state until all asynchronous activities have completed.

See also, Editing a B-unit File.