Skip to content

Commit 334b4b2

Browse files
committed
add a bit more
1 parent 0958408 commit 334b4b2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ Httpspec takes this file, executes the first request (/status/200 in this case),
2424

2525
The idea behind Httpspec is to allow you to specify a series of HTTP requests (with assertions) to model a sequence of test steps. For example, the first request in your file may create a user in your API which is then needed by future requests. You may then make another request, using those user credentials, to create an order for that user -- again, this is just an example.
2626

27+
# How to Use
28+
29+
```bash
30+
httpspec ./test_files/httpbin_test.http # or whatever your filepath is to your .http or .httpspec file
31+
32+
# Sample output
33+
Running test 1: ./test_files/httpbin_test.http
34+
[Fail] Expected status code 403, got 404
35+
All 1 tests ran successfully!
36+
37+
Pass: 1
38+
Fail: 1
39+
```
40+
2741
There are some gaps in this implementation at this point (these are things I plan to address):
2842

2943
1. There is not currently a way to pipe the response from a previous request into the next request. This is limiting as you often may need an ID from a previous request to make the next request.

0 commit comments

Comments
 (0)