karate gatling gives error on object intuit is not a member of package com [closed]

时光毁灭记忆、已成空白 提交于 2020-07-31 06:00:50

问题


when i run gatlingRun task it is complain about object intuit is not a member of package com not found

all my scala class under src/gatling/simulations folder

dependencies {
    compile group: 'com.intuit.karate', name: 'karate-gatling', version: karateVersion
    compile group: 'com.intuit.karate', name: 'karate-core', version: karateVersion
    compile group: 'org.scala-lang', name: 'scala-library', version: '2.13.0'
    compileOnly group: 'io.gatling.highcharts', name: 'gatling-charts-highcharts', version: '3.3.1'
    compile group: 'io.gatling', name: 'gatling-app', version: '3.3.1'
    compile group: 'org.apache.maven.plugins', name: 'maven-surefire-plugin', version: '3.0.0-M4'
    compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
    compile group: 'net.masterthought', name: 'cucumber-reporting', version: '5.3.0'
    compile group: 'org.springframework', name: 'spring-jdbc', version: '5.2.7.RELEASE'
    compile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
    compile group: 'net.sourceforge.jtds', name: 'jtds', version: '1.2.4'
    compile group: 'io.gatling', name: 'gatling-maven-plugin', version: '3.0.2'
    compile files('lib/ojdbc7.jar')
    testCompile group: 'com.intuit.karate', name: 'karate-junit4', version: karateVersion
    testCompile group: 'com.intuit.karate', name: 'karate-apache', version: karateVersion
    testCompile group: 'junit', name: 'junit', version: '4.12'
}
test {
    // Pull karate options into the runtime
    systemProperty "karate.options", System.properties.getProperty("karate.options")
    // Pull karate options into the JVM
    systemProperty "karate.env", System.properties.getProperty("karate.env")
    // Ensure tests are always run
    outputs.upToDateWhen { false }
}
project.sourceSets {
    gatling {
        scala.srcDirs = ['src/gatling/simulations']
        resources.srcDirs = ['src/test/resources']
    }
}
gatling {
    simulations = {}
    logLevel = "DEBUG"``
    includeMainOutput = false
    includeTestOutput = false
}```

来源:https://stackoverflow.com/questions/63142434/karate-gatling-gives-error-on-object-intuit-is-not-a-member-of-package-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!