karate icon indicating copy to clipboard operation
karate copied to clipboard

responseStatus not visible from functions created using callSingle or callOnce

Open ericdriggs opened this issue 1 year ago • 4 comments

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

ericdriggs avatar May 30 '23 20:05 ericdriggs