public ExportResultsToALMConfigPage(RunSetActionPublishToQC runSetActionPublishToQC) { InitializeComponent(); Context context = new Context(); if (runSetActionPublishToQC.VariableForTCRunName == null) { runSetActionPublishToQC.VariableForTCRunName = "GingerRun_{CS Exp=DateTime.Now}"; } mPublishToALMConfig.AlmFields = runSetActionPublishToQC.AlmFields; VariableForTCRunName.Init(null, runSetActionPublishToQC, nameof(RunSetActionPublishToQC.VariableForTCRunName)); BindingHandler.ObjFieldBinding(VariableForTCRunName, TextBox.TextProperty, runSetActionPublishToQC, nameof(RunSetActionPublishToQC.VariableForTCRunName)); BindingHandler.ObjFieldBinding(UseVariableInTCRunNameCbx, CheckBox.IsCheckedProperty, runSetActionPublishToQC, nameof(RunSetActionPublishToQC.isVariableInTCRunUsed)); BindingHandler.ObjFieldBinding(AttachActivitiesGroupReportCbx, CheckBox.IsCheckedProperty, runSetActionPublishToQC, nameof(RunSetActionPublishToQC.toAttachActivitiesGroupReport)); xFilterByStatusDroplist.BindControl(runSetActionPublishToQC, nameof(RunSetActionPublishToQC.FilterStatus)); xALMTypeCbx.Init(runSetActionPublishToQC, nameof(RunSetActionPublishToQC.PublishALMType), GingerCore.General.GetEnumValuesForComboAndAddExtraValues(typeof(eALMType), new List <ComboEnumItem>() { new ComboEnumItem() { text = RunSetActionPublishToQC.AlmTypeDefault, Value = RunSetActionPublishToQC.AlmTypeDefault } }), ComboBox.TextProperty); xALMTestSetLevelCbx.Init(runSetActionPublishToQC, nameof(RunSetActionPublishToQC.ALMTestSetLevel), Enum.GetValues(typeof(eALMTestSetLevel)).Cast <eALMTestSetLevel>().ToList(), ComboBox.SelectedValueProperty); xALMTestSetLevelCbx.ComboBox.SelectionChanged += xALMTestSetLevelCbx_SelectionChanged; xExportTypeCbx.Init(runSetActionPublishToQC, nameof(RunSetActionPublishToQC.ExportType), Enum.GetValues(typeof(eExportType)).Cast <eExportType>().ToList(), ComboBox.SelectedValueProperty); xTestSetFolderDestination.Init(context, runSetActionPublishToQC, nameof(RunSetActionPublishToQC.TestSetFolderDestination)); xTestCaseFolderDestination.Init(context, runSetActionPublishToQC, nameof(RunSetActionPublishToQC.TestCaseFolderDestination)); xExportTypeCbx.ComboBox.SelectionChanged += xExportTypeCbx_SelectionChanged; xALMTypeCbx.ComboBox.SelectionChanged += xALMTypeCbx_SelectionChanged; xALMTestSetLevelCbx_SelectionChanged(this, null); xALMTypeCbx_SelectionChanged(this, null); }
private void AddPublishtoALMAction(object sender, RoutedEventArgs e) { RunSetActionPublishToQC RSAPTAC = new RunSetActionPublishToQC(); RSAPTAC.Name = "Publish to ALM"; RSAPTAC.RunAt = RunSetActionBase.eRunAt.DuringExecution; mRunSetConfig.RunSetActions.Add(RSAPTAC); RunSetActionsGrid.Grid.SelectedItem = RSAPTAC; }
public ExportResultsToALMConfigPage(RunSetActionPublishToQC runSetActionPublishToQC) { InitializeComponent(); if (runSetActionPublishToQC.VariableForTCRunName == null) { runSetActionPublishToQC.VariableForTCRunName = "GingerRun_{VBS Eval=now()}"; } VariableForTCRunName.Init(null, runSetActionPublishToQC, RunSetActionPublishToQC.Fields.VariableForTCRunName); App.ObjFieldBinding(VariableForTCRunName, TextBox.TextProperty, runSetActionPublishToQC, RunSetActionPublishToQC.Fields.VariableForTCRunName); App.ObjFieldBinding(UseVariableInTCRunNameCbx, CheckBox.IsCheckedProperty, runSetActionPublishToQC, RunSetActionPublishToQC.Fields.isVariableInTCRunUsed); App.ObjFieldBinding(AttachActivitiesGroupReportCbx, CheckBox.IsCheckedProperty, runSetActionPublishToQC, RunSetActionPublishToQC.Fields.toAttachActivitiesGroupReport); xFilterByStatusDroplist.BindControl(runSetActionPublishToQC, nameof(RunSetActionPublishToQC.FilterStatus)); }
private void AddPublishtoALMAction(object sender, RoutedEventArgs e) { RunSetActionPublishToQC RSAPTAC = new RunSetActionPublishToQC(); RSAPTAC.Name = RSAPTAC.Type; RSAPTAC.RunAt = RunSetActionBase.eRunAt.ExecutionEnd; mRunSetConfig.RunSetActions.Add(RSAPTAC); RunSetActionsGrid.Grid.SelectedItem = RSAPTAC; RunSetActionPublishToQCOperations runSetActionPublishToQC = new RunSetActionPublishToQCOperations(RSAPTAC); RSAPTAC.RunSetActionPublishToQCOperations = runSetActionPublishToQC; RunSetActionBaseOperations runSetActionBaseOperations = new RunSetActionBaseOperations(RSAPTAC); RSAPTAC.runSetActionBaseOperations = runSetActionBaseOperations; }