1

我已将所有测试用例从 TFS 移动到 Azure DevOps,现在我正在使用工具版本 11.6.8 运行测试计划迁移,但遇到了错误。

有谁知道如何解决这一问题?任何帮助表示赞赏。

我的测试计划迁移配置:

"Processors": [
    {
      "ObjectType": "TestVariablesMigrationConfig",
      "Enabled": true
    },
    {
      "ObjectType": "TestConfigurationsMigrationConfig",
      "Enabled": true
    },
    {
      "ObjectType": "TestPlansAndSuitesMigrationConfig",
      "PrefixProjectToNodes": false,
      "Enabled": true,
      "OnlyElementsWithTag": null,
      "TestPlanQueryBit": null,
      "RemoveInvalidTestSuiteLinks": true,
      "FilterCompleted": false
    }
  ],

这是错误:

[11:38:46 INF] Processor: TestPlansAndSuitesMigrationContext
[11:38:46 INF] Migration Context Start: TestPlansAndSuitesMigrationContext
[11:38:46 INF] TestPlandsAndSuitesMigrationContext: Plan to copy 30 Plans?
[11:38:46 INF] ===============================================================================================
[11:38:46 INF] ===============================================================================================
[11:38:46 INF] ===============================================================================================
[11:38:46 INF] ==      Suite Name: Bill 9 & Sanctions Release 1 Iteration 1     =============================
[11:38:46 INF] ==            Date: 2016/03/31                                   =============================
[11:38:47 INF] ==          Suites: 6                                            =============================
[11:38:47 INF] ===============================================================================================
[11:38:47 INF] ===============================================================================================
[11:38:47 INF] ===============================================================================================
[11:38:47 INF] == Plan[ 1/30] Suite[0/0] Cases[0/0]  - planid[463   ] | Process Plan Bill 9 & Sanctions Release 1 Iteration 1
[11:38:47 INF] ===============================================================================================
[11:38:48 INF] ===============================================================================================
[11:38:48 INF] ===============================================================================================
[11:38:48 INF] ===============================================================================================
[11:38:48 INF] ==      Suite Name: Hello TFS                                    =============================
[11:38:48 INF] ==            Date: 0001/01/01                                   =============================
[11:38:48 INF] ==          Suites: 1                                            =============================
[11:38:48 INF] ===============================================================================================
[11:38:48 INF] ===============================================================================================
[11:38:48 INF] ===============================================================================================
[11:38:48 INF] == Plan[ 2/30] Suite[0/0] Cases[0/0]  - planid[535   ] | Process Plan Hello TFS
[11:38:48 INF] ===============================================================================================
[11:38:49 INF] == Plan[ 2/30] Suite[0/0] Cases[0/0]  - planid[535   ] |  Creating Plan Hello TFS
[11:38:50 FTL] Error while running TestPlansAndSuitesMigrationContext
**Microsoft.TeamFoundation.TestManagement.**Client.TestManagementValidationException: The test plan cannot be saved because some properties are not valid.

**EndDate: The value of field 'EndDate' must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
StartDate: The value of field 'StartDate' must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.**

   at Microsoft.TeamFoundation.TestManagement.Client.TestPlan.Save()
   at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.ProcessTestPlan(ITestPlan sourcePlan) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 747
   at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.InternalExecute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 83
   at MigrationTools.Engine.Processors.MigrationProcessorBase.Execute() in D:\a\1\s\src\MigrationTools\Engine\Processors\MigrationProcessorBase.cs:line 45
[11:38:50 ERR] TestPlansAndSuitesMigrationContext The Processor MigrationEngine entered the failed state...stopping run

在 AzDO 流程模板中,我已将 EndDate 和 Start Date 设置为“将初始值设置为当前日期和时间”,但仍然遇到此错误。

看起来错误是关于保存 TFS 测试计划?TFS 测试计划中是否存在 StartDate 和 EndDate 字段,因为我似乎找不到它们。

4

1 回答 1

1

我能够弄清楚这个问题。TFS 中的测试计划没有填写 StartDate 和 EndDate。具有正确访问权限的人填写了 TFS 和迁移中的字段,不再遇到此错误。

于 2020-10-20T19:47:49.593 回答