-
Notifications
You must be signed in to change notification settings - Fork 14
MQ Test Step
MQ test step is normally used in combination with other test steps such as SOAP, IIB, etc. to create automated test cases. However, you can also use it to manually operate on an MQ queue or topic. (Actually, most types of test steps in Iron Test can be used to individually/manually invoke target API)
Actions available in the MQ test step: Clear Queue, Check Queue Depth, Enqueue, Dequeue, Publish.
To operate on an MQ queue, some parameters are needed for Iron Test to connect to the queue manager.
Enqueue action is used to PUT a message into a queue. You can provide the message in two ways.
Click the Do button to PUT the message into the queue.
You can also include an MQRFH2 header, with one or more MQRFH2 folders, in the message, like below. Notice that each RFH2 folder must be a valid XML document.
<mcd> // an MQ defined/reserved RFH2 folder
<Set></Set>
<Type></Type>
<Fmt></Fmt>
<Msd>xmlnsc</Msd>
</mcd>
<customFolder1> // a custom RFH2 folder
<field1>value1</field1>
<field2>value2</field2>
</customFolder1>
Message in the file can contain MQMD header which will be recognized by Iron Test. If there is no MQMD header, Iron Test will generate one.
Again, click the Do button to PUT the message into the queue.
Dequeue action is used to GET a message from a queue. You can assert the returned message content (currently only XML message is supported).
Click Do button to get the message, and click Verify button to verify the assertion.
- Iron Test Usages
- Testing Practices
- Other