Intellij idea Intellij中的Cumber未能使用证书
使用Cucumber.api.cli.Main运行Cucumber测试时,测试无法识别JDK中安装的证书 我正在使用以下命令运行: IntelliJ 2016.1.2(构建#IU-145.972) JRE 1.8.0_74-b02 Java版本的插件:999.999 从以下gradle任务运行时,它可以从命令行运行:Intellij idea Intellij中的Cumber未能使用证书,intellij-idea,gradle,cucumber,Intellij Idea,Gradle,Cucumber,使用Cucumber.api.cli.Main运行Cucumber测试时,测试无法识别JDK中安装的证书 我正在使用以下命令运行: IntelliJ 2016.1.2(构建#IU-145.972) JRE 1.8.0_74-b02 Java版本的插件:999.999 从以下gradle任务运行时,它可以从命令行运行: task functional(dependsOn: ['testClasses']) << { javaexec { main = "cucu
task functional(dependsOn: ['testClasses']) << {
javaexec {
main = "cucumber.api.cli.Main"
classpath = sourceSets.test.runtimeClasspath
args = ['--tags', '~@wip',
'--plugin', 'junit:build/junit-test-report.xml',
'--plugin', 'pretty',
'--plugin', 'html:build/cucumber-html-report',
'--plugin', 'json:build/cucumber-json-report.json',
'--glue', 'step_definitions',
'--strict',
'src/test/resources'
]
if(project.hasProperty("coverage")) {
jvmArgs = ["-javaagent:${configurations.codeCoverage.asPath}=destfile=${buildDir}/jacoco/jacoco.exec,sessionid=HSServ,append=false"]
}
}
}
它无法识别连接到远程服务的证书
我已经将IntelliJ配置为使用外部JDK引导,我已经使用keytool将证书安装到外部JDK中,并且我可以看到它在运行配置时使用了这个JDK。我还尝试配置服务器证书,并导入相同的证书
但是,在IntelliJ中,连接到远程服务时会引发异常。当gradle从IntelliJ终端内运行时,它也会引发异常
Main Class: cucumber.api.cli.Main
Glue: step_definitions
Feature or Folder path: /Users/xetius/application/src/test/resources/system_tasks/request/validation_handling/request/validate_hardware_fulfilment_request.feature
Program Arguments: --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome --name "^Pending details$"
Working Directory: /Users/xetius/application