测试计划迁移问题 - 字段 'EndDate' 的值必须介于 1/1/1753 12:00:00 AM 和 12/31/9999 11:59:59 PM 之间

Issue with Test Plan Migration - The value of field 'EndDate' must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM

我已将所有测试用例从 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\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 747
   at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.InternalExecute() in D:\a\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 83
   at MigrationTools.Engine.Processors.MigrationProcessorBase.Execute() in D:\a\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 字段,因为我似乎找不到它们。

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