Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

responseTime not visible from calling feature #2094

Closed
ericdriggs opened this issue Aug 19, 2022 · 3 comments
Closed

responseTime not visible from calling feature #2094

ericdriggs opened this issue Aug 19, 2022 · 3 comments
Assignees

Comments

@ericdriggs
Copy link

ericdriggs commented Aug 19, 2022

expected: after calling a feature which performs a method, should be able to access responseTime
actual: responseTime is out of scope in the callee and needs to be stored in another named variable for that data to be in scope

minimal project: https://github.com/ericdriggs/karate-responseTime-called-bug/blob/master/src/test/java/caller.feature

see #536

@ericdriggs ericdriggs changed the title responseTime not visible from called feature responseTime not visible from calling feature Aug 19, 2022
@ptrthomas
Copy link
Member

this was done to reduce memory usage and I agree this is inconsistent from response and responseHeaders.

I propose we make this available via the new karate.response API, it may need a small bit of work to be available on a call return. refer #1962

@ptrthomas ptrthomas self-assigned this Oct 13, 2022
@ptrthomas ptrthomas added this to the 1.3.0 milestone Oct 13, 2022
@ptrthomas
Copy link
Member

this is fixed. trying to get karate.response to work properly in a caller feature post a called feature doing an HTTP invoke was too much trouble, so decided to "promote" responseTime to back being a first-class variable again

@ptrthomas
Copy link
Member

1.3.0 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants