Skip to content

Commit 016801b

Browse files
committed
Add multi-step form Hurl workflow
1 parent 90a0d56 commit 016801b

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

examples/forms-with-multiple-steps/test.hurl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
GET http://localhost:8080/hidden/step_1.sql
2+
HTTP 200
3+
[Asserts]
4+
body contains "name"
5+
body contains "step_2.sql"
6+
7+
POST http://localhost:8080/hidden/step_2.sql
8+
[FormParams]
9+
name: Hurl User
10+
HTTP 200
11+
[Asserts]
12+
body contains "Hey Hurl User! what is your email?"
13+
body contains "step_3.sql"
14+
15+
POST http://localhost:8080/hidden/step_3.sql
16+
[FormParams]
17+
name: Hurl User
18+
email: hurl@example.com
19+
HTTP 200
20+
[Asserts]
21+
body contains "How old are you, Hurl User?"
22+
body contains "finish.sql"
23+
24+
POST http://localhost:8080/hidden/finish.sql
25+
[FormParams]
26+
name: Hurl User
27+
email: hurl@example.com
28+
age: 42
29+
HTTP 200
30+
[Asserts]
31+
body contains "Welcome, Hurl User!"
32+
body contains "Existing users"
33+
body contains "hurl@example.com"

0 commit comments

Comments
 (0)