由于某些原因,当我在Runner类中应用OR标签时,我的控制台只打印出了
0 scenarios
0 steps
0.01ms
但是当我提供单个标签的时候,那么就可以正常工作了,有谁能及时帮助解决这个问题,请让我知道这里缺少什么东西吧
特征文件
Feature: Validate foreign exchange rates for positive and negative scenarios
Scenario Outline: Verify rates for latest and past dated foreign exchange rates
Given rates for foreign exchange rates
When user calls Get http request with <Uri>
Then user gets success with status code 200
And <base> in response body is <baseValue>
@Regression
Examples: Positive scenarios
|Uri |base |baseValue|
|/api/latest |base |EUR |
|/api/2020-05-08|base |EUR |
|/api/2010-01-14|base |EUR |
Scenario Outline: Verify the response from invalid url for
Given rates for foreign exchange rates
When user calls invalid Get http request with <Uri>
Then user gets error message with status code 400
@NegativeTest
Examples: Negative scenarios
|Uri |
|/api/ |
|/api/2020-02-30|
|/api/20100114 |
亚军班
@RunWith(Cucumber.class)
@CucumberOptions(
features="src/main/java/features",//the path of the feature files
glue= {"stepDefinitions"},//the path of the step definition files
tags= {"@Regression,@NegativeTest"},**// this one is not working**
//tags = {"@Regression"},
monochrome=true //display the console output in a proper readable format
)
public class TestRunner {
}