Exemple #1
0
 public RQMImportReviewPage(RQMTestPlan testPlan = null, string importDestinationPath = "")
 {
     InitializeComponent();
     mTestPlan = testPlan;
     mImportDestinationPath = importDestinationPath;
     SetGridView();
     SetGridData();
 }
Exemple #2
0
 public override void UpdateBusinessFlow(ref BusinessFlow businessFlow)
 {
     foreach (RQMTestPlan testPlan in RQMConnect.Instance.GetRQMTestPlansByProject(ALMCore.DefaultAlmConfig.ALMServerURL, ALMCore.DefaultAlmConfig.ALMUserName, ALMCore.DefaultAlmConfig.ALMPassword, ALMCore.DefaultAlmConfig.ALMProjectName, System.IO.Path.Combine(WorkSpace.Instance.Solution.Folder, @"Documents\ALM\RQM_Configs")).OrderByDescending(item => item.CreationDate))
     {
         if (testPlan.RQMID == ExportToRQM.GetExportedIDString(businessFlow.ExternalID, "RQMID"))
         {
             RQMTestPlan currentRQMTestPlan = RQMConnect.Instance.GetRQMTestPlanFullData(ALMCore.DefaultAlmConfig.ALMServerURL, ALMCore.DefaultAlmConfig.ALMUserName, ALMCore.DefaultAlmConfig.ALMPassword, ALMCore.DefaultAlmConfig.ALMProjectName, testPlan);
             ((RQMCore)ALMIntegration.Instance.AlmCore).UpdateBusinessFlow(ref businessFlow, currentRQMTestPlan);
         }
     }
 }
Exemple #3
0
 public override void UpdateActivitiesGroup(ref BusinessFlow businessFlow, List <Tuple <string, string> > TCsIDs)
 {
     foreach (RQMTestPlan testPlan in RQMConnect.Instance.GetRQMTestPlansByProject(App.UserProfile.Solution.ALMServerURL, App.UserProfile.ALMUserName, App.UserProfile.ALMPassword, App.UserProfile.Solution.ALMProject, System.IO.Path.Combine(App.UserProfile.Solution.Folder, @"Documents\ALM\RQM_Configs")).OrderByDescending(item => item.CreationDate))
     {
         if (testPlan.RQMID == ExportToRQM.GetExportedIDString(businessFlow.ExternalID, "RQMID"))
         {
             RQMTestPlan currentRQMTestPlan = RQMConnect.Instance.GetRQMTestPlanFullData(App.UserProfile.Solution.ALMServerURL, App.UserProfile.ALMUserName, App.UserProfile.ALMPassword, App.UserProfile.Solution.ALMProject, (RQMTestPlan)testPlan);
             ((RQMCore)ALMIntegration.Instance.AlmCore).UpdatedRQMTestInBF(ref businessFlow, currentRQMTestPlan, TCsIDs.Select(x => x.Item1.ToString()).ToList());
         }
     }
 }
        private void ImportTestPlan(RQMTestPlan testPlan)
        {
            if (testPlan == null)
            {
                importStatus = false;
                UpdateStatus("Failed To Import Test Plan");
                return;
            }

            if (ALMIntegration.Instance.ShowImportReviewPage(mImportDestinationPath, testPlan) == true)
            {
            }
        }
 private void ImportSelectedTestPlan()
 {
     Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;
     ResetStatus();
     testPlanId = txtTestPlanId.Text;
     if (testPlanId != "")
     {
         RQMTestPlan testPlan = RQMConnect.Instance.GetRQMTestPlanByIdByProject(WorkSpace.Instance.Solution.ALMServerURL, WorkSpace.Instance.UserProfile.ALMUserName,
                                                                                WorkSpace.Instance.UserProfile.ALMPassword, WorkSpace.Instance.Solution.ALMProject, testPlanId);
         ImportTestPlan(testPlan);
     }
     else
     {
         importStatus = false;
         UpdateStatus("Test Plan Id cannot be empty");
     }
     Mouse.OverrideCursor = null;
 }
 private void ImportSelectedTestPlan()
 {
     Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;
     ResetStatus();
     testPlanId = txtTestPlanId.Text;
     if (testPlanId != "")
     {
         RQMTestPlan testPlan = RQMConnect.Instance.GetRQMTestPlanByIdByProject(ALMCore.DefaultAlmConfig.ALMServerURL, ALMCore.DefaultAlmConfig.ALMUserName,
                                                                                ALMCore.DefaultAlmConfig.ALMPassword, ALMCore.DefaultAlmConfig.ALMProjectName, testPlanId);
         ImportTestPlan(testPlan);
     }
     else
     {
         importStatus = false;
         UpdateStatus("Test Plan Id cannot be empty");
     }
     Mouse.OverrideCursor = null;
 }
Exemple #7
0
 public BusinessFlow ConvertRQMTestPlanToBF(RQMTestPlan testPlan)
 {
     return(ImportFromRQM.ConvertRQMTestPlanToBF(testPlan));
 }
Exemple #8
0
 public void UpdateBusinessFlow(ref BusinessFlow busFlow, RQMTestPlan testPlan)
 {
     ImportFromRQM.UpdateBusinessFlow(ref busFlow, testPlan);
 }
Exemple #9
0
 public void UpdatedRQMTestInBF(ref BusinessFlow busFlow, RQMTestPlan testPlan, List <string> TCsIDs)
 {
     ImportFromRQM.UpdatedRQMTestInBF(ref busFlow, testPlan, TCsIDs);
 }