I am trying to execute some feature file using karate runner(feature file is bundled with application jar file) from REST controller class call. In service class I am using karate runner to run the tests.
public Results executeTest(String featureFile, List<String> featureTags) {
return Runner.path(featureFile).tags(featureTags).parallel(10);
}
Resource file exist under resources/abc.feature
inside the jar file, so I am providing featureFile="classpath:abc.feature"
, also I have tried with featureFile="abc.feature"
or featureFile="./abc.feature"
, but Karate is not able to find the feature file. Is there a way to pass the file path of feature file which is inside the jar file?