06 August 2007 - 1.7.5 | home user-guide eclipse jbossws intellij netbeans maven 1.X/2.X PDF files forums bugs sourceforge

Home
Getting Started
User Guide

- Overview
  - Tabbed Desktop
  - License Management
  - Preferences
  - XPath Selection
  - Script Library
- Workspaces
- Projects
- Interfaces
  - Interface Viewer
- Operations
- Working with Requests
  - Form Editor
  - Outline Editor
  - Message Inspectors
  - Attachments/Inline Files
- Functional Testing
  - Getting Started
  - TestSuites
  - TestCases
    - Test Requests
      - Assertions
      - Editor Wizards
    - Property Transfers
    - Conditional Gotos
    - Groovy Scripts
      - Examples
      - GroovyUtils
    - Properties Step
    - Delay Step
    - Mock Response
    - DataSource
    - DataSource Loop
  - Property Expansion
- Load Testing
  - Getting Started
  - Limit & Strategies
  - Execution
  - Assertions
  - Diagrams
  - JMeter comparison
- Mocking
  - Getting Started
  - Mock Services
  - Mock Operations
  - Mock Responses
- Usage Scenarios
  - Data-Driven Testing
  - Template-Driven Testing
  - Interactive Testing
  - Surveillance Testing
- Tool Integrations
  - Code Generation
  - WSDL Generation
  - WS-I Tools
  - Apache Tcp-Mon
- CommandLine Tools
  - TestCaseRunner
  - LoadTestRunner
  - MockServiceRunner
  - ToolRunner
- Keyboard shortcuts

IDE/Tool Plugins
Search soapUI site
Project Documentation

- About soapUI
- Project Info
- Project Reports

## soapUI Pro Request/Response Wizards

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

- Request Transfer From Wizard: Creates a Property Transfer to the selected node
- Response Transfer To Wizard: Creates a Property Transfer from the selected node
- Response Add Assertion Wizard: Creates an XPath Assertion for the selected node

### Transfer From Wizard

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;

1. Select an existing source property, if the selected property contains an XML Value, the XPath Selector will be shown to create the source XPath expression for the transfer.
2. Select the "Create New" option for a Properties Step which will prompt for a property name
3. Select the "Add Properties Step" option which will prompt for both a Properties Step name and a property name
4. Select the "Property" option

All of these option will eventually open the "Transfer from Property" dialog:

The dialog will be filled out depending on which option that was choosen; 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:

- Source Property - the source property to transfer from, contains the selected property if possible
- Soruce Step - the step containing the source property, contains the selected step if possible
- Create Property Expansion - creates Property Expansion for transferring the property instead of a property transfer. Selecting this option disables all following options.
- Transfer Name - the name of the created transfer in the selected Property Transfer Step, preset with the name of the selected node if possible
- Property Transfer - the property transfer step to create the transfer in, preset to the first available transfer before the current Request Step. If no such step is available, soapUI will prompt for the name of the step to be created when finishing the dialog.
- Open Editor - opens the Property Transfer editor for the containing Property Transfer step after creation

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;

### Transfer To Wizard

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;

1. Select an existing target property, if the selected property contains an XML Value, the XPath Selector will be shown to create the target XPath expression for the transfer.
2. Select the "Create New" option for a Properties Step which will prompt for a property name
3. Select the "Add Properties Step" option which will prompt for both a Properties Step name and a property name
4. Select the "Property" option

All of these option will eventually open the "Transfer to Property" dialog:

The dialog will be filled out depending on which option that was choosen; 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:

- Target Step - the step containing the target property, contains the selected step if possible
- Target Property - the target property to transfer to, contains the selected property if possible
- Transfer Name - the name of the created transfer in the selected Property Transfer Step, preset with the name of the selected node if possible
- Property Transfer - the property transfer step to create the transfer in, preset to the first available transfer after the current Request Step. If no such step is available, soapUI will prompt for the name of the step to be created when finishing the dialog.
- Open Editor - opens the Property Transfer editor for the containing Property Transfer step after creation

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 containg the created transfer

### Add Assertion Wizard

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

Next: