未知选项: - glue com.app.saf.glue.mf

时间:2017-09-27 12:14:01

标签: jmeter cucumber-java

我在我的jmeter测试计划中使用了OS Process Sampler

  

命令java

Value

    -jar
    test-automation-0.0.1-SNAPSHOT.jar
    classpath:features/mf
    --glue com.app.saf.glue.mf
    --tags @LOANSETUP

当我运行测试计划时,我收到错误:

Exception in thread "main" cucumber.runtime.CucumberException: Unknown option: --glue com.app.saf.glue.mf
            at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:148)
            at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:85)
            at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:78)
            at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:70)
            at cucumber.api.cli.Main.run(Main.java:31)
            at cucumber.api.cli.Main.main(Main.java:18)
  

我的Jmeter版本是3.2

1 个答案:

答案 0 :(得分:1)

将您的配置更改为:

-jar
test-automation-0.0.1-SNAPSHOT.jar
classpath:features/mf
--glue 
com.app.saf.glue.mf
--tags 
@LOANSETUP