【问题标题】:Missing feature title while exporting cucumber feature to .feature file in Xray?将黄瓜功能导出到 Xray 中的 .feature 文件时缺少功能标题?
【发布时间】:2021-03-16 07:00:05
【问题描述】:

在从 Xray Test Execution 导出黄瓜文件(特征)时,我最近注意到缺少特征名称(它应该从测试/任务名称中导入?)

> @XYZ-1234 Feature:
> 
>   #description    @XYZ-1234 @XYZ-1234 @XYZ-1234 @Tag_name
>   Scenario: Lorem ipsum dolor sit amet
>       Given Consectetur adipiscing elit
>       Then  Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua

是否可以在 Xray 中添加特征名称?

当您通过 wdio-cucumberjs-json-reporter 包生成 JSON 报告时,当我添加如下所示的功能名称时,JSON 没有名称,只有“.json”工作正常,但功能将通过 CI/CD 导出,所以我需要指出正确的 JSON 名称。

> @XYZ-1234 Feature: Added title manually
> 
>   #description    @XYZ-1234 @XYZ-1234 @XYZ-1234 @Tag_name
>   Scenario: Lorem ipsum dolor sit amet
>       Given Consectetur adipiscing elit
>       Then  Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua

有什么办法可以解决这种情况吗? 提前致谢。

【问题讨论】:

    标签: cucumber jira-xray


    【解决方案1】:

    为了填充“功能:”字段,您需要将 Xray 中的测试链接到“要求”(即可以通过测试涵盖的问题)。这些“要求”问题需要将其中一种问题类型配置为“documentation中详述的要求”

    .feature文件生成规则详解here

    顺便说一句,在最近的 Xray v4.2.3 中,如果您的测试场景未链接到“要求”,Xray 将使用默认名称自动填充 Feature: 部分;更多信息here.

    【讨论】:

    • Sergio,非常感谢,现在说得通了。我们有一个单独的 X 射线测试存储库,我们还没有设置任何需求问题类型。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多