public void SP3_CalculateVConsumptIndustryLabelling03(IndustryLabellingData input) { //Go to NancyOtherCustomer3. Go to Function Labelling view. HomePagePanel.SelectCustomer("NancyOtherCustomer3"); TimeManager.ShortPause(); IndustryLabellingPanel.NavigateToIndustryLabelling(); TimeManager.MediumPause(); //Select Labellingtag19/OR Labellingtag20 select 行业&区域=夏热冬暖酒店三星级行业;time range=2012/10 to view chart. IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]); TimeManager.ShortPause(); //夏热冬暖酒店三星级行业 EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]); EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue); //time 2012/10 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); 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 SP3->Rankingtag3 from BuildingRanking3(UOM=KW), select 行业&区域=夏热冬暖酒店行业;time range=2013/1 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[1]); EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue); //time 2013/01 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[1].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[1].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[1], input.InputData.YearAndMonth[1], input.InputData.Industries[1][1], input.InputData.UnitTypeValue); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[1], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]); }
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 SelectIndustyLabelling04(IndustryLabellingData input) { //Select "园区测试多层级", 非楼宇节点 IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.LongPause(); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]); Assert.AreEqual(input.ExpectedData.UnitTypeValues, EnergyViewToolbar.GetUnitTypeMenulist()); }
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 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 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 SelectIndustyLabelling01(IndustryLabellingData input) { HomePagePanel.SelectCustomer("NancyOtherCustomer3"); TimeManager.LongPause(); IndustryLabellingPanel.NavigateToIndustryLabelling(); TimeManager.MediumPause(); //Switch to "多层级数据点" EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag); TimeManager.LongPause(); //Select multiple tags Labellingtag2 from BuildingLabellingtag2 and Labellingtag3 from BuildingLabellingtag3 MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[0].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[0]); TimeManager.ShortPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[1].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[1].TagsName[0]); TimeManager.ShortPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.LongPause(); //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(); }
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(); }
public void ViewDayNightIndustryLabelling03(IndustryLabellingData input) { //Go to NancyOtherCustomer3. Go to Function Labelling view. //Select BuildingLabelling1, select Labellingtag1, IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.LongPause(); IndustryLabellingPanel.SwitchTagTab(TagTabs.HierarchyTag); TimeManager.LongPause(); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]); TimeManager.ShortPause(); //select a 行业区域=夏热冬暖酒店三星级行业; Go to 昼夜比 option, time range=2012/10 to view chart.(There is no data from 2012-10 to 2015-01) EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue); EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]); IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); 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 time range=2010/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(); 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]); //Select time range=2012/09 to view chart. IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[2].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[2].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(JazzMessageBox.MessageBox.GetMessage().Contains(input.ExpectedData.messages[0])); JazzMessageBox.MessageBox.OK(); TimeManager.LongPause(); Assert.IsTrue(IndustryLabellingPanel.EntirelyNoLabellingChartDrawn()); //Select Labellingtag2, select 行业区域=夏热冬暖酒店三星级行业;time range=2013/10 to view chart. IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[1]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]); TimeManager.ShortPause(); // Select time range=2013/10 to view chart. IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[3].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[3].month); EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]); EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[1], input.InputData.YearAndMonth[3], input.InputData.Industries[0][1], input.InputData.UnitTypeValue); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[2], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[2], input.InputData.failedFileName[2]); //Select Labellingtag2, select 行业区域=夏热冬暖酒店三星级行业;time range=2012/09 to view chart. IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[4].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[4].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(JazzMessageBox.MessageBox.GetMessage().Contains(input.ExpectedData.messages[0])); JazzMessageBox.MessageBox.OK(); TimeManager.LongPause(); Assert.IsTrue(IndustryLabellingPanel.EntirelyNoLabellingChartDrawn()); //Change to NancyCostCustomer2, select 楼宇B-> system dimension=空调 to select BBV1KT(Or area dimension=一层 to select BBV1A1)select a 行业区域=严寒地区B区机场行业 option to view chart. HomePagePanel.SelectCustomer("NancyCostCustomer2"); TimeManager.ShortPause(); IndustryLabellingPanel.NavigateToIndustryLabelling(); TimeManager.MediumPause(); IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[2]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); IndustryLabellingPanel.SwitchTagTab(TagTabs.SystemDimensionTab); TimeManager.MediumPause(); IndustryLabellingPanel.SelectSystemDimension(input.InputData.SystemDimensionPath[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); //BBV1KT IndustryLabellingPanel.CheckTag(input.InputData.tagNames[2]); TimeManager.ShortPause(); //2014-1, 严寒地区B区全行业 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[5].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[5].month); EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]); EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.AreEqual(5, IndustryLabellingPanel.GetLabellingNumber()); labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[2], input.InputData.YearAndMonth[5], input.InputData.Industries[1][1], input.InputData.UnitTypeValue); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[3], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[3], input.InputData.failedFileName[3]); //Select tag BBV1Root, and “全部区域全行业" Click "查看数据".2014-1 IndustryLabellingPanel.SwitchTagTab(TagTabs.HierarchyTag); TimeManager.MediumPause(); IndustryLabellingPanel.UncheckTag(input.InputData.tagNames[2]); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[3]); TimeManager.MediumPause(); EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[2]); IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[5].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[5].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsFalse(IndustryLabellingPanel.EntirelyNoLabellingChartDrawn()); }
public void ViewDayNightIndustryLabelling02(IndustryLabellingData input) { //Go to NancyOtherCustomer3. Go to Function Labelling view. //Switch to "多层级数据点" EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag); TimeManager.LongPause(); //Select the BuildingMultipleSteps from Hierarchy Tree, select 昼夜比 option MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[0].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); //Select multiple VH_SiteS1+VD_SiteS1+VM_SiteS1 to view chart. MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[0]); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[1]); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[2]); TimeManager.ShortPause(); //对比数据点已选满 Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); Assert.IsTrue(MultiHieCompareWindow.IsNoEnabledCheckbox()); //当有popupnotes出现的时候,这里是“对比数据点已选满”,“确认”这个按钮就点击不上(在服务器上有这种情况,本机没有) TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.LongPause(); //PH_SiteS1 change to disable to check.(PH_SiteS1 enable to check when uncheck V(H)_SiteS1) //Open "多层级数据点" again EnergyAnalysis.ClickMultipleHierarchyAddTagsButton(); TimeManager.MediumPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[0].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.UncheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[0]); Assert.IsTrue(MultiHieCompareWindow.IsAllEnabledCheckbox()); //Uncheck 1 tag and select 1 more the BuildingNoTag from Hierarchy Tree. MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[1].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[1].TagsName[0]); TimeManager.ShortPause(); //对比数据点已选满 Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); Assert.IsTrue(MultiHieCompareWindow.IsNoEnabledCheckbox()); //当有popupnotes出现的时候,这里是“对比数据点已选满”,“确认”这个按钮就点击不上(在服务器上有这种情况,本机没有) TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.ShortPause(); //Select 昼夜比 to view data, 2014.1 EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue); IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(IndustryLabellingPanel.EntirelyNoLabellingChartDrawn()); }
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]); }
public void ViewConsumptIndustryLabelling03(IndustryLabellingData input) { //Go to NancyOtherCustomer3. Go to Function Labelling view. HomePagePanel.SelectCustomer("NancyOtherCustomer3"); TimeManager.LongPause(); IndustryLabellingPanel.NavigateToIndustryLabelling(); TimeManager.MediumPause(); //Select the BuildingCostYearToDay from Hierarchy Tree.Commodity=V2_YearToDay, IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]); TimeManager.ShortPause(); //夏热冬冷地区轨道交通行业, EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]); //time 2014-12 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.AreEqual(5, IndustryLabellingPanel.GetLabellingNumber()); string labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[0], input.InputData.Industries[0][1], null); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[0], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]); //Select a not lighten tag WorkNotworkPNotlighten under BuildingWorkNonwork, IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[1]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); //WorkNotworkPNotlighten IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]); TimeManager.ShortPause(); //严寒地区B区地区办公建筑 EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]); //time 2013-01 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[1].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[1].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.AreEqual(4, IndustryLabellingPanel.GetLabellingNumber()); labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[0], input.InputData.Industries[1][1], null); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[1], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]); //WorkNotworkP IndustryLabellingPanel.CheckTag(input.InputData.tagNames[2]); TimeManager.ShortPause(); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.AreEqual(4, IndustryLabellingPanel.GetLabellingNumber()); labellingInfo1 = IndustryLabellingPanel.GetSingleLabellingInfo(input.InputData.Hierarchies[0], input.InputData.YearAndMonth[0], null, null); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[2], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[2], input.InputData.failedFileName[2]); //Go to 多层级. Select a StandardUOMTon from BuildingConvertStandardUOM and BuildingNotConvertStandardUOM from NotStandardUOMkg to view Labelling chart.(2014-01) EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag); TimeManager.LongPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[0].HierarchyPath); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[0]); TimeManager.ShortPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[1].HierarchyPath); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[1].TagsName[0]); TimeManager.ShortPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.ShortPause(); //温和地区超市 EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[2]); //time 2014-12 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); labellingInfo1 = IndustryLabellingPanel.GetMultiLabellingInfo(input.InputData.MultipleHierarchyAndtags, input.InputData.YearAndMonth[0], input.InputData.Industries[2][1], null); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[3], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[3], input.InputData.failedFileName[3]); }
public void ViewConsumptIndustryLabelling02(IndustryLabellingData input) { //Switch to "多层级数据点" EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag); TimeManager.LongPause(); //Select multiple tags V(1) and V(2) from BuildingBC node and Dimension node MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[0].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[0]); TimeManager.ShortPause(); //Switch to "system dimension" and pick V2_BuildingBC MultiHieCompareWindow.SwitchTagTab(TagTabs.SystemDimensionTab); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SelectSystemDimension(input.InputData.SystemDimensionPath[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[1]); TimeManager.ShortPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.LongPause(); //寒冷地区全行业 EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]); //time 2014-12 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); string labellingInfo1 = IndustryLabellingPanel.GetMultiLabellingInfo(input.InputData.MultipleHierarchyAndtags, input.InputData.YearAndMonth[0], input.InputData.Industries[0][1], input.ExpectedData.UnitTypeValue); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[0], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]); Assert.IsTrue(EnergyViewToolbar.IsMoreMenuItemDisabled(input.ExpectedData.texts[0])); Assert.IsTrue(EnergyViewToolbar.IsMoreMenuItemDisabled(input.ExpectedData.texts[1])); //Change Unit=单位人口. Click “+数据点” to select multiple tags from hierarchy node BuildingBAD and Dimension node, //Open "多层级数据点" again EnergyAnalysis.ClickMultipleHierarchyAddTagsButton(); TimeManager.MediumPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[1].HierarchyPath); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[1].TagsName[0]); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.MediumPause();; //time 2014-10 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[2].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[2].month); EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); labellingInfo1 = IndustryLabellingPanel.GetMultiLabellingInfo(input.InputData.MultipleHierarchyAndtags, input.InputData.YearAndMonth[0], input.InputData.Industries[1][1], input.ExpectedData.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[1].year, 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.ExpectedData.UnitTypeValue); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[3], labellingInfo1); EnergyViewToolbar.SelectMoreOption(EnergyViewMoreOption.DeleteAll); TimeManager.ShortPause(); Assert.IsTrue(JazzMessageBox.MessageBox.GetMessage().Contains(input.ExpectedData.ClearAllMessage)); JazzMessageBox.MessageBox.Clear(); TimeManager.MediumPause(); //· Display blank chart. Assert.IsTrue(IndustryLabellingPanel.EntirelyNoLabellingChartDrawn()); #region no value /*no value * //Select 1 tag V(12) from hierarchy node BuildingBAD, Unit=单位供冷面积 to display Labelling chart view. * //Open "多层级数据点" again * EnergyAnalysis.ClickMultipleHierarchyAddTagsButton(); * TimeManager.MediumPause(); * * MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[1].HierarchyPath); * MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); * JazzMessageBox.LoadingMask.WaitSubMaskLoading(); * TimeManager.MediumPause(); * * MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[1].TagsName[1]); * TimeManager.ShortPause(); * * MultiHieCompareWindow.ClickConfirmButton(); * TimeManager.ShortPause(); * * //time 2014-12 * IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); * IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); * * //夏热冬暖地区全行业 * EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]); * * //Unit=单位供冷面积 * EnergyViewToolbar.SelectLabellingUnitTypeConvertTarget(input.InputData.UnitTypeValue); * * EnergyViewToolbar.ClickViewButton(); * JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); * TimeManager.MediumPause(); * * labellingInfo1 = IndustryLabellingPanel.GetMultiLabellingInfo(input.InputData.MultipleHierarchyAndtags, input.InputData.YearAndMonth[0], 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]); * * //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[1].year, input.InputData.YearAndMonth[1].month); * Widget.ClickViewLabellingDataButton(); * JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); * TimeManager.LongPause(); * * //Assert.AreEqual(7, Widget.GetLabellingNumber()); * Widget.CompareMaxWidgetStringData(input.ExpectedData.expectedFileName[3], input.InputData.failedFileName[3], IndustryLabellingPanel.IndustryLabellingPath); * * Widget.ClickCloseMaxDialogButton(); */ #endregion }
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 SelectIndustyLabelling03(IndustryLabellingData input) { //Select "园区测试多层级", 非楼宇节点 IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.LongPause(); Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); TimeManager.LongPause(); Assert.AreEqual(false, LabellingIndustryConvertButton.IsEnabled()); TimeManager.LongPause(); //Select Nancycustomer1,非楼宇节点 IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[1]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.LongPause(); Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); TimeManager.LongPause(); TimeManager.LongPause(); Assert.AreEqual(false, LabellingIndustryConvertButton.IsEnabled()); TimeManager.LongPause(); //'所选数据点不是同一介质,请重新选择' IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[2]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.LongPause(); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[0]); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]); Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[1])); TimeManager.LongPause(); Assert.AreEqual(false, LabellingIndustryConvertButton.IsEnabled()); TimeManager.LongPause(); //系统区域数据点,'所选数据点不是同一介质,请重新选择' IndustryLabellingPanel.UncheckTag(input.InputData.tagNames[1]); IndustryLabellingPanel.SwitchTagTab(TagTabs.SystemDimensionTab); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); IndustryLabellingPanel.SelectSystemDimension(input.InputData.SystemDimensionPath[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[2]); Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[1])); TimeManager.LongPause(); Assert.AreEqual(false, LabellingIndustryConvertButton.IsEnabled()); TimeManager.LongPause(); //Uncheck Labellingtag12, IndustryLabellingPanel.SwitchTagTab(TagTabs.HierarchyTag); IndustryLabellingPanel.UncheckTag(input.InputData.tagNames[0]); // Assert.AreEqual(input.ExpectedData.IndustryValues[0], LabellingIndustryConvertButton.GetText()); Assert.AreEqual(input.ExpectedData.IndustryValues[2], LabellingIndustryConvertButton.GetText()); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[1]); //time 2014-01 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); TimeManager.LongPause(); Assert.AreEqual(input.ExpectedData.Industries, EnergyViewToolbar.GetIndustryLabellingMenuListItems(input.InputData.Industries[0][0])); TimeManager.LongPause(); TimeManager.MediumPause(); //选择BuildingLabelling2, IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[3]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.LongPause(); TimeManager.LongPause(); Assert.AreEqual(true, LabellingIndustryConvertButton.IsEnabled()); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[4]); //Click "删除所有" and 确定 EnergyViewToolbar.SelectMoreOption(EnergyViewMoreOption.DeleteAll); TimeManager.MediumPause(); Assert.IsTrue(JazzMessageBox.MessageBox.GetMessage().Contains(input.ExpectedData.ClearAllMessage)); JazzMessageBox.MessageBox.Clear(); TimeManager.LongPause(); //Assert.AreEqual("$@Zone_Extreme_Cold_Region_A$@Industry_Hotel_Five_stat", LabellingIndustryConvertButton.GetText()); TimeManager.LongPause(); //验证多层级不同介质 EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag); TimeManager.LongPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[3].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[3].TagsName[0]); TimeManager.ShortPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[1].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[1].TagsName[0]); TimeManager.ShortPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.LongPause(); Assert.AreEqual(false, LabellingIndustryConvertButton.IsEnabled()); TimeManager.LongPause(); //切换到Ratio indicator,验证ConvertTargetButton status状态 RadioPanel.NavigateToRatio(); TimeManager.MediumPause(); Assert.AreEqual(input.ExpectedData.IndustryValues[0], IndustryConvertTargetButton.GetText()); TimeManager.LongPause(); //切换到Labelling,验证行业labelling为空,自定义不为空 IndustryLabellingPanel.NavigateToIndustryLabelling(); TimeManager.MediumPause(); IndustryLabellingPanel.SelectHierarchy(input.InputData.Hierarchies[4]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.LongPause(); IndustryLabellingPanel.CheckTag(input.InputData.tagNames[3]); TimeManager.ShortPause(); Assert.AreEqual(input.ExpectedData.IndustryValues[1], LabellingIndustryConvertButton.GetText()); EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]); Assert.AreEqual("SelectIndustryLabelling", LabellingIndustryConvertButton.GetText()); }
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 ViewOriginalValueCustomizedLabelling(IndustryLabellingData input) { //Switch to "多层级数据点" EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag); TimeManager.LongPause(); //Select multiple tags Labellingtag1 and LabellingtagAreadimension from BuildingLabelling1 node and Dimension node MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[0].HierarchyPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[0]); TimeManager.ShortPause(); //Switch to "system dimension" and pick LabellingtagSystemdimension MultiHieCompareWindow.SwitchTagTab(TagTabs.SystemDimensionTab); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SelectSystemDimension(input.InputData.SystemDimensionPath[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[0].TagsName[2]); TimeManager.ShortPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.LongPause(); EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[0]); //time 2014-01 IndustryLabellingPanel.SetYear(input.InputData.YearAndMonth[0].year); IndustryLabellingPanel.SetMonth(input.InputData.YearAndMonth[0].month); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.AreEqual(5, IndustryLabellingPanel.GetLabellingNumber()); string labellingInfo1 = IndustryLabellingPanel.GetMultiLabellingInfo(input.InputData.MultipleHierarchyAndtags, input.InputData.YearAndMonth[0], input.InputData.Industries[0][1], input.ExpectedData.UnitTypeValue); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[0], labellingInfo1); TimeManager.MediumPause(); //IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]); //Change Unit=原始值. Click “+数据点” to select multiple tags from hierarchy node BuildingLabelling2, //Open "多层级数据点" again EnergyAnalysis.ClickMultipleHierarchyAddTagsButton(); TimeManager.MediumPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.MultipleHierarchyAndtags[1].HierarchyPath); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); MultiHieCompareWindow.CheckTag(input.InputData.MultipleHierarchyAndtags[1].TagsName[0]); TimeManager.ShortPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.ShortPause(); EnergyViewToolbar.SelectLabellingIndustryConvertTarget(input.InputData.Industries[1]); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.AreEqual(11, IndustryLabellingPanel.GetLabellingNumber()); labellingInfo1 = IndustryLabellingPanel.GetMultiLabellingInfo(input.InputData.MultipleHierarchyAndtags, input.InputData.YearAndMonth[0], input.InputData.Industries[1][1], input.ExpectedData.UnitTypeValue); IndustryLabellingPanel.ExportExpectedStringToExcel(input.ExpectedData.expectedFileName[1], labellingInfo1); TimeManager.MediumPause(); IndustryLabellingPanel.CompareStringsOfEnergyAnalysis(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]); }