Beispiel #1
0
        public void ViewWorkNotworkIndustryLabelling01(IndustryLabellingData input)
        {
            //Go to NancyOtherCustomer3. Go to Function Labelling view.
            HomePagePanel.SelectCustomer("NancyOtherCustomer3");
            TimeManager.ShortPause();

            IndustryLabellingPanel.NavigateToIndustryLabelling();
            TimeManager.MediumPause();

            //Select the BuildingDayNight from Hierarchy Tree
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            //select DayNightP, select 公休比 option. select a 行业区域=严寒地区B区数据中心 option to view chart.
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]);
            TimeManager.ShortPause();

            //time 2013年 全年
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]);
            EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            //Assert.AreEqual(7, IndustryLabellingPanel.GetLabellingNumber());
            string labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[0], input.InputData.Industries[0][1], input.InputData.UnitTypeValue);

            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[0], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]);

            //Change different time range 年=2012,月=10月 to view chart.
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[1].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[1].month);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            Assert.AreEqual(8, IndustryLabellingPanel.GetLabellingNumber());

            labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[1], input.InputData.Industries[0][1], input.InputData.UnitTypeValue);
            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[1], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]);

            IndustryLabellingPanel.SetYearAndMonth(input.InputData.YearAndMonth[2].year, input.InputData.YearAndMonth[2].month);
            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();
            labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[1], input.InputData.Industries[0][1], input.InputData.UnitTypeValue);
            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[3], labellingInfo1);
        }
        public void MirrorEnvPressTestForLabelling(IndustryLabellingData input)
        {
            //Labelling
            IndustryLabellingPanel.NavigateToIndustryLabelling();

            //A. Select Single Hierarchy node HM 中国/Area01/CN0101
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);

            //电
            IndustryLabellingPanel.CheckTags(input.InputData.tagNames);
            TimeManager.LongPause();

            //2015全年
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[1].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[1].month);

            EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue);
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();

            //2014全年
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
        }
        public void ViewConsumptIndustryLabelling01(IndustryLabellingData input)
        {
            //Go to Function Labelling view. Select NancyCustomer1. Go to Unit=单位人口,
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            //Select BuildingBC, select V(1), select a 行业区域=寒冷地区全行业 option to view chart.
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]);
            TimeManager.ShortPause();

            //time 2014-12
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            //·Labelling chart display with v(1).
            Assert.AreEqual(input.ExpectedData.UnitTypeValue, EnergyViewToolbar.GetUnitTypeButtonText());

            string labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[0], input.ExpectedData.IndustryValue, input.ExpectedData.UnitTypeValue);

            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[0], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]);

            //Go to 多层级 select BuildingBC+BuildingBAD and 确定.(待定)

            //Change select non-building node 园区测试多层.
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[1]);
            TimeManager.MediumPause();
            //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0]));

            //Select the BuildingBC from Hierarchy Tree.time range="2012 全年", 行业区域=寒冷地区全行业. Select multiple tag V(1)+V(2) +V(3) with the same commodity to display Labelling chart view.
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]);
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]);
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[2]);
            TimeManager.ShortPause();
            //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[2]));
            Assert.AreEqual(input.ExpectedData.IndustryValue, EnergyViewToolbar.GetLabellingIndustryButtonText());

            IndustryLabellingPanel.SetYearAndMonth(input.InputData.YearAndMonth[1].year, input.InputData.YearAndMonth[1].month);
            EnergyViewToolbar.ClickViewButton();
            TimeManager.MediumPause();
            //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[1]));

            labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[1], input.ExpectedData.IndustryValue, input.ExpectedData.UnitTypeValue);
            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[1], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]);
        }
        public void ViewUnitIndicatorCustomizedLabelling(IndustryLabellingData input)
        {
            //Go to Function Labelling view.  Go to Unit=单位人口,
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            //Select BuildingLabelling1, select Labellingtag2, select a 自定义能效标识 option to view chart.
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]);
            TimeManager.ShortPause();

            //time 2013-10
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);
            TimeManager.MediumPause();
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            //·Labelling chart display with Labellingtag2.
            Assert.AreEqual(input.ExpectedData.UnitTypeValues[0], EnergyViewToolbar.GetUnitTypeButtonText());
            //Assert.AreEqual(6, IndustryLabellingPanel.GetLabellingNumber());

            string labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[0], input.ExpectedData.IndustryValue, input.ExpectedData.UnitTypeValues[0]);

            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[0], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]);


            //Select select another LabellingtagWithoutNull to view chart of 自定义能效标识 again.
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]);
            TimeManager.ShortPause();
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            //Assert.AreEqual(5, IndustryLabellingPanel.GetLabellingNumber());

            labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[1], input.ExpectedData.IndustryValue, input.ExpectedData.UnitTypeValues[1]);
            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[1], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]);
        }
        public void SmokeTestLabelling(SmokeTestEnergyViewData input)
        {
            //Hierarchy = ["NancyCostCustomer2", "组织A", "园区A", "楼宇A"]
            IndustryLabellingPanel.NavigateToIndustryLabelling();
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            //Tags = BAV1Root
            IndustryLabellingPanel.CheckTags(input.InputData.TagNames);
            TimeManager.ShortPause();

            //全年
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag);
            TimeManager.LongPause();

            //Select multiple tags Hierarchy = ["NancyCostCustomer2", "组织A", "园区A", "楼宇B"]
            MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[0].HierarchyPath);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.ShortPause();

            //Tags = BBV1Root
            MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag);
            MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[0]);
            TimeManager.ShortPause();

            MultiHieCompareWindow.ClickConfirmButton();
            TimeManager.LongPause();
            TimeManager.LongPause();

            //全年
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();
        }
        public void SelectIndustyLabelling02(IndustryLabellingData input)
        {
            //Select 园区测试多层级", "楼宇XX", tagXX
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.LongPause();
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]);
            TimeManager.ShortPause();

            //time 2014-01
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);

            //打开能效标示menu,选择行业labelling
            //EnergyViewToolbar.OpenIndustryConvertButton();
            //EnergyViewToolbar.FloatIndustyLabellinglist();
            //与期望结果对比
            TimeManager.LongPause();
            Assert.AreEqual(input.ExpectedData.Industries, EnergyViewToolbar.GetIndustryLabellingMenuListItems(input.InputData.Industries[0][0]));
            TimeManager.LongPause();
            TimeManager.MediumPause();
        }
