2016-04-15 6 views
0

キュウリバージョンを1.1.2から1.2.4にアップグレードしようとしているときにこのエラーが発生しました。 私はJDK1.8で動作しています。ランタイムオプションキュウリをバージョン1.2.4にアップグレードするときのエラー

これは

RuntimeOptions runtimeOptions = new RuntimeOptions(System.getProperties(), argv); 

    Runtime runtime = new Runtime(new MultiLoader(classLoader), classLoader, runtimeOptions); 
    try { 
     runtime.writeStepdefsJson(); 
     runtime.run(); 
    } catch (Exception e) { 
     System.out.println("CucumberMain#run: Exception occured - " + e.toString()); 
     e.printStackTrace(); 
     if (e.toString().contains("None of the features at")) { 
      System.out.println("This should not be an error if feature file does not contains any scenario for" 
        + " execution or marked as ignore through tag " + e.getMessage()); 
     } else { 
      System.out.println("There is some problem in cucumber execution. Error is: " + e.getMessage()); 
      for (int index = 0; index < argv.length; index++) { 
       System.out.println("CucumberMain#run: Exception - argument#" + index + ": " + argv[index]); 
      } 
      // throw e; 
     } 
    } 

を働いていないコードであり、これはエラー出力です:

Error:(31, 41) java: no suitable constructor found for RuntimeOptions(java.util.Properties,java.lang.String[]) 
    constructor cucumber.runtime.RuntimeOptions.RuntimeOptions(cucumber.runtime.Env,java.util.List<java.lang.String>) is not applicable 
     (argument mismatch; java.util.Properties cannot be converted to cucumber.runtime.Env) 
    constructor cucumber.runtime.RuntimeOptions.RuntimeOptions(cucumber.runtime.formatter.PluginFactory,java.util.List<java.lang.String>) is not applicable 
     (argument mismatch; java.util.Properties cannot be converted to cucumber.runtime.formatter.PluginFactory) 
Error:(33, 27) java: no suitable constructor found for Runtime(cucumber.runtime.io.MultiLoader,java.lang.ClassLoader,cucumber.runtime.RuntimeOptions) 
    constructor cucumber.runtime.Runtime.Runtime(cucumber.runtime.io.ResourceLoader,cucumber.runtime.ClassFinder,java.lang.ClassLoader,cucumber.runtime.RuntimeOptions) is not applicable 
     (actual and formal argument lists differ in length) 
    constructor cucumber.runtime.Runtime.Runtime(cucumber.runtime.io.ResourceLoader,java.lang.ClassLoader,java.util.Collection<? extends cucumber.runtime.Backend>,cucumber.runtime.RuntimeOptions) is not applicable 
     (actual and formal argument lists differ in length) 
    constructor cucumber.runtime.Runtime.Runtime(cucumber.runtime.io.ResourceLoader,java.lang.ClassLoader,java.util.Collection<? extends cucumber.runtime.Backend>,cucumber.runtime.RuntimeOptions,cucumber.runtime.RuntimeGlue) is not applicable 
     (actual and formal argument lists differ in length) 
    constructor cucumber.runtime.Runtime.Runtime(cucumber.runtime.io.ResourceLoader,java.lang.ClassLoader,java.util.Collection<? extends cucumber.runtime.Backend>,cucumber.runtime.RuntimeOptions,cucumber.runtime.StopWatch,cucumber.runtime.RuntimeGlue) is not applicable 
     (actual and formal argument lists differ in length) 

Error:(35, 20) java: cannot find symbol 
    symbol: method writeStepdefsJson() 
    location: variable runtime of type cucumber.runtime.Runtime 
+0

に設定あなたの糊のパラメータは何ですか?彼らはステップ定義を指していますか?貼り付けられたパスは存在しますか? – MikeJRamsey56

答えて

0

キュウリ1.2.4は、次の依存関係を持っています。インストールされているバージョンが最新であることを確認してください。

  • info.cukesキュウリコアをキュウリのJUnitを»ガーキン2.12.2
  • info.cukes»1.0.5
  • info.cukesをキュウリ-JVMが-のDEP»1.2.4
  • info.cukesを»1.2.4
  • junit»junit 4.12

任意

  • net.sourceforge.cobertura»Coberturaの2.1.1
  • org.mockito»mockito-すべて1.10.19
関連する問題