Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

Executing Karate scenarios calling external JAR from VScode

$
0
0

I use Karate as standalone JAR, and for writing scenarios I've installed Visual Source Code with the "karate-runner" plugin as IDE support. I use an external jar for encryption treatments. The trouble is that, when I execute a Karate scenario from Visual Source Code (for debuggig purpose), my external jar is not taken into account, and during execution, I get the message "java.lang.ClassNotFoundException: GenerateSign" in the console. I've no problem when I launch the scenario directly in command line like :

Karate.bat mytest.feature

With the content of karate.bat is :

java -cp karate.jar;Sign.jar;. com.intuit.karate.Main %*

So, how to configure the tools in order to execute my karate scenarios from VScode taking into account my external jar too? Thanks a lot.


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>