简体   繁体   English

在 Azure 测试结果中显示完整的测试用例

[英]Display full test case in Azure test results

I have several JUnit test cases which I run on Azure:我有几个 JUnit 测试用例,我在 Azure 上运行:

@Tag("https://sometest.com")
@DisplayName("66734 Web Test - Serial Inquiry - negative")
@Test(testName = "66734 Web Test - Serial Inquiry", groups = { "multiple_runs" })
@Timeout(value = 60, unit = TimeUnit.SECONDS)
public void negativeSerialInquiryTest()
{
.......
}

When I run the tests in Azure I get:当我在 Azure 中运行测试时,我得到:

在此处输入图像描述

As you can see for Test Case title I get the name of the Java Method.正如您在测试用例标题中看到的那样,我得到了 Java 方法的名称。 I would like to display this name "66734 Web Test - Serial Inquiry" for Test Case title.我想为测试用例标题显示此名称"66734 Web Test - Serial Inquiry" Do you know how I can configure this?你知道我该如何配置吗?

To change the display name to "66734 Web Test - Serial Inquiry" for Test Case title you have to follow Rename your test plan and Publishing test results in JUnit .要将测试用例标题的显示名称更改为"66734 Web Test - Serial Inquiry" ,您必须按照重命名您的测试计划在 JUnit 中发布测试结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure:无法更新测试用例结果:无法读取未定义的属性“长度” - Azure: Unable to update test case results: Cannot read property 'length' of undefined 如何修改 azure 管道中测试结果的存储库/存储位置 - How to modify the repository / storage location for Test Results in azure pipeline Azure 管道找不到测试结果文件 - Azure pipelines can't find test results file 如何使用 Azure Devops 服务更新 Azure Devops 中测试用例的“区域路径” Rest API - How to update "Area Path" of a test case in Azure Devops using Azure Devops Services Rest API 如何在 C# 测试中从 azure devops(以前的 vsts)的测试用例中获取参数值? - How to get parameter values from a test case on azure devops (former vsts) in C# tests? 在 Firebase 测试实验室运行多个测试用例 - Running multiple test case on Firebase Test Lab Azure Application Insights 可用性测试中的假阴性 - False negative in Azure Application Insights Availability Test 如何测试使用上下文的 Azure Function? - How to test an Azure Function that uses Context? 单元测试 Azure 事件中心触发器(Azure 函数) - Unit test Azure Event Hub Trigger (Azure Function) Azure 服务总线主题触发器的 xUnit 测试 - xUnit test for Azure Service Bus Topic trigger
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM