ht

module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2015 License: BSD-3-Clause

README

HTTP Testing Made Easy

End-to-end testing of HTTP requests/responses is easy with Go.

Writing and maintaining high level test is even easier with ht.

Goals

ht tries to achieve the following:

  • Make generating all common HTTP requests easy.
  • Provide high- and low-level checks on the received response.
  • Make measuring response times easy.
  • Make it easy to generate a certain load.

Non-Goals

ht is not the jack of all trades in testing web applications:

  • Simulating browsers (evaluating JavaScript or even rendering is not done.

Installation

Installing ht should be simple if Go 1.5 (pre beta is okay) and git are available and working:

  • Run GO15VENDOREXPERIMENT=1 go get github.com/vdobler/ht/cmd/ht which should download, compile and install everything.
  • Run $GOPATH/bin/ht help to get you started.

Documentation

For a start have a look at the

Tutorial https://github.com/vdobler/ht/blob/master/cmd/ht/Tutorial.md

and see the the godoc for reference:

Directories

Path Synopsis
cmd
fingerprint
fingerprint computes image fingerprints.
fingerprint computes image fingerprints.
ht
ht generates HTTP requests and checks the received responses.
ht generates HTTP requests and checks the received responses.
reconstruct
reconstruct reconstructs images from their fingerprints
reconstruct reconstructs images from their fingerprints
recorder
recorder is a reverse proxy to record requests and output tests.
recorder is a reverse proxy to record requests and output tests.
Package fingerprint provides fingerprinting of images.
Package fingerprint provides fingerprinting of images.
Package ht provides functions for easy testing of HTTP based protocols.
Package ht provides functions for easy testing of HTTP based protocols.
internal
json5
Package json implements encoding and decoding of JSON objects as defined in RFC 4627.
Package json implements encoding and decoding of JSON objects as defined in RFC 4627.
Package loghist provides integer histograms with exponentially growing bucket sizes.
Package loghist provides integer histograms with exponentially growing bucket sizes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL