sampler
sampler copied to clipboard
textbox keeps previous output after getting empty result from jq
Hi, I'm getting weird behaviour with jq, which looks like a bug. sampler config yaml
textboxes:
- title: Running Jobs
rate-ms: 2000
sample: cat example.json | jq -r '.[] | select (.status == "running") | .ID'
example.json
[
{
"ID": 1,
"status": "stopped"
},
{
"ID": 2,
"status": "running"
}
]
Scenario
- When running sampler the textbox shows "2" as expected.
- Change 2nd status "running" to "stopped" and save example.json.
- The textbox keeps showing "2".
- Expected: empty textbox