I am not java expert so need your guidance. I am new to Karate. I want to run Karate using data from Excel file. After research I am able to replace secanrio outline examples with the excel data however I am not able to call it from the karate runner file.
Feature File :
Code Snip -
Examples:
|DemandId|
@externaldata@./src/test/java/examples/TestData.xlsx@Sheet1
Code Snip-
Runner Class:
public void testParallel() throws InvalidFormatException, IOException, InterruptedException {
FeatureOverright.overrideFeatureFiles("./src/test/java/examples");
String karateOutputPath = "target/surefire-reports";
KarateStats stats = CucumberRunner.parallel(getClass(), 5, karateOutputPath);
generateReport(karateOutputPath);
When I run for the first time, the execution fails after that in the feature files examples are updated with data from the excel.
Can you please suggested me how should i need to call the below function in the runner class to override the feature file with Data from excel.
FeatureOverright.overrideFeatureFiles("./src/test/java/examples");