Web service test editor overview

With the test editor, you can inspect or customize a test that you recorded.

The test editor lists the web service call elements for a test, in sequential order.

There are two main areas in the test editor window. The area on the left, Test Contents, displays the chronological sequence of test elements in the test. The area on the right, Test Element Details, displays details about the currently selected item (test, call, message return, or verification point) in the test hierarchy.

Window events are the primary test elements in a Citrix test and represent graphic objects that are drawn by the Citrix server, such as actual window, dialog boxes, menus, or tooltips. A Window event is recorded each time a window is created, destroyed, moved, or resized. The first occurrence of a window, a create window event, is displayed in bold. Window objects are typically identified by their title. If there is no window title, for example on menus or tooltips, then the test editor uses the window ID number.

A service request node name can be updated automatically or you can use custom code or datapool to supply different names. To apply a datapool to a node name, in the test editor, select the node name. In the Request Details area of the test editor, clear the Update node name automatically, select the name and substitute it with datapool.

Web service calls can contain web service message return elements, which display the results of the web service call. The XML message content can be displayed either in Form, Tree or Source view. Each of these views displays the same message content in different forms:
  • Form view provides a simplified view of the call elements focused on editing the values of the XML message content.
  • Tree view provides a hierarchical view of the XML structure, including elements, namespaces, and the associated values. Tree view also allows you to manipulate XML fragments.
  • Source view displays the XML contents of a web service or XML call or the plain text contents of a simple text message.

Message return elements can contain verification point elements that check that the actual return results match expected criteria.

Some actions contain data that is highlighted. This highlighting indicates that the data can be used as a datapool candidate or as a reference. See Data correlation overview for more information.

In service calls and message returns, you can use datapools and data correlation on values contained in the XML or on XML fragments. To use data correlation on XML fragments, switch to the Tree view, right-click the XML element and select Create XML Fragment.

To view or modify the color coding in web service tests, click Window > Preferences > Test > Test Editor, and then click the Fonts and Colors tab.

Click Add to add elements to the selected test element. Alternatively, you can right-click a test element and select an action from a menu.

The choices that you see depend on what you have selected. For example, inside a web service call, you can add a web service message return. The Insert button works similarly. Use it to insert an element before the selected element. The Remove button allows you to delete an item.

Feedback