Beispiel #7
0
        public void SelectCustomerLabelling01(IndustryLabellingData input)
        {
            //Go to Function Labelling view. Select NancyCustomer1, select 园区测试多层级,
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.LongPause();
            Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0]));
            //check Industry labelling button is grey out.
            Assert.AreEqual(false, LabellingIndustryConvertButton.IsEnabled());

            //Select 园区测试多层级", "楼宇BAD", tag V12_BuildingBC
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[1]);
            TimeManager.LongPause();
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]);
            TimeManager.ShortPause();

            //time 2014-01
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);

            //verify text
            Assert.AreEqual(input.ExpectedData.Industries[0], LabellingIndustryConvertButton.GetText());

            //选择自定义能效标识10
            TimeManager.LongPause();
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]);
            TimeManager.LongPause();
            Assert.AreEqual(false, UnitTypeConvertTargetButton.IsEnabled());
            TimeManager.LongPause();
            //
            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            //选择自定义能效标识8
            TimeManager.LongPause();
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]);
            TimeManager.LongPause();
            Assert.AreEqual(false, UnitTypeConvertTargetButton.IsEnabled());
            TimeManager.LongPause();
            //
            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            //Select 园区测试多层级", "楼宇BC"
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[2]);
            TimeManager.LongPause();
            TimeManager.LongPause();
            TimeManager.LongPause();
            //verify text
            //Assert.AreEqual("寒冷地区全行业", LabellingIndustryConvertButton.GetText());
            Assert.AreEqual(input.ExpectedData.Industries[1], LabellingIndustryConvertButton.GetText());

            //Select 园区测试多层级", "楼宇BAD", tag V12_BuildingBC
            TimeManager.LongPause();
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[1]);
            TimeManager.LongPause();
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]);
            TimeManager.ShortPause();

            //verify text
            //Assert.AreEqual("夏热冬暖地区全行业", LabellingIndustryConvertButton.GetText());
            Assert.AreEqual(input.ExpectedData.Industries[0], LabellingIndustryConvertButton.GetText());
            TimeManager.LongPause();

            //Select “SOHO,“GalaxySOHO"
            HomePagePanel.SelectCustomer("SOHO");
            TimeManager.LongPause();
            IndustryLabellingPanel.NavigateToIndustryLabelling();
            TimeManager.MediumPause();
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[3]);
            TimeManager.LongPause();

            //选择自定义能效标无
            TimeManager.LongPause();
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[2]);

            //View button is enable, and KPI button is ready only
            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();
            Assert.AreEqual(false, UnitTypeConvertTargetButton.IsEnabled());
        }
        public void ViewDayNightIndustryLabelling01(IndustryLabellingData input)
        {
            //Go to NancyOtherCustomer3. Go to Function Labelling view.
            //Select the BuildingDayNight from Hierarchy Tree
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            //select DayNightP, select 昼夜比 option. select a 行业区域=严寒地区B区数据中心 option to view chart.
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]);
            TimeManager.ShortPause();

            //time 2013年 全年
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]);
            EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            //Assert.AreEqual(7, IndustryLabellingPanel.GetLabellingNumber());

            string labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[0], input.InputData.Industries[0][1], input.InputData.UnitTypeValue);

            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[0], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]);

            //Change different time range 年=2012,月=10月 to view chart.
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[1].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[1].month);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            //Assert.AreEqual(8, IndustryLabellingPanel.GetLabellingNumber());

            labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[1], input.InputData.Industries[0][1], input.InputData.UnitTypeValue);
            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[1], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]);

            #region Not use code, for save to dashboard which will test on manual for 2.0

            /*
             * //Click "Save to dashboard"(保存到仪表盘)to save the  chart to dashboard.
             * var dashboard = input.InputData.DashboardInfo;
             * EnergyAnalysis.Toolbar.SaveToDashboard(dashboard[0].WigetName, dashboard[0].HierarchyName, dashboard[0].IsCreateDashboard, dashboard[0].DashboardName);
             * TimeManager.LongPause();
             *
             * IndustryLabellingPanel.SetYearAndMonth(input.InputData.YearAndMonth[2].year, input.InputData.YearAndMonth[2].month);
             * EnergyViewToolbar.ClickViewButton();
             * JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
             * TimeManager.MediumPause();
             * labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[2], input.InputData.Industries[0][1], input.InputData.UnitTypeValue);
             * IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[3], labellingInfo1);
             *
             * //Go to widget maximize view. Change time range to 2012 全年.
             * EnergyAnalysis.NavigateToAllDashBoards();
             * HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName);
             * TimeManager.MediumPause();
             * HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName);
             * JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading();
             * TimeManager.MediumPause();
             *
             * //Click the 'Maximize' button
             * HomePagePanel.MaximizeWidget(dashboard[0].WigetName);
             * TimeManager.LongPause();
             *
             * Widget.SetYearAndMonth(input.InputData.YearAndMonth[2].year, input.InputData.YearAndMonth[2].month);
             * Widget.ClickViewLabellingDataButton();
             * JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
             * TimeManager.LongPause();
             *
             * //Assert.AreEqual(8, Widget.GetLabellingNumber());
             * Widget.CompareMaxWidgetStringData(input.ExpectedData.expectedFileName[3], input.InputData.failedFileName[3], IndustryLabellingPanel.IndustryLabellingPath);
             *
             * Widget.ClickCloseMaxDialogButton();
             */
            #endregion
        }
        public void CalculateVConsumptIndustryLabelling01(IndustryLabellingData input)
        {
            //Go to NancyOtherCustomer3. Go to Function Labelling view.
            HomePagePanel.SelectCustomer("NancyOtherCustomer3");
            TimeManager.ShortPause();

            IndustryLabellingPanel.NavigateToIndustryLabelling();
            TimeManager.MediumPause();

            //Go to Labeling. Labellingtag1, select Unit=单位人口 行业&区域=夏热冬暖酒店三星级行业;time range=2012/10 to view chart.
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            //Select BuildingLabelling1, select Labellingtag1, select a 行业区域=热冬暖酒店三星级行业 option to view chart.
            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]);
            TimeManager.ShortPause();

            //time 2012-10
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month);
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]);
            EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            string labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[0], input.InputData.Industries[0][1], input.InputData.UnitTypeValue);

            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[0], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]);

            //Select BuildingLabelling9, select 行业&区域=全行业全区域;time range=2012/10 to view chart.
            IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[1]);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]);
            TimeManager.ShortPause();

            //全部区域全行业(夏热冬暖地区酒店(三星级))
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[2]);
            EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue);

            //time 2012-10
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[2].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[2].month);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[1], input.InputData.YearAndMonth[2], input.InputData.Industries[2][1], input.InputData.UnitTypeValue);
            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[1], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]);

            //Go to SP1. Go to Function Labelling.
            //Select 多层级. BuildingConvertStandardUOM->StandardUOMTon,and select BuildingNotConvertStandardUOM->NotStandardUOMkg, 行业&区域=温和地区超市行业.;time range=2013/1 to view chart.
            EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag);
            TimeManager.LongPause();

            MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[0].HierarchyPath);
            TimeManager.MediumPause();
            MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[0]);
            TimeManager.ShortPause();

            MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[1].HierarchyPath);
            TimeManager.MediumPause();
            MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[1].TagsName[0]);
            TimeManager.ShortPause();

            MultiHieCompareWindow.ClickConfirmButton();
            TimeManager.ShortPause();

            //温和地区超市
            EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]);
            EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue);

            //time 2013-10
            IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[1].year);
            IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[1].month);

            EnergyViewToolbar.ClickViewButton();
            JazzMessageBox.LoadingMask.WaitChartMaskerLoading();
            TimeManager.MediumPause();

            labellingInfo1 = IndustryLabellingPanel.GetMultiLabellingInfo(input.InputData.MultipleHierarchyAndtags, input.InputData.YearAndMonth[1], input.InputData.Industries[1][1], input.InputData.UnitTypeValue);
            IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[2], labellingInfo1);
            TimeManager.MediumPause();
            IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[2], input.InputData.failedFileName[2]);
        }