Skip to content

Use part of testcase result as url parameter #421

Closed Answered by fsamin
phochard asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I think you can to add a step with a jq command to do the trick.

given the following json:

[
  {
    "name": "foo",
    "id": 1
  },
  {
    "name": "bar",
    "id": 2
  }
]

Example of a jq select

$ cat content.json | jq '.[] | select(.name == "bar")'
{
  "name": "bar",
  "id": 2
}

So in venom you cound be able to add step scriptto do it

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yesnault
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