mardi 30 octobre 2018

Facing java.lang.ClassNotFoundException: com.intuit.karate.demo.util.SchemaUtils when trying to validate schema

I am trying to check the validate json schema using karate and I am facing this:

java.lang.RuntimeException: javascript evaluation failed: Java.type('com.intuit.karate.demo.util.SchemaUtils'), java.lang.ClassNotFoundException: com.intuit.karate.demo.util.SchemaUtils

My pom dependencies are :

    <dependency>
        <groupId>com.intuit.karate</groupId>
        <artifactId>karate-apache</artifactId>
        <version>${karate.version}</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>com.intuit.karate</groupId>
        <artifactId>karate-junit4</artifactId>
        <version>${karate.version}</version>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>net.masterthought</groupId>
        <artifactId>cucumber-reporting</artifactId>
        <version>3.8.0</version>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>com.github.java-json-tools</groupId>
        <artifactId>json-schema-validator</artifactId>
        <version>2.2.8</version>
    </dependency>

</dependencies>

Feature file syntax and json files locations

Can any one please suggest how to fix this ?

Aucun commentaire:

Enregistrer un commentaire