Skip to content
Discussion options

You must be logged in to vote

Hi @AdmiralRazorbeard

You can have something you want with a combination of hurl and hurlfmt.

First, given this file:

GET http://localhost:8000/captures
X-Foo: foo
HTTP 200
[Captures]
param1: header "header1"
param2: header "header2" regex "Hello (.*)!"
param3: header "header2" regex /Hello (.*)!/
# With the next captures, we test that the captured variable
# can be immediately used in the next captures + asserts
data1: body
data2: variable "data1"
[Asserts]
header "header1" == "{{param1}}"
variable "param1" == "value1"
variable "param2" == "Bob"
variable "param3" == "Bob"
variable "data2" == "Hello world!"


GET http://localhost:8000/captures-check?q={{param1}}
[QueryStringParams]
param1: …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jcamiel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants