我们正在使用Karate
中提供的报告详细程度选项我有一个称为BBB.feature的MarketingPreferenceTest.feature。
功能如下:
MarketingPreferenceTest.feature
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的黄瓜报告中印制的所有Give-When-Then。我该如何实现?
下面显示的黄瓜报告没有来自BBB.feature的步骤定义:
预期结果:想在我的报告中看到BBB步骤。在下面的矩形框中标记了
答案 0 :(得分:1)
只需使包含callSingle
的步骤使用Gherkin关键字:
When def result = karate.callSingle('classpath:resources/BBB.feature',credentials)