public void ViewConsumptionUnitIndicator03(UnitIndicatorData input) { //Go to NancyOtherCustomer3. Go to Function Unit indicator. HomePagePanel.SelectCustomer("NancyOtherCustomer3"); TimeManager.ShortPause(); UnitKPIPanel.NavigateToUnitIndicator(); TimeManager.MediumPause(); //Select the BuildingPrecision from Hierarchy Tree. UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); UnitKPIPanel.SwitchTagTab(TagTabs.HierarchyTag); TimeManager.LongPause(); //Click Function Type button, select Energy Consumption. Verify precision display for Unit display. UnitKPIPanel.CheckTag(input.InputData.tagNames[0]); UnitKPIPanel.CheckTag(input.InputData.tagNames[1]); TimeManager.ShortPause(); EnergyViewToolbar.SelectMoreOption(EnergyViewMoreOption.LastYear); TimeManager.ShortPause(); //·Basic chart view display as expected. //Line chart EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsTrendChartDrawn()); //Assert.AreEqual(6, UnitKPIPanel.GetTrendChartLinesMarkers()); //Column EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsColumnChartDrawn()); //Assert.AreEqual(2, UnitKPIPanel.GetColumnChartColumns()); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Month); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Data View UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[0], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]); //Select the BuildingMissingData from Hierarchy Tree. UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[1]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); //select tag PtagMissing. Time rang="去年 EnergyViewToolbar.SelectMoreOption(EnergyViewMoreOption.LastYear); TimeManager.ShortPause(); UnitKPIPanel.CheckTag(input.InputData.tagNames[2]); TimeManager.ShortPause(); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Month); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Data View UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[1], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]); //Line chart EnergyViewToolbar.View(EnergyViewType.Line); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsTrendChartDrawn()); Assert.AreEqual(1, UnitKPIPanel.GetTrendChartLines()); //Column EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsColumnChartDrawn()); //Assert.AreEqual(1, UnitKPIPanel.GetColumnChartColumns()); //Select the BuildingMultipleSteps from Hierarchy Tree. Select V(H)+V(D)+V(M) to display 单位人口. UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[2]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); UnitKPIPanel.CheckTag(input.InputData.tagNames[3]); UnitKPIPanel.CheckTag(input.InputData.tagNames[4]); UnitKPIPanel.CheckTag(input.InputData.tagNames[5]); TimeManager.ShortPause(); //Select time range, 去年 EnergyViewToolbar.SelectMoreOption(EnergyViewMoreOption.LastYear); TimeManager.ShortPause(); //Line chart EnergyViewToolbar.View(EnergyViewType.Line); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); Assert.IsFalse(UnitKPIPanel.IsTrendChartDrawn()); //Column EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); Assert.IsFalse(UnitKPIPanel.IsColumnChartDrawn()); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Month); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Data View UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[2], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[2], input.InputData.failedFileName[2]); //Select 1 tag V(12) from hierarchy node BuildingBAD, Unit=单位供冷面积 to display chart view. HomePagePanel.SelectCustomer("NancyCustomer1"); TimeManager.ShortPause(); UnitKPIPanel.NavigateToUnitIndicator(); TimeManager.MediumPause(); UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[3]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); UnitKPIPanel.CheckTag(input.InputData.tagNames[6]); TimeManager.ShortPause(); EnergyViewToolbar.SelectUnitTypeConvertTarget(UnitTypeConvertTarget.UnitCoolArea); TimeManager.ShortPause(); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsTrendChartDrawn()); //Assert.AreEqual(1, UnitKPIPanel.GetTrendChartLines()); //Assert.AreEqual(7, UnitKPIPanel.GetTrendChartLinesMarkers()); //Select 1 tag V(1) select time range =2012/01/01-2012/12/31, optional step=month, unit=单位人口 to view chart. UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[4]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); UnitKPIPanel.CheckTag(input.InputData.tagNames[7]); TimeManager.ShortPause(); //Select time range, 去年 EnergyViewToolbar.SelectMoreOption(EnergyViewMoreOption.LastYear); TimeManager.ShortPause(); EnergyViewToolbar.SelectUnitTypeConvertTarget(UnitTypeConvertTarget.UnitPopulation); TimeManager.ShortPause(); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); Assert.IsTrue(UnitKPIPanel.IsTrendChartDrawn()); //Assert.AreEqual(2, UnitKPIPanel.GetTrendChartLines()); //Assert.AreEqual(14, UnitKPIPanel.GetTrendChartLinesMarkers()); }