/// <summary>
 /// Click one hierarchy node, and return true if successful
 /// </summary>
 /// <param name="treeNodePath">Hierarchy node name</param>
 /// <returns></returns>
 public Boolean SelectHierarchyNodePath(string[] treeNodePath)
 {
     try
     {
         HierarchyTree.SelectNode(treeNodePath);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #2
0
 public Boolean SelectHierarchyNodePath(string[] hierarchyNodePath)
 {
     // greenie modified
     try
     {
         DimensionHierarchyTree.SelectNode(hierarchyNodePath);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #3
0
 public Boolean SelectHierarchyNodePath(string[] hierarchyNamePath)
 {
     try
     {
         HierarchyTree.SelectNode(hierarchyNamePath);
         TimeManager.FlashPause();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #4
0
        public void Save(string widgetName, string[] hierarchyNamePath, bool isCreateDashboard, string dashboardName)
        {
            WidgetNameTextbox.Fill(widgetName);
            TimeManager.MediumPause();
            if (hierarchyNamePath != null)
            {
                WidgetSaveHierarchy.Click();
                TimeManager.MediumPause();
                WidgetSaveHierarchyTree.SelectNode(hierarchyNamePath);
                TimeManager.MediumPause();
            }
            TimeManager.LongPause();
            if (isCreateDashboard)
            {
                CreateDashboardButton.Click();
                TimeManager.MediumPause();
                DashboardNameTextbox.Fill(dashboardName);
                TimeManager.MediumPause();
            }
            else
            {
                DashboardComboBox.SelectItem(dashboardName);
            }

            base.Confirm();

            //store the dashboards infos prepare to delete when complete running.
            DashboardInformation CaseDownDashboardInfo = new DashboardInformation();

            CaseDownDashboardInfo.DashboardName     = dashboardName;
            CaseDownDashboardInfo.IsCreateDashboard = isCreateDashboard;
            CaseDownDashboardInfo.WigetName         = widgetName;
            CaseDownDashboardInfo.HierarchyName     = hierarchyNamePath;

            TestAssemblyInitializer.CaseDownDashboardInfos.Add(CaseDownDashboardInfo);
        }
예제 #5
0
        /// <summary>
        /// Select hierarchy node
        /// </summary>
        /// <param name="treePath"></param>
        /// <returns></returns>
        public bool SelectHierarchyNode(string[] treePath)
        {
            AllDashboardsHierarchyTreeButton.Click();
            TimeManager.Pause(8000);

            try
            {
                AllDashboardsTree.SelectNode(treePath);
                TimeManager.LongPause();
                return(true);
            }
            catch (Exception Ex)
            {
                return(false);
            }
        }
예제 #6
0
        public Boolean SelectHierarchy(string[] hierarchyNames)
        {
            try
            {
                SelectHierarchyButton.Click();
                TimeManager.ShortPause();
                HierarchyTree.WaitControlDisplayed(15);
                HierarchyTree.SelectNode(hierarchyNames);

                JazzMessageBox.LoadingMask.WaitSubMaskLoading();

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
예제 #7
0
 public Boolean NewJazz_SelectHierarchy(string[] hierarchyNames)
 {
     try
     {
         HierarchyFoldingButton.Click();
         if (!SelectHierarchyButton.IsExisted())
         {
             HierarchyFoldingButton.Click();
         }
         SelectHierarchyButton.Click();
         TimeManager.ShortPause();
         //HierarchyTree.WaitControlDisplayed(15);
         //HierarchyTree.SelectNode(hierarchyNames);
         NewJazzHierarchyTree.SelectNode(hierarchyNames);
         JazzMessageBox.LoadingMask.WaitSubMaskLoading();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 /// <summary>
 /// Select the hierarchy node path
 /// </summary>
 /// <param name="nodePath"></param>
 public void SelectHierarchyNode(string[] nodePath)
 {
     MultipleHierarchyTreeButton.Click();
     TimeManager.ShortPause();
     MultipleHierarchyTree.SelectNode(nodePath);
 }
예제 #9
0
 public void SelectHierarchyNodePath(string[] hierarchyNodePath)
 {
     DimensionHierarchyTree.SelectNode(hierarchyNodePath);
     TimeManager.MediumPause();
 }