private void SetExportToALMConfig()
        {
            PublishToALMConfig.IsVariableInTCRunUsed         = RunSetActionPublishToQC.isVariableInTCRunUsed;
            PublishToALMConfig.ToAttachActivitiesGroupReport = RunSetActionPublishToQC.toAttachActivitiesGroupReport;
            PublishToALMConfig.VariableForTCRunName          = RunSetActionPublishToQC.VariableForTCRunName;
            PublishToALMConfig.CalculateTCRunName(mVE);
            PublishToALMConfig.FilterStatus = RunSetActionPublishToQC.FilterStatus;
            //check ALM type logic
            if (RunSetActionPublishToQC.PublishALMType == RunSetActionPublishToQC.AlmTypeDefault)
            {
                //connect as connected till now to whatever default
            }
            else if (RunSetActionPublishToQC.PublishALMType != null)
            {
                eALMType almType = (eALMType)Enum.Parse(typeof(eALMType), RunSetActionPublishToQC.PublishALMType);
                //connect to the specific ALM type
                PublishToALMConfig.PublishALMType = almType;
            }

            PublishToALMConfig.ALMTestSetLevel           = RunSetActionPublishToQC.ALMTestSetLevel;
            PublishToALMConfig.ExportType                = RunSetActionPublishToQC.ExportType;
            PublishToALMConfig.AlmFields                 = RunSetActionPublishToQC.AlmFields;
            PublishToALMConfig.TestSetFolderDestination  = RunSetActionPublishToQC.TestSetFolderDestination;
            PublishToALMConfig.TestCaseFolderDestination = RunSetActionPublishToQC.TestCaseFolderDestination;
        }
示例#2
0
 private void SetExportToALMConfig()
 {
     PublishToALMConfig.IsVariableInTCRunUsed         = isVariableInTCRunUsed;
     PublishToALMConfig.ToAttachActivitiesGroupReport = toAttachActivitiesGroupReport;
     PublishToALMConfig.VariableForTCRunName          = VariableForTCRunName;
     PublishToALMConfig.CalculateTCRunName(mVE);
     PublishToALMConfig.FilterStatus = FilterStatus;
 }
        private async void xExportToALMBtn_Click(object sender, RoutedEventArgs e)
        {
            string result = string.Empty;

            xExportToALMLoadingIcon.Visibility = Visibility.Visible;
            IsProcessing = true;
            mPublishToALMConfig.CalculateTCRunName(mVE);
            await Task.Run(() => {
                ALMIntegration.Instance.ExportBusinessFlowsResultToALM(mBfs, ref result, mPublishToALMConfig, ALMIntegration.eALMConnectType.Auto, true);
            });

            IsProcessing = false;
            xExportToALMLoadingIcon.Visibility = Visibility.Collapsed;
            Reporter.ToUser(eUserMsgKey.ExportedExecDetailsToALM, result);
        }