+

Search Tips   |   Advanced Search


Socket API test editor overview

You use the test editor to inspect or customize a socket API test that you recorded.

The test editor lists the connections and data exchanges for a test as they occurred during the recording.

The test editor window has two main areas. The area on the left, Test Contents, displays the flow of the socket events that constitute the test. The area on the right, Test Element Details, displays details about the currently selected test element in the test hierarchy. Values can sometimes be highlighted in green. This highlighting indicates that these requests contain one or both of the following types of information:

To see an illustration of color coding in performance tests or to change the color settings, click Window > Preferences > Test > Fonts and Colors.

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, after you select a test, you can add a new event.

The Insert button works similarly. Use it to insert an element before the selected element. Use the other buttons (Remove, Up, Down) primarily when you substantially modify a test.Tip: Performing actions with these buttons or choices are likely to break a recorded test. The types of structures that are commonly used in recorded tests are explained in Add elements to a socket API test.

Sometimes, the area of the editor where you need to work is obscured. To enlarge an area, move cursor over one of the blue lines until cursor changes shape to a vertical line with an up arrow at the top and a down arrow at the bottom, and drag up or down while holding the left mouse button.


Display binary data

With the Socket Details view, you can display the binary data for send and receive elements in the test. The text area of the Socket Details view supports many international character encoding standards.

To open the Socket Details view, right-click a socket send or receive element, and click Show Socket Details.

In the test log, the Socket Details view also displays actual the actual binary data sent and received during a test run.


Manipulating elements in the socket test editor

Socket tests are often made of a long series of send and receive elements to or from various connections. The test editor helps you to locate specific elements and to manipulate certain types of elements in the test editor. The following examples demonstrate how you can select and manipulate large sets of test elements:


Related

  • Socket API performance testing overview
  • Socket performance testing guidelines


    Related tasks

  • Record socket tests
  • Merging socket send and receive elements
  • Change multiple socket send and receive elements
  • Add elements to a socket API test