diff --git a/examples/forms-with-multiple-steps/test.hurl b/examples/forms-with-multiple-steps/test.hurl deleted file mode 120000 index 0dd017b9..00000000 --- a/examples/forms-with-multiple-steps/test.hurl +++ /dev/null @@ -1 +0,0 @@ -../../test.hurl \ No newline at end of file diff --git a/examples/forms-with-multiple-steps/test.hurl b/examples/forms-with-multiple-steps/test.hurl new file mode 100644 index 00000000..92019103 --- /dev/null +++ b/examples/forms-with-multiple-steps/test.hurl @@ -0,0 +1,33 @@ +GET http://localhost:8080/hidden/step_1.sql +HTTP 200 +[Asserts] +body contains "name" +body contains "step_2.sql" + +POST http://localhost:8080/hidden/step_2.sql +[FormParams] +name: Hurl User +HTTP 200 +[Asserts] +body contains "Hey Hurl User! what is your email?" +body contains "step_3.sql" + +POST http://localhost:8080/hidden/step_3.sql +[FormParams] +name: Hurl User +email: hurl@example.com +HTTP 200 +[Asserts] +body contains "How old are you, Hurl User?" +body contains "finish.sql" + +POST http://localhost:8080/hidden/finish.sql +[FormParams] +name: Hurl User +email: hurl@example.com +age: 42 +HTTP 200 +[Asserts] +body contains "Welcome, Hurl User!" +body contains "Existing users" +body contains "hurl@example.com"