当showAllSteps:FALSE时,被调用特征文件的小黄瓜步骤不会显示在黄瓜并行运行报告中 [英] Gherkin steps of called feature file are not shown in cucumber parallel run report when showAllSteps: false
本文介绍了当showAllSteps:FALSE时,被调用特征文件的小黄瓜步骤不会显示在黄瓜并行运行报告中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在使用Karate
中提供的报告详细信息选项我有一个调用BBB.Feature的MarketingPferenceTest.Feature。
功能如下:
MarketingPferenceTest.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
我的空手道.config有
karate.configure('report', { showLog: true, showAllSteps: false } );
当我并行运行测试时,我希望看到所有给定的-When-Then都打印在我的来自BBB.Feature的黄瓜报告中。我如何实现它?
黄瓜报告如下所示,它没有来自BBB的步骤定义。功能:
预期结果:我希望看到BBB的步骤。我的报表中的功能在下面的矩形框中标记
推荐答案
只需执行callSingle
使用小黄瓜关键字:
When def result = karate.callSingle('classpath:resources/BBB.feature',credentials)
这篇关于当showAllSteps:FALSE时,被调用特征文件的小黄瓜步骤不会显示在黄瓜并行运行报告中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文