karate
karate copied to clipboard
responseStatus not visible from functions created using callSingle or callOnce
expected: js functions created from callOnce or callSingle should be able to see responseStatus
actual: responseStatus is not defined from those functions callOnce in feature background even breaks local js function ability to view responseStatus
workaround:
- Use karate.call instead of karate.callSingle
versions effected: 1.3.0 -> 1.4.0
e.g.
replace config = karate.callSingle('classpath:my.feature', config);
with config = karate.call('classpath:my.feature', config);
minimal example: https://github.com/ericdriggs/karate-responseStatus-missing-callSingle-callOnce/tree/main