Open himtar12 opened 4 years ago
@hassy Any comments?
@himtar12 and @hassy - I get the same behaviour in 2.0.0-32 when a property doesn't exist. For example:
capture:
- json: '$.oops'
as: oops
expect:
- statusCode: 200
- log: 'I should see this'
When using debug, it appear as:
http oops: { value: undefined, strict: undefined, failed: true }
and
ok statusCode 200
I don't see any error, but execution seems to stop there. I don't even see the log line after it.
Out of curiosity, I tried this with properties having values of 0, null, and an empty string. They all worked fine.
I test the output for an expected final log line, so I know my test failed somehow, but this can be a bit challenging to figure out.
Consider below case:
If "$[0].link.id" property have an empty string which should set variable "prod2" as an empty string then artillery will never execute the second GET request since the execution will get stuck on the first GET request because it found an empty string for "$[0].link.id".