javascript-testing-examples/replay-testing at main · xtcp/javascript-testing-examples

An example of recording and replaying HTTP tests for use in automated testing.

See instructions in subdirectories for starting the various pieces of this example.

Start the ./backend in one terminal.

Start the ./frontend in another terminal.

Start the ./recorder-proxy in another terminal.

Interact with the frontend and the requests and responses are recorded to the data file ./data/request.log.

Now stop everything.

Start the backend again (you need it starting from the default state for the tests to pass).

Then use ./replay-tool to replay the requests to the backend and test that responses from the backend are correct.