2017-09-27 109 views
1

我已經使用OS過程採樣在我的JMeter測試計劃未知的選項:--glue com.app.saf.glue.mf

Command 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) 

My Jmeter version is 3.2

+0

檢查https://stackoverflow.com/questions/37770706/unable-to-run-cucumber-feature-feature – user7294900

回答

1

更改您的配置是:

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

不,它通過命令行工作在Jmeter之外。 – Shadab

+0

你可以顯示你的OS採樣器配置? –

+0

上面已經分享的配置,Command Arg和Value參數。 – Shadab

相關問題