Я использую огурец и TestNG в своем коде автоматизации
.feature файл
Scenario Outline: Enter valid Location Setup
When : I enter the Restaurant ID as “<setup_RestaurantID>“
Examples:
| setup_StoreID | setup_RestaurantID |
| test | 1234 |
Когда я запускаю сценарий автоматизации, он генерирует пропущенный шаг
@When("^: I enter the Restaurant ID as “(\\d+)“$")
public void i_enter_the_Restaurant_ID_as(int arg1) throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
Но огурец должен генерировать пропущенный шаг следующим образом
@When("^: I enter the Restaurant ID as \"([^\"]*)\"$")
public void i_enter_the_Restaurant_ID_as(String arg1) throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
Другие настройки:
моно chrome = true
Зависимости Maven:
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-testng</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<version>5.2.1</version>
</dependency>
Вы можете помочь мне это исправить? Заранее спасибо.