微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

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

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

有人知道如何解决此问题吗?任何帮助表示赞赏。

我的测试计划迁移配置:

"Processors": [
    {
      "ObjectType": "TestvariablesMigrationConfig","Enabled": true
    },{
      "ObjectType": "TestConfigurationsMigrationConfig",{
      "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字段,因为我似乎找不到它们。

解决方法

我能够找出问题所在。 TFS中的测试计划没有填写StartDate和EndDate。拥有正确访问权限的人已在TFS和迁移中的字段中填写,不再遇到此错误。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。