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
Background :
I am trying to setup continous integration using Jenkins with the help of Karate framework. I got stuck in the setup. Need help on this.
I have 2000 feature files for each repo/API to perform testing. Feature file list can grow as day passes. Each feature file and its test data was organized in bitbucket repos. Hence I have planned to created a generic maven project along with karate which accepts feature file name as a parameter in CLI to perform testing and create report.
So I have created a project with karate-core in my pom file which is bundled with all its dependencies.
You will see the "java.lang.IllegalArgumentException"
Expected result
I want to execute the my jar file as like below via command prompt. Please route it to me if you have any samples. java -jar target/sample-test-jar-with-dependencies.jar.jar NewdemoAPI.feature
@visasimbu I'm sorry this is not "in scope" for karate as we have said in response to many similar questions. we only support feature files in the current java project or classpath and that's it.
I think your best bet is to go through the above threads, do some research, find someone to help you if needed and eventually contribute code to the karate project if needed. all the best !
@ptrthomas Came here to say thanks for this wonderful tool !!! Also the given links helped me to resolve my issue. I thought the input or question posting is not sufficient to answer/help by you. Hence I was trying to provide more information each time. Finally I am able to resolve my issue.
Thanks once again for your quick reply and links !!!
Background :
I am trying to setup continous integration using Jenkins with the help of Karate framework. I got stuck in the setup. Need help on this.
I have 2000 feature files for each repo/API to perform testing. Feature file list can grow as day passes. Each feature file and its test data was organized in bitbucket repos. Hence I have planned to created a generic maven project along with karate which accepts feature file name as a parameter in CLI to perform testing and create report.
So I have created a project with
karate-core
in my pom file which is bundled with all its dependencies.Code https://github.com/visasimbu/ContinousIntegration
Steps to reproduce
mvn clean install
Expected result
I want to execute the my jar file as like below via command prompt. Please route it to me if you have any samples.
java -jar target/sample-test-jar-with-dependencies.jar.jar NewdemoAPI.feature
Issue
This is the snippet of my main class
If I remove the uncomment the line #2 and commet line #1 it works as expected. How can I run the feature file which is kept other than classpath ?
The text was updated successfully, but these errors were encountered: