如何获取具有特定标记的所有方案的列表。例如 获取所有具有@checkout标记的方案。
答案 0 :(得分:0)
假设您有15-20个使用@checkout标签的方案/方案大纲。
@checkout
Scenario Outline: Validation of UseCase Guest User Order Placement flow from Search
Given User is on Brand Home Page <Site>
And User searches for a styleId and makes product selection on the basis of given color and size
| Style_ID | Product_Size | Product_Color |
| TestData1 | TestData1 | TestData1 |
| TestData2 | TestData2 | TestData2 |
Then Clicking on Cart icon shall take user to Shopping Bag
请按照这种方式获取方案名称。
文件名Hook.java
@Before
public void setUpScenario(Scenario scenario){
String scenarioName = scenario.getName();
//Either you can write down name of the scenario under a file system like excel or implement in the way you want
}
请告知您是否有意义并解决了您的问题。
答案 1 :(得分:0)