Exemplo n.º 1
0
        public void DisassociateNodesCancel(SystemDimensionData input)
        {
            //Display hierarchy tree -> click hierarchy node "自动化测试"... -> open system dimension dialog
            SystemSettings.ShowHierarchyTree();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            SystemSettings.SelectHierarchyNodePath(input.InputData.HierarchyNodePath);
            TimeManager.LongPause();
            SystemSettings.ShowSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.LongPause();

            //2.disassociate system dimension node
            SystemSettings.ExpandDialogSystemDimensionNodePath(input.InputData.SystemDimensionItemPath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            SystemSettings.UncheckSystemDimensionNodeWithoutConfirm(input.InputData.SystemDimensionItemPath.Last());
            TimeManager.ShortPause();
            //Message box popup and cancel it
            string msgText = JazzMessageBox.MessageBox.GetMessage();

            Assert.IsTrue(msgText.Contains(input.ExpectedData.Message));
            TimeManager.ShortPause();
            JazzMessageBox.MessageBox.GiveUp();
            TimeManager.ShortPause();

            SystemSettings.CloseSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.ShortPause();

            //Expand system dimension tree and verify the node is not disassociated
            SystemSettings.SelectSystemDimensionNodePath(input.ExpectedData.SystemDimensionPath);
        }
Exemplo n.º 2
0
        public void AssociateChildNode(SystemDimensionData input)
        {
            //Display hierarchy tree -> click hierarchy node "自动化测试"... -> open system dimension dialog
            SystemSettings.ShowHierarchyTree();
            TimeManager.ShortPause();
            SystemSettings.SelectHierarchyNodePath(input.InputData.HierarchyNodePath);
            SystemSettings.ShowSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            //Associate dimension node
            SystemSettings.ExpandDialogSystemDimensionNodePath(input.InputData.SystemDimensionItemPath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.ShortPause();
            SystemSettings.CheckSystemDimensionNode(input.InputData.SystemDimensionItemPath.Last());
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            SystemSettings.ConfirmSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.ShortPause();

            //Expand system dimension tree and verify
            SystemSettings.SelectSystemDimensionNodePath(input.ExpectedData.SystemDimensionPath);
            Assert.IsTrue(SystemSettings.IsSystemDimensionNodeDisplayed(input.InputData.SystemDimensionItemPath.Last()));
        }
Exemplo n.º 3
0
        public void DisssociateAndVerify(SystemDimensionData input)
        {
            //Display hierarchy tree -> click hierarchy node "自动化测试"... -> open system dimension dialog
            SystemSettings.ShowHierarchyTree();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            SystemSettings.SelectHierarchyNodePath(input.InputData.HierarchyNodePath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            SystemSettings.ShowSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            TimeManager.MediumPause();

            //2.disassociate system dimension node
            SystemSettings.ExpandDialogSystemDimensionNodePath(input.InputData.SystemDimensionItemPath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            SystemSettings.UncheckSystemDimensionNodeWithoutConfirm(input.InputData.SystemDimensionItemPath.Last());
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            //Message box popup and confirm it
            string msgText = JazzMessageBox.MessageBox.GetMessage();

            Assert.IsTrue(msgText.Contains(input.ExpectedData.Message));
            TimeManager.MediumPause();
            JazzMessageBox.MessageBox.Delete();
            TimeManager.MediumPause();

            SystemSettings.ConfirmSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            //1. Expand system dimension tree and verify the node is not disassociated
            Assert.IsFalse(SystemSettings.SelectSystemDimensionNodePath(input.ExpectedData.SystemDimensionPath));
            TimeManager.MediumPause();

            //2. Verify it on data association/system dimension
            JazzFunction.Navigator.NavigateToTarget(NavigationTarget.AssociationSystemDimension);
            //SystemSettings.ShowHierarchyTree();
            TimeManager.MediumPause();
            //SystemSettings.SelectHierarchyNodePath(input.InputData.HierarchyNodePath);

            Assert.IsFalse(SystemSettings.SelectSystemDimensionNodePath(input.InputData.SystemDimensionItemPath));

            //3. Verify it on energy view
            JazzFunction.Navigator.NavigateToTarget(NavigationTarget.EnergyAnalysis);
            TimeManager.MediumPause();

            JazzFunction.EnergyAnalysisPanel.SelectHierarchy(input.InputData.HierarchyNodePath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            JazzFunction.EnergyAnalysisPanel.SwitchTagTab(TagTabs.SystemDimensionTab);
            TimeManager.MediumPause();
            Assert.IsFalse(JazzFunction.EnergyAnalysisPanel.SelectSystemDimension(input.ExpectedData.SystemDimensionPath));
        }
Exemplo n.º 4
0
        public void AssociateAndVerify(SystemDimensionData input)
        {
            //Display hierarchy tree -> click hierarchy node "自动化测试"... -> open system dimension dialog
            SystemSettings.ShowHierarchyTree();
            TimeManager.ShortPause();
            SystemSettings.SelectHierarchyNodePath(input.InputData.HierarchyNodePath);
            SystemSettings.ShowSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.LongPause();

            //Associate dimension node
            SystemSettings.ExpandDialogSystemDimensionNodePath(input.InputData.SystemDimensionItemPath);
            SystemSettings.CheckSystemDimensionNode(input.InputData.SystemDimensionItemPath.Last());
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();
            SystemSettings.ConfirmSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.ShortPause();

            //Expand system dimension tree and verify
            SystemSettings.SelectSystemDimensionNodePath(input.ExpectedData.SystemDimensionPath);
            Assert.IsTrue(SystemSettings.IsSystemDimensionNodeDisplayed(input.InputData.SystemDimensionItemPath.Last()));

            //1. Verify it is display on data associated
            JazzFunction.Navigator.NavigateToTarget(NavigationTarget.AssociationSystemDimension);

            //SystemSettings.ShowHierarchyTree();
            //SystemSettings.SelectHierarchyNodePath(input.InputData.HierarchyNodePath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            SystemSettings.SelectSystemDimensionNodePath(input.ExpectedData.SystemDimensionPath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.LongPause();

            //2. Verify it is display on energy analysis
            JazzFunction.Navigator.NavigateToTarget(NavigationTarget.EnergyAnalysis);
            TimeManager.MediumPause();
            JazzFunction.EnergyAnalysisPanel.SelectHierarchy(input.InputData.HierarchyNodePath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.LongPause();
            JazzFunction.EnergyAnalysisPanel.SwitchTagTab(TagTabs.SystemDimensionTab);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            Assert.IsTrue(JazzFunction.EnergyAnalysisPanel.SelectSystemDimension(input.ExpectedData.SystemDimensionPath));
        }
Exemplo n.º 5
0
        public void AssociateNodesCancel(SystemDimensionData input)
        {
            //Display hierarchy tree -> click hierarchy node "自动化测试"... -> open system dimension dialog
            SystemSettings.ShowHierarchyTree();
            TimeManager.ShortPause();
            SystemSettings.SelectHierarchyNodePath(input.InputData.HierarchyNodePath);
            TimeManager.MediumPause();
            SystemSettings.ShowSystemDimensionDialog();
            JazzMessageBox.LoadingMask.WaitLoading();
            TimeManager.MediumPause();

            //2.Associate Level 1 dimension node by select the checkbox: Select ‘动力’ checkbox.
            //The Level 1 dimension node ('动力') is associated.
            SystemSettings.CheckSystemDimensionNodePath(input.InputData.SystemDimensionItemPath);
            JazzMessageBox.LoadingMask.WaitLoading();
            TimeManager.MediumPause();
            SystemSettings.CloseSystemDimensionDialog();
            TimeManager.MediumPause();

            //Expand system dimension tree and verify
            Assert.IsTrue(SystemSettings.SelectSystemDimensionNodePath(input.ExpectedData.SystemDimensionPath));
        }