Issue with Test Plan (StaticTestSuite) migration.. #852
Replies: 14 comments
-
Could you please provide any comments on this reported issue as in what could have caused this reported issue while migrating the test plans from Source TFS 2015 to Target TFS 2017? Please let me know if I am missing anything over here or any configuration issue in configuration.json file. Here it is error message that I am getting while migrating test plans for your reference : ----------------------------------------------------------------------------------------------- "'Active' is not a valid status of TestSuite." '((Microsoft.TeamFoundation.TestManagement.Client.TestSuite)parent).State' threw an exception of type 'Microsoft.TeamFoundation.TestManagement.Client.TestManagementValidationException' {"The field 'State' contains the value 'Active' that is not in the list of supported values"} |
Beta Was this translation helpful? Give feedback.
-
Are the States the same on the TestSuit work item type between the two locations? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Please let me know if @MrHinsh or anyone has any update on this test plans migration issue, and how to go about to resolve this issue, if there are any suggestion, kindly advice on the same. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I am unable to reproduce. Perhaps debugging in Visual Studio will yield results. Have you tried that? Also providing the whole log and config would be valuable. |
Beta Was this translation helpful? Give feedback.
-
@MrHinsh : By the way, I ran the migration tool for the first run with work items and I believe, it creates Test cases already at the first run with Here it is error message that I am getting while migrating test plans for your reference : "'Active' is not a valid status of TestSuite." '((Microsoft.TeamFoundation.TestManagement.Client.TestSuite)parent).State' threw an exception of type 'Microsoft.TeamFoundation.TestManagement.Client.TestManagementValidationException' {"The field 'State' contains the value 'Active' that is not in the list of supported values"} |
Beta Was this translation helpful? Give feedback.
-
@MrHinsh , Any updates on this issue? Please let me know. Thanks! |
Beta Was this translation helpful? Give feedback.
-
When debugging you can add a break just before the save and inspect the |
Beta Was this translation helpful? Give feedback.
-
@MrHinsh I have debugged the migration tool code for version 11.9.30 and finally, I have found the root cause of this test plans migration issue. Thanks for the help! Attached configuration.json for all test plans, test suites and test cases migration. Please confirm if this looks good to you or if I am missing any configurations that needs to be added in configuration.json in order to migrate correctly all test plans, test suites and test cases. |
Beta Was this translation helpful? Give feedback.
-
Attached configuration.json for all test plans, test suites and test cases migration. Please confirm if this looks good to you or if I am missing any configurations that needs to be added in configuration.json in order to migrate correctly all test plans, test suites and test cases. configuration_TestPlansCasesSuitesMigration.json.txt
|
Beta Was this translation helpful? Give feedback.
-
1 - I don't see an issue. Try removing all of the field maps 2 - Correct |
Beta Was this translation helpful? Give feedback.
-
@MrHinsh , For 2) Are you saying Correct for this thing? Please confirm the same. |
Beta Was this translation helpful? Give feedback.
-
@MrHinsh , I just want to double check on this: So For 2) Are you saying Correct for this below thing? Please confirm the same. |
Beta Was this translation helpful? Give feedback.
-
This should be fixed with #883 ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@MrHinsh
I am trying to migrate my Test Plans that has state field with "Active" value in it from source TFS server (TFS 2015) into Target TFS Server (TFS 2017).
It tries to create the test plan (StaticTestSuite) and as soon as it hits this line ((IStaticTestSuite)parent).Entries.Add(newTestSuite);
under method SaveNewTestSuiteToPlan, it throws out the exception message saying "The field 'State' contains the value 'Active' that is not in the list of supported values"
Can you please advise what could be cause of this issue? Please let me know if I am missing anything over here or if the "State" field for this Test plan needs to be changed to something to migrate it to TFS 2017 server.
Thanks for the help!
[18:29:45 INF] Migration Context Complete TestConfigurationsMigrationContext
[18:30:05 INF] == Plan[1/1] Suite[1/2] Cases[0/0] - suiteid[214142] | Processing StaticTestSuite : 214142 - New_Static_Suite_ABC
[18:30:10 INF] == Plan[1/1] Suite[1/2] Cases[0/0] - suiteid[0 ] | Saving StaticTestSuite : 0 - New_Static_Suite_ABC
Exception/Error Message :
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs)
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
at Microsoft.TeamFoundation.TestManagement.Client.TestManagementWebService4.AddSuiteToSuite(IdAndRev parent, ServerTestSuite suite, String teamProjectName, UpdatedProperties& newSuiteProperties, Int32 toIndex)
at Microsoft.TeamFoundation.TestManagement.Client.TestSuiteHelper.<>c__DisplayClass26_0.b__0()
at Microsoft.TeamFoundation.TestManagement.Client.TestSuiteHelper.TrySuiteOperationWithRefreshAndRetry(Action operation, TestSuite& source, TestSuite& destination)
at Microsoft.TeamFoundation.TestManagement.Client.TestSuiteHelper.ServerAddSuiteToSuite(TestSuite parent, TestSuite child, Int32 toIndex)
at Microsoft.TeamFoundation.TestManagement.Client.TestSuite.InsertSuiteEntry(Int32 newIndex, TestSuiteEntry entry)
at Microsoft.TeamFoundation.TestManagement.Client.GenericCollection`2.Add(TInterface item)
at Microsoft.TeamFoundation.TestManagement.Client.TestSuiteEntryCollection.Add(ITestSuiteBase suite)
at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.SaveNewTestSuiteToPlan(ITestPlan testPlan, IStaticTestSuite parent, ITestSuiteBase newTestSuite) in C:\azure-devops-migration-tools-11.9.26\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 962
Beta Was this translation helpful? Give feedback.
All reactions