第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在 Java 中運(yùn)行 Cucumber 時修改 CucumberOptions 標(biāo)簽

在 Java 中運(yùn)行 Cucumber 時修改 CucumberOptions 標(biāo)簽

楊魅力 2022-12-28 15:48:15
我想知道是否有辦法在 Cucumber 運(yùn)行時修改 CucumberOptions 標(biāo)簽?我不確定這是否可行,但我想知道是否有辦法在 Cucumber 運(yùn)行時修改標(biāo)簽。在我的示例代碼中,我想在 Cucumber 運(yùn)行后添加另一個標(biāo)記“@Login”。我正在嘗試設(shè)置一個配置,在其中我可以選擇要運(yùn)行的功能而無需進(jìn)入 Runner 類。設(shè)置類 String AddTags = "@Login";          set = new HashMap<String, String>(){            {put("Tags", AddTags);賽跑者import org.junit.runner.RunWith;import cucumber.api.CucumberOptions;import cucumber.api.junit.Cucumber;@RunWith(Cucumber.class) @CucumberOptions (features="src/test/cucumber/features", tags = "@Smoke",  //For instance, once cucumber runs I want to add tag "@Login". //So something like adding Settings.set.get("Tags");plugin = {"pretty", "html:target/cucumber- htmlreport","json:target/cucumber-report.json"})public class Runner {}不確定 Cucumber 是否可行,但想問一下。
查看完整描述

2 回答

?
FFIVE

TA貢獻(xiàn)1797條經(jīng)驗 獲得超6個贊

您可以使用標(biāo)簽表達(dá)式來組合多個標(biāo)簽,例如:


**Expression        Description**

@fast               Scenarios tagged with @fast

@wip and not @slow  Scenarios tagged with @wip that aren’t also tagged with @slow

@smoke and @fast    Scenarios tagged with both @smoke and @fast

@gui or @database   Scenarios tagged with either @gui or @database


查看完整回答
反對 回復(fù) 2022-12-28
?
守著星空守著你

TA貢獻(xiàn)1799條經(jīng)驗 獲得超8個贊

使用標(biāo)簽列表怎么樣?

tags = "@Smoke,@Login"


查看完整回答
反對 回復(fù) 2022-12-28
  • 2 回答
  • 0 關(guān)注
  • 101 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號