我在运行基于BDD /黄瓜Appium的项目时遇到了ProvisionException

时间:2018-09-16 17:36:17

标签: java maven cucumber appium-android serenity-bdd

com.google.inject.ProvisionException:Guice设置错误:

1) Error injecting constructor, java.lang.IllegalArgumentException: No enum constant net.thucydides.core.logging.LoggingLevel.VERB
2) at net.thucydides.core.steps.ConsoleLoggingListener.<init>(ConsoleLoggingListener.java:200)
  while locating net.thucydides.core.steps.ConsoleLoggingListener
3)  at net.thucydides.core.guice.ThucydidesModule.configure(ThucydidesModule.java:67)
  while locating net.thucydides.core.steps.StepListener annotated with interface net.thucydides.core.logging.ThucydidesLogging

我的Run.java类

@RunWith(CucumberWithSerenity.class)
@CucumberOptions(features = {"src/test/resources/features/AndroidApp"})
public class Run {

  @BeforeClass
  public static void startAppium() {
    startAppiumServer();
  }
  @AfterClass
  public static void stopAppium() {
    stopAppiumServer();
  }
}

0 个答案:

没有答案