"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "docs/tcpmon.html" of archive TestMaker.zip:


Caution: In this restricted "SfR Fresh" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted source code. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.

Network Monitor

Related topics

TestMaker Briefing
TestMaker Tutorial
Recording AgentsExample Agents
Recording Agents
XSTest Load Test
TestMaker Script Guide
TOOL Guide
Testing Email Services

Frequently Asked Questions
License Details
TestMaker Platform (TestNetwork)
Support Options
Updates & Downloads (on-line)
On-line Documents

Published: April 17, 2006
Applies to: TestMaker 4.4


Network Monitor Guide

Software developers, QA technicians, and IT managers often need to see the HTTP, SOAP, and XML-RPC messages being used to invoke Web applications and web services along with the results of those messages. The network monitor provides a way to monitor the messages being used.

To start the network monitor use the Tools -> Network Monitor command in TestMaker. The network monitor window will appear and the administrative tab will appear by default.

 

To begin monitoring messages select a local port which the network monitor will check for incoming connections. For example, to monitor at port 8091 click on the Listen Port # text edit field and enter 8091.Click the Add button. The monitor for port 8091 will appear in a tab labeled Port 8091.


Each time a connection is made to port 8091, the request appears in the "Request" panel, and the response from the server in the "Response" panel. The network monitor keeps a log of all request/response pairs, and allows you to view any particular pair by selecting an entry in the top panel. You may also remove selected entries, or all of them, or choose to save to a file for later viewing.

Use the network monitor to watch the communication between a TestMaker test agent and a service host. To do so you need to use TestMaker's proxy support. For example, below is a TestMaker script that makes an HTTP Get request to the http://examples.pushtotest.com/responder/htmlresponder application through the network monitor at port 8091.

from com.pushtotest.tool.protocolhandler import ProtocolHandler
protocol = ProtocolHandler.getProtocol("http")
protocol.setUrl( "http://examples.pushtotest.com/responder/htmlresponder" )
protocol.setProxyHost( "localhost" )
protocol.setProxyPort( 8091 )
response = protocol.connect()
print "Response = ", response

The network monitor offers a few handy features. The "resend" button will resend the currently viewed request, and record a new response. The network monitor also lets you edit the XML in the request window before resending. (You may need to change the content-length HTTP header value before resending an edited request.)

TestMaker saves the network monitor settings and any open monitors when TestMaker exits. The next time TestMaker starts it automatically starts the previously open monitors.

The monitor is based on the TCPMonitor utility from the Apache Axis project.

 


Where to go from here:

TestMaker Script Language Reference

Reference to the TOOL test object library

A guide to the example agents that come with TestMaker

A list of frequently asked questions

Building test agents to check email services for scalability and functionality

 

Additional documentation, product downloads and updates are at www.PushToTest.com. While the TestMaker software is distributed under an open-source license, the documentation remains (c) 2006 PushToTest. All rights reserved.