Skip to content

Share capture between hurl runs? Setup with multiple files? #3148

Answered by jcamiel
oschrenk asked this question in General
Discussion options

You must be logged in to vote

Hi @oschrenk

There are other possibilities to share data between tests:

  • use --cookie and --cookie-jar: these options allow you to save and restore cookies so you can "simulate" a session based test across filed
  • use --json: this option exports a run result as structured data; you can get a JSON result with headers, captures , cookies etc...

Things to note:

  • cookies are automatically managed when running one Hurl file so, as you have noticed, the best use case for Hurl is when tests are self contained, isolated (like unit tests for instance)
  • following the unit tests comparison, with --test, Hurl files will be run in parallel to speed up the execution. It you rely on execution order, tou c…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@oschrenk
Comment options

Answer selected by jcamiel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants