Scope control in Test Plan migration module using new flag #2648
itsmeuzair98
started this conversation in
Ideas
Replies: 1 comment
-
Please submit a pull request with this adition. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Code change in options file
Using Systems;
public int[] TestPlanIds { get; set; } = Array.Empty();
Code change in processor file
var sourcePlans = _sourceTestStore.GetTestPlans();
var testPlanIdsToMigrate = Options.TestPlanIds; // Get the IDs from the config
// Filter test plans: only keep the ones in TestPlanIds
if (testPlanIdsToMigrate != null && testPlanIdsToMigrate.Length > 0)
{
sourcePlans = sourcePlans.Where(tp => testPlanIdsToMigrate.Contains(tp.Id)).ToList();
}
List toProcess;
It works perfectly fine for me. Let me know if this adds any value to this tool.
Beta Was this translation helpful? Give feedback.
All reactions