WebStoryUnit

Request Recorder for HttpUnit Tester Ver0.4

[Japanese] [English]

2004.1.18 Tomoyuki Akiyama
mailto:Interplay3D@ybb.ne.jp.NOSPAM 

a.Outline

The HttpUnit code generation which recorded the operation from a web browser is performed. 
The same test is repeated and can be performed as this operated the browser.
The time of creation of simple repetition work or a HttpUnit[*1] program becomes unnecessary.
Please utilize the saved time for another missions. 
This program provides a development team not with "a quantitative improvement" but with "a qualitative innovation."

 

b.Environment of operation

Server side: Servlet2.3 should operate. 
Client side: A web browser and HttpUnit1.5.4[*1]

 

c.Setup

First, please download WebStoryUnit here.

Server side
The following files corresponding to a war file are arranged collectively.
1.The JSP file in a httpunitlogs folder is added.
2.org.interplay.httpunitutil.HttpUnitSamplerFilter classes are added.
3.org.interplay.httpunitutil.HttpUnitSampler.properties is changed if needed.
A default setup is for [ Japanese ] Windows2000 environment.
4.The above-mentioned class is added to web.xml as a filter.

Client side
Preparation of a browser.
Environmental preparation of HttpUnit of operation. 

 

d.Usage

1.Operation to record from a browser is performed briefly.
2.A browser will be closed if operation is finished briefly. (A session is finished)
3.It accesses to http://<server:port>/<ContextRoot>/httpunitlogs/RecordingList.jsp.
4.A button is pushed and the corresponding code portion of an operation history is copied.
5.It compiles and the code copied by the client side is re-performed. And the code outputted to the console of JUnit is copied.
6.Please perform the copied code after build. If it curves, it will be the reappearance test of operation of 1.

 

e.Restriction matter

The following messages may be displayed into Code of final HttpUnitTest.

line 16 column 1 - Error: <cenetr> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

It is the appearance of a cause that Tidy has not supported the <cenetr> tag.
Since it becomes a compile error, please delete.

f.Notes

Please use this program only by the development server for a test. 
Deletion of a request log should push the deletion button of the screen of [usage] 4. 
While not performing the operation, the memory of a session is wasted forever.

 

g.Footnote

*1 http://httpunit.sourceforge.net/