private void LoadActionsGrid()
        {
            SetGridView();
            RunSetActionsGrid.AddSeparator();

            RunSetActionsGrid.AddToolbarTool("@AddHTMLReport_16x16.png", "Add Produce HTML Report Operation", AddHTMLReport);
            RunSetActionsGrid.AddToolbarTool("@AddMail_16x16.png", "Add Send HTML Report Email Operation", AddSendHTMLReportEmailAction);
            RunSetActionsGrid.AddToolbarTool("@AddFile_16x16.png", "Add Produce JSON Summary Report Operation", AddJSONSummary);
            RunSetActionsGrid.AddToolbarTool("@AddScript_16x16.png", "Add Produce TestNG Summary Report Operation", AddGenerateTestNGReportAction);
            RunSetActionsGrid.AddSeparator();
            RunSetActionsGrid.AddToolbarTool("@AddMail2_16x16.png", "Add Send Text Email Operation", AddSendFreeEmailAction);
            RunSetActionsGrid.AddToolbarTool("@AddSMS_16x16.png", "Add Send SMS Operation", AddSendSMS);
            RunSetActionsGrid.AddSeparator();
            RunSetActionsGrid.AddToolbarTool("@AddRunSetALMAction_16x16.png", "Add Publish Execution Results to ALM Operation", AddPublishtoALMAction);
            RunSetActionsGrid.AddToolbarTool("@AddDefectsToALM_16x16.png", "Add Open ALM Defects Operation", AddAutomatedALMDefectsOperation);
            RunSetActionsGrid.AddSeparator();
            RunSetActionsGrid.AddToolbarTool("@AddScript2_16x16.png", "Add Run Script Operation", AddScriptAction);

            RunSetActionsGrid.AddSeparator();
            RunSetActionsGrid.AddToolbarTool(Amdocs.Ginger.Common.Enums.eImageType.SignOut, "Add Send Execution JSON Data To External Source Operation", AddSendExecutionDataToExternalSourceAction);

            RunSetActionsGrid.AddSeparator();
            RunSetActionsGrid.AddToolbarTool("@Run_16x16.png", "Run Selected", RunSelected);
            RunSetActionsGrid.AddSeparator();
            RunSetActionsGrid.AddToolbarTool("@RunAll_16x16.png", "Run All", RunAll);
            RunSetActionsGrid.AddSeparator();
            SetContentAndEventsListeners();
        }
Ejemplo n.º 2
0
        private void SetGridView()
        {
            RunSetActionsGrid.ShowHeader = Visibility.Collapsed;
            GridViewDef view = new GridViewDef(GridViewDef.DefaultViewName);
            ObservableList <GridColView> viewCols = new ObservableList <GridColView>();

            view.GridColsView = viewCols;

            viewCols.Add(new GridColView()
            {
                Field = RunSetActionBase.Fields.Active, WidthWeight = 50, StyleType = GridColView.eGridColStyleType.CheckBox
            });
            viewCols.Add(new GridColView()
            {
                Field = RunSetActionBase.Fields.Name, WidthWeight = 150
            });
            viewCols.Add(new GridColView()
            {
                Field = RunSetActionBase.Fields.Type, Header = "Type", WidthWeight = 150, BindingMode = System.Windows.Data.BindingMode.OneWay, ReadOnly = true
            });
            List <GingerCore.General.ComboEnumItem> runAtOptionList = GingerCore.General.GetEnumValuesForCombo(typeof(RunSetActionBase.eRunAt));

            viewCols.Add(new GridColView()
            {
                Field = RunSetActionBase.Fields.RunAt, Header = "Run At", WidthWeight = 100, StyleType = GridColView.eGridColStyleType.ComboBox, CellValuesList = runAtOptionList
            });
            List <GingerCore.General.ComboEnumItem> conditionOptionList = GingerCore.General.GetEnumValuesForCombo(typeof(RunSetActionBase.eRunSetActionCondition));

            viewCols.Add(new GridColView()
            {
                Field = RunSetActionBase.Fields.Condition, WidthWeight = 100, StyleType = GridColView.eGridColStyleType.ComboBox, CellValuesList = conditionOptionList
            });
            viewCols.Add(new GridColView()
            {
                Field = RunSetActionBase.Fields.Status, WidthWeight = 80, BindingMode = System.Windows.Data.BindingMode.OneWay, ReadOnly = true
            });
            viewCols.Add(new GridColView()
            {
                Field = RunSetActionBase.Fields.Errors, WidthWeight = 80, BindingMode = System.Windows.Data.BindingMode.OneWay, ReadOnly = true
            });
            viewCols.Add(new GridColView()
            {
                Field = RunSetActionBase.Fields.ElapsedSecs, Header = "Execution Duration (Seconds)", WidthWeight = 50, BindingMode = System.Windows.Data.BindingMode.OneWay, ReadOnly = true
            });

            RunSetActionsGrid.SetAllColumnsDefaultView(view);
            RunSetActionsGrid.InitViewItems();
        }
Ejemplo n.º 3
0
 private void LoadActionsGrid()
 {
     SetGridView();
     RunSetActionsGrid.AddSeparator();
     RunSetActionsGrid.AddToolbarTool("@AddHTMLReport_16x16.png", "Add Produce HTML Report Action", AddHTMLReport);
     RunSetActionsGrid.AddToolbarTool("@AddMail_16x16.png", "Add Send HTML Report Email Action", AddSendHTMLReportEmailAction);
     RunSetActionsGrid.AddToolbarTool("@AddMail2_16x16.png", "Add Send Free Text Email Action", AddSendFreeEmailAction);
     RunSetActionsGrid.AddToolbarTool("@AddScript_16x16.png", "Add Generate TestNGReport", AddGenerateTestNGReportAction);
     RunSetActionsGrid.AddToolbarTool("@AddRunSetALMAction_16x16.png", "Add Publish to ALM Action", AddPublishtoALMAction);
     RunSetActionsGrid.AddToolbarTool("@AddScript2_16x16.png", "Add Script Action", AddScriptAction);
     RunSetActionsGrid.AddToolbarTool("@AddScript_16x16.png", "Add Generate TestNGReport", AddGenerateTestNGReportAction);
     RunSetActionsGrid.AddToolbarTool("@AddDefectsToALM_16x16.png", "Automated ALM Defect’s Opening", AddAutomatedALMDefectsOperation);
     RunSetActionsGrid.AddToolbarTool("@AddSMS_16x16.png", "Add Send SMS Action", AddSendSMS);
     RunSetActionsGrid.AddSeparator();
     RunSetActionsGrid.AddToolbarTool("@Run_16x16.png", "Run Selected", RunSelected);
     RunSetActionsGrid.AddToolbarTool("@RunAll_16x16.png", "Run All", RunAll);
     RunSetActionsGrid.AddSeparator();
     SetContentAndEventsListeners();
 }