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

JavaScript functions cannot access global vars after executing feature in nested context #2502

Open
rwong-gw opened this issue Feb 9, 2024 · 1 comment

Comments

@rwong-gw
Copy link

rwong-gw commented Feb 9, 2024

If I am running a Karate feature, which calls a Java method, which then executes another Karate feature, something
about that nested call to Karate seems to disrupt something in its JavaScript environment, such that JavaScript
functions can no longer see global vars.

Attached is a zip file with a test (KarateJsGlobalTest.java) that reproduces the issue.

karate-javascript-global-var-bug.zip

@ptrthomas
Copy link
Member

also tagging as help wanted for now

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