NUnit Jenkins 插件不填充 'output' 标签中的内容
NUnit Jenkins plugin does not populate content from the 'output' tag
我使用 Specflow 作为自动化框架并使用 NUnit 控制台运行器执行测试。
我还配置了 NUnit Jenkins 插件以通过 Jenkins 执行测试用例。
当我使用 Jenkins 执行测试并发布报告时,Jenkins 不会填充 output 标签中存在的内容
这是 result.xml 文件中的片段。
有没有一种方法可以将输出内容与 Jenkins 发布的报告中的功能列表一起填充?
<test-case id="0-1016" name="DemoTest" fullname="TestSolution.Features.DemoFeature.DemoTest" methodname="DemoTest" classname="DemoTestSolution.Features.DemoFeature" runstate="Runnable" seed="1408909031" result="Passed" start-time="2018-01-30 09:17:35Z" end-time="2018-01-30 09:18:45Z" duration="69.824025" asserts="0">
<properties>
<property name="Description" value="01 Demo test automation feature" />
<property name="Category" value="test" />
</properties>
<output><![CDATA[Given I should be logged into portal
-> done: CommonsFeatureSteps.WhenIShouldBeLoggedInto("portal") (19.7s)
And I select Test Club from club drop down
-> done: CommonsFeatureSteps.GivenISelectTestClubFromClubDropDown("Test Coun...") (5.4s)
And I move to Dashboard Item page
-> done: CommonsFeatureSteps.GivenIMoveToAccountBalancePage("Dashboard Item") (5.1s)
And I add Test Card
-> done: TestCardSteps.GivenIAddTestCard("Test Card") (8.9s)
Then Card should be added
-> done: TestCardSteps.ThenCardShouldBeAdded() (0.2s)
]]></output>
</test-case>
我希望将输出填充为以下格式
该功能已包含在 NUnit 插件版本 0.23 中。
现在 Jenkins 插件也显示标准输出。
我使用 Specflow 作为自动化框架并使用 NUnit 控制台运行器执行测试。
我还配置了 NUnit Jenkins 插件以通过 Jenkins 执行测试用例。
当我使用 Jenkins 执行测试并发布报告时,Jenkins 不会填充 output 标签中存在的内容
这是 result.xml 文件中的片段。
有没有一种方法可以将输出内容与 Jenkins 发布的报告中的功能列表一起填充?
<test-case id="0-1016" name="DemoTest" fullname="TestSolution.Features.DemoFeature.DemoTest" methodname="DemoTest" classname="DemoTestSolution.Features.DemoFeature" runstate="Runnable" seed="1408909031" result="Passed" start-time="2018-01-30 09:17:35Z" end-time="2018-01-30 09:18:45Z" duration="69.824025" asserts="0">
<properties>
<property name="Description" value="01 Demo test automation feature" />
<property name="Category" value="test" />
</properties>
<output><![CDATA[Given I should be logged into portal
-> done: CommonsFeatureSteps.WhenIShouldBeLoggedInto("portal") (19.7s)
And I select Test Club from club drop down
-> done: CommonsFeatureSteps.GivenISelectTestClubFromClubDropDown("Test Coun...") (5.4s)
And I move to Dashboard Item page
-> done: CommonsFeatureSteps.GivenIMoveToAccountBalancePage("Dashboard Item") (5.1s)
And I add Test Card
-> done: TestCardSteps.GivenIAddTestCard("Test Card") (8.9s)
Then Card should be added
-> done: TestCardSteps.ThenCardShouldBeAdded() (0.2s)
]]></output>
</test-case>
我希望将输出填充为以下格式
该功能已包含在 NUnit 插件版本 0.23 中。
现在 Jenkins 插件也显示标准输出。