Update a Web Service

Relevant for: API testing only

This task describes how to update a WSDL-Based Web Service that was already imported and incorporated into a test.

Prerequisites

If you want to update the WSDL from ALM, make sure you have an open connection to the ALM server.

Back to top

Update the service

To update a service from its original location In the Toolbox pane, right-click the main service node and select Update WSDL.
To update the service from another location or if the Update WSDL option is not available
  1. Select the service's main node in the Toolbox pane.

  2. Choose Update WSDL from > URL or UDDI or Update WSDL from > File or ALM Application Component from the right-click menu.

  3. Navigate to the WSDL and click OK.

    IMPORTANT: The service or service location URL must be accessible when updating the service.

  4. Accept any warning or informational pop-ups.

Note: The Update WSDL option may not be available if the user credentials changed or if the service was imported using Service Test or an earlier version of UFT.

Back to top

Run the Update Port Security wizard - optional

If UFT detects a change in the port path (<service name:port name> combination) the Update Port Security Wizard opens. The wizard only opens if you configured security settings for the original service. Follow the steps of the wizard to resolve all of the Service/Port conflicts.

Note: The wizard imports all of the services defined in the WSDL, even those deleted manually before the update. To remove them from the Toolbox pane, delete them again manually, after the update.

Back to top

Run the Update Step wizard

If a test step became invalid because an operation name changed or properties with values were changed, then the canvas marks the step with a warning marker.

  1. Click the warning marker to display the message The step must be resolved. Resolve step. Click on the message text. The Update Step Wizard window opens.

    Note that the step's properties become read-only, until you resolve them with the help of the wizard.

  2. In the Select Operation page, click in the New Operation pane and select the operation that corresponds to the one in the Original Operation pane. Click Next. Properties for which conflicts were detected are highlighted in red.

  3. In the page, in the Original Properties pane, select a property for which there is a conflicUpdate Input Propertiest, highlighted in red. In the right pane, New Properties, select a property to map.

    Click Map. The wizard adds the mapping to the list in the bottom pane. Repeat this for all properties that you want to map. Click Next.

  4. In the Update Output Properties page, select a property for which there is a conflict, highlighted in red. In the New Properties pane select the property to which you want to map. Click Map. The wizard adds the mapping to the list of mappings in the bottom pane. Repeat this for all properties that you want to map. Click Next.

  5. Click Finish to save your changes and close the wizard.

Back to top