07 November 2008 - 2.5-beta2 |
soapUI Pro introduces a number of wizards to greatly easy the creation of property transfers and XPath assertions. They are all available from a right-click menu in the Outline Editor and are described in detail below
This wizard is available in the TestRequest Request Message Editor and the MockResponse Response editor. Right-click the node in the Request Outline View which you want to transfer to, the following popup menu will be displayed:
The popup displays all TestSteps with their readable properties in a submenu. If the step is a Properties Step a "Create New" option will be displayed at the bottom. There are 4 ways to continue;
All of these option will eventually open the "Transfer from Property" dialog:
The dialog will be filled out depending on which option that was chosen; any of the first three options will result in a complete dialog that can be finished with the OK button without further input. The dialogs' first tab has the following options:
The remaining Source XPath and Target XPath tabs contain editors for there corresponding XPath expression together with an option to use the XPath Selector to set this value.
When closing the dialog, the corresponding Property Transfer or Property Expansion will be created as specified in the dialog. In the above example, selecting the "Create Property Expansion" option and pressing OK created the following syntax in our request;
This wizard corresponds to the above and creates a Property Transfer from the selected node to a target node. It is available in the TestRequest Response Outline Editor and the MockResponse Request Editor. Right clicking the desired source node will show the following popup menu:
The popup displays all TestSteps with their writable properties in a submenu. If the step is a Properties Step a "Create New" option will be displayed at the bottom. There are 4 ways to continue;
All of these option will eventually open the "Transfer to Property" dialog:
The dialog will be filled out depending on which option that was chosen; any of the first three options will result in a complete dialog that can be finished with the OK button without further input. The dialogs' first tab has the following options:
The remaining Target XPath and Source XPath tabs contain editors for there corresponding XPath expression together with an option to use the XPath Selector to set this value.
Finishing the dialog will create a property transfer as specified and optionally open the Property Transfer editor containing the created transfer
This wizard can be used to quickly create XPath assertions for either TestRequest response messages or MockResponse request messages. The wizard is available from either messages Outline Editor as follows;
Selecting one of the available XPath assertion types will create a XPath Match assertion with the corresponding XPath expression and expected value, for example for the above when selecting "for Count", the following dialog is shown;
The dialog has all fields filled out based on the selected node and its value. Here one can modify the XPath expression further and/or save/cancel the creation with the corresponding Save/Cancel buttons