2017-07-14 13 views
0

私はこのようなテストクラスを持っています。キュウリの複数の機能を実行するには?

@RunWith(Cucumber.class) 
@CucumberOptions(
     features = {"src/test/resources/features"}, 
     glue = {"classpath:com.wirecard.step"}, 
     format = {"pretty", "html:target/cucumber-report", "json:target/cucumber.json"}, 
     tags = {"@Login_Flow", "@Merch_Creation", "@Add_Terminal", "@MERCHBATCH_UPLOAD"} 
) 
public class AsortStdTests { 

} 

そして、src/test/resources/featuresの下に4個のキュウリのフィーチャーファイルがあります。私はキュウリのオプションに完全なパスを与えることを試みた

None of the features at [src/test/resources/features] matched the filters: [@Login_Flow, @Merch_Creation, @Add_Terminal, @MERCHBATCH_UPLOAD] 
0 Scenarios 
0 Steps 
0m0.000s 


Process finished with exit code 0 
Empty test suite. 

、それは同様に動作しませんでした:私はこのテスト(4キュウリの機能)を実行しようとすると、私はエラーを得ました。誰もがこれで私を助けることができますか?ありがとうございました。

答えて

0

cucumberoptionsのタグの値が正しくないため、現時点では、すべての前述のタグを含むピックアップシナリオに設定されています。 ORの代わりにANDを使用しています。

タグオプションを完全に省略することができます。

それとも、タグオプションのためにこれを使用することができます---タグ= { "@Login_Flow、@Merch_Creation、@Add_Terminal、@MERCHBATCH_UPLOAD"}

+0

はあなたにバッタをありがとう、これは私の問題を解決しました。 –

関連する問題