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
Extract above project and run Maven command: mvn clean test. All the scenarios will be executed properly as, karate-junit5 library version is set to 1.2.0
Now change the karate library version to 1.3.1 and run the same maven command. Observe errors.
Note: These issues are present on 1.4.0.RC3 as well.
The text was updated successfully, but these errors were encountered:
@DRexDX - first, I really appreciate the example, very few people actually do this as per the instructions.
the driver issue can be resolved by doing this:
vardriver=karate.get('driver');
the reason it used to work is because we were re-initializing JS functions before entering a scenario. the long story is here: #2081
I also confirmed that with the above change, everything works fine in 1.4.0.RC3
as of now, we don't plan any more Java 8 releases, unless we get community help. this is also because there are so many vulnerabilities, refer: #2148 - hopefully, you can use that info to convince your team to move.
@ptrthomas Ok, thanks for the workaround. Any idea how to fix other two issues as mentioned below?
" org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (getDate) on java.util.LinkedHashMap@6a969fb8 failed due to: Unknown identifier: getDate "
" org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (sort) on java.util.ArrayList@ff6077 failed due to: Arity error - expected: 1 actual: 0 "
When I upgraded karate-junit5 library from 1.2.0 to 1.3.1, errors mentioned on below stackoverflow link occur.
stackoverflow link to issue: Link
Refer below attached zip file for working example.
karate-issue.zip
Steps to reproduce the issue:
Note: These issues are present on 1.4.0.RC3 as well.
The text was updated successfully, but these errors were encountered: