コード例 #1
0
        Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
        {
            if (mDocumentViewerPage == null)
            {
                //TODO: init and load the correct file editor in BasicTextEditor
                mDocumentViewerPage = new DocumentEditorPage(Path, true);
            }

            return(mDocumentViewerPage);
        }
コード例 #2
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     DSDetails.SaveBackup();//to mark the Data Source as changed
     DSDetails.StartDirtyTracking();
     if (mDataSourceTablePage == null)
     {
         mDataSourceTablePage = new DataSourceTablePage(DSTableDetails);
     }
     return(mDataSourceTablePage);
 }
コード例 #3
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     ProjEnvironment.SaveBackup();//to mark the env as changed
     ProjEnvironment.StartDirtyTracking();
     if (mApplicationPage == null)
     {
         mApplicationPage = new ApplicationPage(EnvApplication, new Context()
         {
             Environment = ProjEnvironment
         });
     }
     return(mApplicationPage);
 }
コード例 #4
0
        public static void CreateActUISwitchWindowAction(string windowTitle, Amdocs.Ginger.Common.Context mContext)
        {
            ActUIElement actUIElement = new ActUIElement()
            {
                Description        = "UI Switch Window - " + windowTitle,
                ElementLocateBy    = eLocateBy.ByTitle,
                ElementLocateValue = windowTitle,
                ElementType        = eElementType.Window,
                ElementAction      = ActUIElement.eElementAction.Switch
            };

            actUIElement.GetOrCreateInputParam(ActUIElement.Fields.SyncTime, "30");

            if (mContext.BusinessFlow != null)
            {
                mContext.BusinessFlow.AddAct(actUIElement, true);
            }
            else
            {
                Reporter.ToUser(eUserMsgKey.RestartAgent);
            }
        }
コード例 #5
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     return(new UIAElementPage(base.UIAElementInfo));
 }
コード例 #6
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     //TODO: currently return the default generic page, later on create for Android
     return(null);
 }
コード例 #7
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     return(null);
 }
コード例 #8
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     //TODO: currently return the default generic page, later on create for Appium elem
     return(new ElementInfoPage(AppiumElementInfo));
 }
コード例 #9
0
ファイル: PBGridTreeItem.cs プロジェクト: svendster/Ginger
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     return(new DataGridInfoPage((AutomationElement)UIAElementInfo.ElementObject));
 }
コード例 #10
0
ファイル: WindowTreeItem.cs プロジェクト: lanicon/Ginger
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     //TODO: create Edit page for Window, with action of Swithc Window
     return(null);
 }
コード例 #11
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     //TODO: to load page only once
     mHTMLReportTemplatePage = new HTMLReportTemplatePage(HTMLReportConfiguration);
     return(mHTMLReportTemplatePage);
 }
コード例 #12
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     //Override if needed with specific Element Info Page
     return(null);
 }
コード例 #13
0
ファイル: HTMLTableTreeItem.cs プロジェクト: svendster/Ginger
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     mHTMLTablePage = new ActTableEditPage(ElementInfo, mAvailableActions);
     return(mHTMLTablePage);
 }