Karate showAllSteps:false时,被调用特征文件的小黄瓜步骤不会显示在cucumber并行运行报告中
我们正在使用中提供的报告详细性选项 我有一个叫BBB.feature的MarketingPreferenceTest.feature 其特点如下: MarketingPreferenceTest.featureKarate showAllSteps:false时,被调用特征文件的小黄瓜步骤不会显示在cucumber并行运行报告中,karate,Karate,我们正在使用中提供的报告详细性选项 我有一个叫BBB.feature的MarketingPreferenceTest.feature 其特点如下: MarketingPreferenceTest.feature Background: * url Url * table credentials |Email |Password| |'aaa@test.com'|'test1234'| * def result = karate.callS
Background:
* url Url
* table credentials
|Email |Password|
|'aaa@test.com'|'test1234'|
* def result = karate.callSingle('classpath:resources/BBB.feature',credentials)
Scenario Outline: Get MS
Given path 'abc'
When method GET
Then status 200
BBB.特色:
Background:
* configure retry = { count: 5, interval: 1000 }
* configure headers = { 'Content-Type': 'application/json'}
* url authenticationUrl
Scenario: Login
Given path 'login'
And request { email: '#(Email)' , password: '#(Password)' }
And retry until responseStatus == 200 && response.loginResponse.loggedIn == true
When method post
我的karate.config
karate.configure('report', { showLog: true, showAllSteps: false } );
当我并行运行测试时,我希望看到BBB.feature中的cucumber报告中打印的所有给定时间。我如何做到这一点
cucumber报告如下所示,其中没有BBB.feature中的步骤定义:
预期结果:希望看到我的报告中BBB.feature的步骤标记在下面的矩形框中
只需执行包含
callSingle的步骤
使用小黄瓜关键词:
When def result = karate.callSingle('classpath:resources/BBB.feature',credentials)
这个问题真让人困惑,我不明白需要什么。如果你真的需要帮助,请遵循以下流程:@PeterThomas:我已经修改了我的问题,让它更清楚,如果你还有任何问题,请告诉我。对不起,这没有帮助,也许其他人会有耐心在没有完整工作示例的情况下解决这个问题。完整工作示例可以在中找到。请看一看。