karatelabs / karate

Test Automation Made Simple
https://karatelabs.github.io/karate
MIT License
8.32k stars 1.95k forks source link

Getting error. we are doing POC to see if Karate Framework will support API . Can you please let us know what is missing. #2037

Closed sanjaycfa26 closed 2 years ago

sanjaycfa26 commented 2 years ago

APIKaratePOC.zip

===========

/Library/Java/JavaVirtualMachines/jdk-18.0.1.1.jdk/Contents/Home/bin/java -Dorg.jetbrains.run.directory=/Users/Sanjay.Saini/Documents/GitHub1/APIKaratePOC/src/test/java/features -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=56105:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/Sanjay.Saini/.m2/repository/com/intuit/karate/karate-apache/0.9.6/karate-apache-0.9.6.jar:/Users/Sanjay.Saini/.m2/repository/com/intuit/karate/karate-core/0.9.6/karate-core-0.9.6.jar:/Users/Sanjay.Saini/.m2/repository/com/jayway/jsonpath/json-path/2.4.0/json-path-2.4.0.jar:/Users/Sanjay.Saini/.m2/repository/net/minidev/json-smart/2.3/json-smart-2.3.jar:/Users/Sanjay.Saini/.m2/repository/net/minidev/accessors-smart/1.2/accessors-smart-1.2.jar:/Users/Sanjay.Saini/.m2/repository/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/Users/Sanjay.Saini/.m2/repository/info/cukes/cucumber-java/1.2.5/cucumber-java-1.2.5.jar:/Users/Sanjay.Saini/.m2/repository/info/cukes/cucumber-core/1.2.5/cucumber-core-1.2.5.jar:/Users/Sanjay.Saini/.m2/repository/org/yaml/snakeyaml/1.24/snakeyaml-1.24.jar:/Users/Sanjay.Saini/.m2/repository/de/siegmar/fastcsv/1.0.3/fastcsv-1.0.3.jar:/Users/Sanjay.Saini/.m2/repository/info/picocli/picocli/4.0.3/picocli-4.0.3.jar:/Users/Sanjay.Saini/.m2/repository/org/apache/httpcomponents/httpclient/4.5.12/httpclient-4.5.12.jar:/Users/Sanjay.Saini/.m2/repository/org/apache/httpcomponents/httpcore/4.4.13/httpcore-4.4.13.jar:/Users/Sanjay.Saini/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/Users/Sanjay.Saini/.m2/repository/org/apache/httpcomponents/httpmime/4.5.12/httpmime-4.5.12.jar:/Users/Sanjay.Saini/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.25/jcl-over-slf4j-1.7.25.jar:/Users/Sanjay.Saini/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/Users/Sanjay.Saini/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/Users/Sanjay.Saini/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/Users/Sanjay.Saini/.m2/repository/com/intuit/karate/karate-junit5/0.9.6/karate-junit5-0.9.6.jar:/Users/Sanjay.Saini/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.5.0/junit-jupiter-api-5.5.0.jar:/Users/Sanjay.Saini/.m2/repository/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar:/Users/Sanjay.Saini/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar:/Users/Sanjay.Saini/.m2/repository/org/junit/platform/junit-platform-commons/1.5.0/junit-platform-commons-1.5.0.jar:/Users/Sanjay.Saini/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.5.0/junit-jupiter-engine-5.5.0.jar:/Users/Sanjay.Saini/.m2/repository/org/junit/platform/junit-platform-engine/1.5.0/junit-platform-engine-1.5.0.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/junit/lib/junit-rt.jar:/Users/Sanjay.Saini/Library/Application Support/JetBrains/IdeaIC2022.1/plugins/cucumber-java/lib/cucumber-jvmFormatter.jar cucumber.api.cli.Main --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome /Users/Sanjay.Saini/Documents/GitHub1/APIKaratePOC/src/test/java/features/sample.feature Testing started at 3:48 PM ... command: --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome /Users/Sanjay.Saini/Documents/GitHub1/APIKaratePOC/src/test/java/features/sample.feature Exception in thread "main" java.lang.ExceptionInInitializerError at com.intuit.karate.Runner$Builder.tagSelector(Runner.java:80) at com.intuit.karate.Runner.parallel(Runner.java:309) at com.intuit.karate.Runner$Builder.parallel(Runner.java:190) at com.intuit.karate.cli.Main.main(Main.java:59) at cucumber.api.cli.Main.main(Main.java:34) Caused by: java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.createBindings()" because "com.intuit.karate.ScriptBindings.NASHORN" is null at com.intuit.karate.ScriptBindings.createBindings(ScriptBindings.java:160) at com.intuit.karate.core.Tags.(Tags.java:158) at com.intuit.karate.core.Tags.(Tags.java:48) ... 5 more

ptrthomas commented 2 years ago

@sanjaycfa26 to reopen, please read this carefully and follow the process: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue