Working With WebService Editor

Applies to TestComplete 14.72, last modified on April 22, 2021

This topic describes common tasks you perform in the WebService editor.

To select another web service

To specify another web service, whose data will be displayed in the editor, do the following:

  • Click Select. This will call the Select Web Service dialog.

  • In the dialog, specify the location of the WSDL document, select the desired web service and the version of the SOAP protocol that will be used for testing.

To update information on the tested service

  • To refresh information on the tested web service, click Refresh. TestComplete will retrieve data from the WSDL document and update the editor.

To explore the service’s methods and types

The web service’s methods are displayed under the Methods node in the type and methods tree. The definitions of the objects used by the methods are displayed under the Types node of the tree.

The syntax of the selected method is shown at the bottom of the page. This information is helpful when creating script code. The syntax section is automatically hidden, when you select a node of the Types section.

The method’s parameters are shown as child nodes of the method’s node. The [Result] node displays the type of the method’s result value. Similarly, the object properties are shown by child nodes of the object’s node.

The Data Type column displays the type name of a method parameter or object property. For the parameters and properties that are arrays, the editor displays parentheses or brackets next to the type name in the Data Type column. Which symbols are used depends on the scripting language of your TestComplete project. For example, in JScript, C++Script and C#Script projects, TestComplete uses brackets while in VBScript projects parentheses are used.

If the parameter or property refers to an object, you can select the parameter (or property) in the tree and then click Go to Definition in the Data Type cell to explore the properties of this object. The editor will highlight the object definition in the tree.

To return to the property or parameter you explored before, click (it resides above the top right corner of the tree).

To find a method, parameter or data type

  • Click somewhere within the tree of data types and methods.

  • Start typing the name of the desired method, parameter or data type. TestComplete searches for the appropriate item in the tree while you are typing and sets the focus to the item found first.

To generate a script that will create an object

See Also

About WebService Editor
Creating Web Service Tests
Testing Web Services - Overview

Highlight search results