HTTP Test Tool

Generate Scripts With a Proxy

With the htproxy a broser session can be written as a httest script

Getting started

Get usage text with
htproxy -h

Start the proxy with for exymple
htproxy -p 8888 -d output/file.htt

and configure your browsers proxy to localhost 8888. The htproxy starts a shell. Display help text with the shell command 'H'.

Selectiv Script Writting

If you do not like to record all request you can define a blacklist filter with the option -u for example like that
htproxy -p 8888 -d output/file.htt -u "(.∗\.jpg$)|(.∗\.gif$)|(.∗\.css)"

This filter do ignore all jpg, gif and css request with in the generated script

Add Expects

While recording you can add expects to your generate httest script with the shell command 'e' or 'expect'. For example you expect a Title "My Title" in the answer of the server just add this as follow:

e My Title
or
expect My Title