This question already has answers here:
Karate karate-config.js not a js function
(2 answers)
Closed 2 years ago.
I have a karate 0.9.9.RC3 project with Java 15, tests run correctly if running directly through runner, however if I chose to run through 'mvn test' I get 'nashorn is null' error.
Sounds like you have multiple dependencies in your pom.xml file. Follow this process please: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
Related
This question already has an answer here:
Karate: Is there a way to disable log when using retry?
(1 answer)
Closed 1 year ago.
Is there any way to enable and disable the thymeleaf report from the logs? I couldn't find any config flag to do, so is there any other way to switch it on/off?
I don't understand what you mean - but my guess is the very verbose log that sometimes happens when the logging system is not configured properly. Or if you are using some combination of dependencies or building a JAR on your own (which we don't support, you have to figure this out on your own).
Maybe this thread gives you some ideas: https://github.com/intuit/karate/issues/1694
EDIT: quoting the comment by #italktothewind - it seems that <logger name="karate.org.thymeleaf" level="OFF"/> can do the trick. This may or may not work depending on which version of the Karate Maven dependency you use.
Or if you insist that this is some issue with Karate - please follow this process so that we can fix it: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
This question already has answers here:
Is there an option for us to customize and group the test scenarios in the statics section of the Karate Gatling Report?
(2 answers)
Closed 1 year ago.
I have downloaded the gatling-highchart-bundle zip..
placed the karate feature file and karate-galtling simulation file in the user-files/simulation folder under the highchart-bundle.
set the classpath of the karate feature file folder in the gatling.sh & gatling.bat file.
When I trigger the execution, reports are not generated ?
Can anyone help me to fix this.
Please assume that what you are asking for is not supported. Read the karate-gatling documentation to see what is supported: https://github.com/intuit/karate/tree/master/karate-gatling
This question already has answers here:
How to run Karate and Gatling with Gradle build system
(2 answers)
Closed 1 year ago.
In gatling report i don't get to see the failed scenarios. So can we also have cucumber report when we run the gatling test so that the failed steps can be known.
No, this will add un-necessary overhead to the test-execution - so this is not (and perhaps will never be) supported by Karate.
Do note that the failures (and line number) will appear in the Gatling report: https://twitter.com/ptrthomas/status/986463717465391104
This question already has an answer here:
Unable to use read('classpath:') when running tests with standalone karate.jar
(1 answer)
Closed 1 year ago.
I'd like to run a single .feature file, the one I'm trying to debug, instead of the full set of over 100 tests we have... it it possible?
I'v tried adding the "classpath" to the karate options, as I saw in other answers, but it still runs everything even if the path doesn't exists:
$ mvn clean test \
-Dtest=ParallelTest \
-DargLine="-Dkarate.options='--tags ~#ignore classpath:relative/path/to/my/new.feature" \
-Denv='dev'
This is what the IDE support is for, we have Visual Studio Code (recommended), IntelliJ and Eclipse: https://github.com/intuit/karate/wiki/IDE-Support
If you are interested in the details, there is a "CLI way" to do this (0.9.5 onwards): https://github.com/intuit/karate/wiki/Debug-Server#maven - so just put a feature classpath: instead of the -d
And for Maven / JUnit users, most teams write a "Runner" class, and you can add a test method and run a single feature, please refer to the docs: https://github.com/intuit/karate#junit-5
This question already has answers here:
How to run Karate and Gatling with Gradle build system
(2 answers)
Closed 1 year ago.
I have implemented karate-gatling-demo and it works fine with Gradle gradle gatlingRun
Is there a way to start gatling from Java code?
I have tried ProcessBuilder with same args we pass in gradle task but it doesn't pick catsimulation Scala class file
e.g
ProcessBuilder pb = new ProcessBuilder("cmd.exe",io.gatling.app.Gatling -s mock.catsimulation -rf ${buildDir}/reports/gatling);
pb.start();
Any other way to achieve gatling execution from Java ?
Sounds like your classpath is incomplete. In the maven world you can do this:
mvn test-compile exec:java -Dexec.mainClass=my.main.Class -Dexec.args='-some -args' -Dexec.classpathScope=test