You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure DevOps Server 2019本地版能否自定义测试用例步骤列?

Hey there! Great question—you absolutely can add custom columns to the test case steps grid in Azure DevOps Server 2019 Update 1.1 using the XML process model, and you don't need the SDK at all. Let me walk you through exactly how to do this:

How to Add Custom Columns to Test Case Steps

Step 1: Export the Process Configuration File

First, you'll need to export your project's process configuration using the witadmin command-line tool (included with Azure DevOps Server). Open a command prompt and run:

witadmin exportprocessconfig /collection:http://your-server-url:8080/tfs/YourCollectionName /p:YourProjectName /f:C:\temp\ProcessConfig.xml

Replace your-server-url, YourCollectionName, and YourProjectName with your actual server details, and adjust the file path to where you want to save the XML file.

Step 2: Add Your Custom Column to the Configuration

Open the exported ProcessConfig.xml file in a text editor. Look for the <TestSteps> node—this controls the columns displayed in the test case steps grid. By default, it will look like this:

<TestSteps>
  <Columns>
    <Column Name="Action" />
    <Column Name="ExpectedResult" />
    <Column Name="Attachment" />
  </Columns>
</TestSteps>

Add a new <Column> element inside the <Columns> section for your custom field. For example, if you want to add a "Precondition" column:

<TestSteps>
  <Columns>
    <Column Name="Action" />
    <Column Name="ExpectedResult" />
    <Column Name="Precondition" /> <!-- Your new custom column -->
    <Column Name="Attachment" />
  </Columns>
</TestSteps>

Save the modified XML file.

Step 3: Import the Updated Configuration

Go back to your command prompt and run the import command to push your changes to the server:

witadmin importprocessconfig /collection:http://your-server-url:8080/tfs/YourCollectionName /p:YourProjectName /f:C:\temp\ProcessConfig.xml

You should see a confirmation message once the import is successful.

Step 4: Verify the Custom Column

Open Azure DevOps Server, navigate to a test case, and edit its steps. You'll now see your new custom column in the steps grid—you can start entering data into it right away!

Quick Notes

  • Keep your column names descriptive and avoid conflicts with existing system column names.
  • This method works purely with XML process configuration—no SDK or custom code is required.
  • If you need to enforce rules (like making the column required) or customize data types, you can extend this configuration further, but the above steps cover the core use case of adding a new column.

内容的提问来源于stack exchange,提问作者Francesco Sclano

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.08 12:07:38