tbl_TestRun中的状态列映射

时间:2016-10-26 13:58:35

标签: tfs tfs2010

我试图从表tbl_TestRun获取一些信息。

不幸的是,我没有找到不同州的文件。该列包含3或4之类的值。但我需要知道什么值代表什么状态。

1 个答案:

答案 0 :(得分:1)

状态ID只是状态ID,对应于tbl_TestRun中可以找到的状态名称,如下图所示  enter image description here

添加所有相关的州和州名称,如下所示:

SELECT 0 AS [StateID], 'Unspecified' AS [StateName]
    UNION ALL
    SELECT 1 AS [OutcomeId], 'To Be Determined (1)' AS [StateName]
    UNION ALL
    SELECT 2 AS [StateID], 'In Progress' AS [StateName]
    UNION ALL
    SELECT 3 AS [StateID], 'Completed' AS [StateName]
    UNION ALL
    SELECT 4 AS [StateID], 'Aborted' AS [StateName]
    UNION ALL
    SELECT 5 AS [OutcomeId], 'To Be Determined (5)' AS [StateName]
    UNION ALL
    SELECT 6 AS [StateID], 'Needs Investigation' AS [StateName]