Skip to content

Commit 7a55ebf

Browse files
committed
Add simple website Hurl workflow
1 parent 60b1195 commit 7a55ebf

1 file changed

Lines changed: 47 additions & 1 deletion

File tree

examples/simple-website-example/test.hurl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
GET http://localhost:8080/
2+
HTTP 200
3+
[Asserts]
4+
body contains "Add a user"
5+
body contains "Users"
6+
body not contains "An error occurred"
7+
8+
POST http://localhost:8080/
9+
[FormParams]
10+
Username: Hurl User
11+
HTTP 200
12+
[Asserts]
13+
body contains "Hurl User"
14+
body contains "user.sql?id"
15+
body not contains "An error occurred"
16+
17+
GET http://localhost:8080/user.sql?id=1
18+
HTTP 200
19+
[Asserts]
20+
body contains "Hurl User"
21+
body contains "Edit user"
22+
body contains "Delete this user"
23+
body not contains "An error occurred"
24+
25+
POST http://localhost:8080/edit.sql?id=1
26+
[FormParams]
27+
Username: Hurl Admin
28+
Administrator: on
29+
HTTP 200
30+
[Asserts]
31+
body contains "Hurl Admin"
32+
body contains "Has administrator privileges"
33+
body not contains "An error occurred"
34+
35+
GET http://localhost:8080/
36+
HTTP 200
37+
[Asserts]
38+
body contains "Hurl Admin"
39+
body not contains "Hurl User is a user"
40+
body not contains "An error occurred"
41+
42+
GET http://localhost:8080/delete.sql?id=1
43+
HTTP 200
44+
[Asserts]
45+
body contains "The user Hurl Admin has been deleted."
46+
body contains "Back to the user list"
47+
body not contains "An error occurred"

0 commit comments

Comments
 (0)