You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@name=testScenario
Scenario: example scenario
* def foo = 'foo'
* def bar = 'bar'
* url 'example.com'
Given param test = [#(foo), #(bar)]
fails with the error message
org.graalvm.polyglot.PolyglotException: SyntaxError: Unnamed:1:1 Expected an operand but found error
[#(foo), #(bar)]
^
This used to work fine with Nashorn, and using variables in json objects (so using { ... } is still working fine. I don't know if it's an issue with the param keyword, or with the fact that we use [ ... ] here - this is breaking our tests.
The text was updated successfully, but these errors were encountered:
also we recommend that embedded expressions always have string quotes around them. yes the json parser is lenient but it causes trouble like this. the design of embedded expressions is so that JSON remains well-formed: https://github.com/karatelabs/karate#embedded-expressions
ignore my above comment, there indeed seems to be a regression in latest versions. @LanDinh do note that we spend a LOT of time creating RC versions, so if you try those earlier and provide feedback, that would save all of us a lot of trouble
Code of the type
fails with the error message
This used to work fine with Nashorn, and using variables in json objects (so using
{ ... }
is still working fine. I don't know if it's an issue with theparam
keyword, or with the fact that we use[ ... ]
here - this is breaking our tests.The text was updated successfully, but these errors were encountered: