Skip to content

Multiple Stages

multistage.jkt
name: Multistage Test
tags: regression
setup:
request:
method: Post
url: https://api.jikken.io/api/v1/examples/login
body: {
"username": "testuser",
"password": "password"
}
response:
status: 200
extract:
- name: token
field: auth.token
stages:
- request:
url: https://api.jikken.io/api/v1/examples/status
headers:
- header: Authorization
value: ${token}
response:
status: 200
- request:
url: https://api.jikken.io/api/v2/examples/status
headers:
- header: Authorization
value: ${token}
compare:
url: https://api.jikken.io/api/v1/examples/status
response:
status: 200
ignore:
- user.lastActivity

See the detailed explanation for this test in the Tutorial section.