public void ViewCarbonUnitIndicator01(UnitIndicatorData input) { //Go to NancyCostCustomer2. Go to Function Unit indicator. HomePagePanel.SelectCustomer("NancyCostCustomer2"); TimeManager.ShortPause(); UnitKPIPanel.NavigateToUnitIndicator(); TimeManager.MediumPause(); //Select one node NancyCostCustomer2/组织A/园区A/楼宇B from Hierarchy Tree. Click Function Type button, select Carbon. UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); EnergyViewToolbar.SelectFuncModeConvertTarget(FuncModeConvertTarget.Carbon); TimeManager.ShortPause(); //Select 总览 to display trend chart view.Time range="去年". EnergyViewToolbar.SelectMoreOption(EnergyViewMoreOption.LastYear); TimeManager.ShortPause(); UnitKPIPanel.SelectCommodityUnitCarbon(); TimeManager.MediumPause(); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsTrendChartDrawn()); //Assert.AreEqual(2, UnitKPIPanel.GetTrendChartLines()); //Assert.AreEqual(2, UnitKPIPanel.GetTrendChartLinesMarkers()); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Week); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[0], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[0], input.InputData.failedFileName[0]); //Select Unit=单位面积, set time range=2012/07/01 00:00-2012/07/10 24:00,click to view data. var ManualTimeRange = input.InputData.ManualTimeRange; EnergyViewToolbar.SetDateRange(ManualTimeRange[0].StartDate, ManualTimeRange[0].EndDate); EnergyViewToolbar.SelectUnitTypeConvertTarget(UnitTypeConvertTarget.UnitArea); TimeManager.ShortPause(); EnergyViewToolbar.View(EnergyViewType.Line); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsLineLegendItemShown(input.InputData.UnitIndicatorLegend[0].CaculationValue)); Assert.IsTrue(UnitKPIPanel.IsLineLegendItemShown(input.InputData.UnitIndicatorLegend[0].TargetValue)); Assert.IsTrue(UnitKPIPanel.IsLineLegendItemShown(input.InputData.UnitIndicatorLegend[0].BaselineValue)); Assert.IsFalse(UnitKPIPanel.IsLineLegendItemShown(input.InputData.UnitIndicatorLegend[0].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsTrendChartDrawn()); //Assert.AreEqual(3, UnitKPIPanel.GetTrendChartLines()); //Assert.AreEqual(4, UnitKPIPanel.GetTrendChartLinesMarkers()); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Day); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[1], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[1], input.InputData.failedFileName[1]); //Select 单项 Commodity=电 to display trend chart view. UnitKPIPanel.SelectSingleCommodityUnitCarbon(input.InputData.Commodity[0]); TimeManager.MediumPause(); EnergyViewToolbar.View(EnergyViewType.Line); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsTrendChartDrawn()); //Assert.AreEqual(2, UnitKPIPanel.GetTrendChartLines()); //Assert.AreEqual(17, UnitKPIPanel.GetTrendChartLinesMarkers()); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Hour); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[2], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[2], input.InputData.failedFileName[2]); EnergyAnalysis.ClickDisplayStep(DisplayStep.Day); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[3], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[3], input.InputData.failedFileName[3]); //Select 楼宇D 单项 Commodity=电 , Unit= 单位人口 to display trend chart view. UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[1]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); EnergyViewToolbar.SelectUnitTypeConvertTarget(UnitTypeConvertTarget.UnitPopulation); TimeManager.ShortPause(); UnitKPIPanel.SelectSingleCommodityUnitCarbon(input.InputData.Commodity[0]); TimeManager.MediumPause(); //·Warining message show not defined 单位人口. //· Check Commodity=电 and still display Carbon chart. EnergyViewToolbar.View(EnergyViewType.Line); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); //Assert.IsFalse(UnitKPIPanel.IsTrendChartDrawn()); //Select 楼宇D 总览 , Unit= 单位人口 to display trend chart view. UnitKPIPanel.SelectCommodityUnitCarbon(); TimeManager.MediumPause(); //·Warining message show not defined 单位人口. //· Check Commodity=电 and still display Carbon chart. EnergyViewToolbar.View(EnergyViewType.Line); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); //Assert.IsFalse(UnitKPIPanel.IsTrendChartDrawn()); //Change different time range, 楼宇B //a. 2012/07/01 3:30-2012/07/01 15:30 hour UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); UnitKPIPanel.SelectCommodityUnitCarbon(); TimeManager.MediumPause(); EnergyViewToolbar.SelectUnitTypeConvertTarget(UnitTypeConvertTarget.UnitArea); TimeManager.ShortPause(); EnergyViewToolbar.SetDateRange(ManualTimeRange[1].StartDate, ManualTimeRange[1].EndDate); TimeManager.ShortPause(); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Hour); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[4], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[4], input.InputData.failedFileName[4]); //b. 2012/07/01 3:30-2012/07/03 23:30 day EnergyViewToolbar.SetDateRange(ManualTimeRange[2].StartDate, ManualTimeRange[2].EndDate); TimeManager.ShortPause(); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Day); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[5], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[5], input.InputData.failedFileName[5]); //c. 2012/07/10-2012/08/05 week EnergyViewToolbar.SetDateRange(ManualTimeRange[3].StartDate, ManualTimeRange[3].EndDate); TimeManager.ShortPause(); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Week); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[6], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[6], input.InputData.failedFileName[6]); //d. 2012/01/01-2012/12/31=lastyear month EnergyViewToolbar.SetDateRange(ManualTimeRange[4].StartDate, ManualTimeRange[4].EndDate); TimeManager.ShortPause(); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Month); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[7], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[7], input.InputData.failedFileName[7]); //e. 2011/01/01-2013/05/30 year EnergyViewToolbar.SetDateRange(ManualTimeRange[5].StartDate, ManualTimeRange[5].EndDate); TimeManager.ShortPause(); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Year); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[8], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[8], input.InputData.failedFileName[8]); //Select multiple Commodities 电+水+煤 from 楼宇A node to display column chart view. UnitKPIPanel.SelectCommodityUnitCarbon(input.InputData.Commodity); TimeManager.MediumPause(); //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[1])); EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsColumnChartDrawn()); //Assert.AreEqual(3, UnitKPIPanel.GetColumnChartColumns()); //·2 legand pereach commodity include 标煤/单位面积 and 标煤(Gray out). Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[2].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[2].OriginalValue)); EnergyViewToolbar.View(EnergyViewType.List); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyAnalysis.ClickDisplayStep(DisplayStep.Year); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); UnitKPIPanel.ExportExpectedDataTableToExcel(input.ExpectedData.expectedFileName[9], DisplayStep.Default); TimeManager.MediumPause(); UnitKPIPanel.CompareDataViewUnitIndicator(input.ExpectedData.expectedFileName[9], input.InputData.failedFileName[9]); }
public void NoCompareData_ViewBenchmarkConsumptionUnitIndicator02(UnitIndicatorData input) { //Select multiple tags V(1) and V(2) from BuildingBC node and Dimension node to display column chart view. UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); //寒冷地区服装零售 EnergyViewToolbar.SelectIndustryConvertTarget(input.InputData.Industries[0]); TimeManager.MediumPause(); UnitKPIPanel.CheckTag(input.InputData.tagNames[0]); TimeManager.ShortPause(); UnitKPIPanel.SwitchTagTab(TagTabs.SystemDimensionTab); TimeManager.MediumPause(); UnitKPIPanel.SelectSystemDimension(input.InputData.SystemDimensionPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); UnitKPIPanel.CheckTag(input.InputData.tagNames[1]); TimeManager.ShortPause(); //time range = 2013/1/1 to 2013/12/31 var ManualTimeRange = input.InputData.ManualTimeRange; EnergyViewToolbar.SetDateRange(ManualTimeRange[0].StartDate, ManualTimeRange[0].EndDate); EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsColumnChartDrawn()); //·2 legend pereach tag include 能耗/单位面积; and 能耗(Gray out). Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].OriginalValue)); //Change different time range //a. 2013/07/01 3:30-2013/07/01 15:00 hour EnergyViewToolbar.SetDateRange(ManualTimeRange[1].StartDate, ManualTimeRange[1].EndDate); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(EnergyAnalysis.IsDisplayStepPressed(DisplayStep.Hour)); //b. 2013/07/01 3:30-2013/07/03 23:30 day EnergyViewToolbar.SetDateRange(ManualTimeRange[2].StartDate, ManualTimeRange[2].EndDate); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(EnergyAnalysis.IsDisplayStepDisplayed(DisplayStep.Day)); Assert.IsTrue(EnergyAnalysis.IsDisplayStepPressed(DisplayStep.Hour)); //c. 2012/07/10-2012/08/05 week EnergyViewToolbar.SetDateRange(ManualTimeRange[3].StartDate, ManualTimeRange[3].EndDate); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(EnergyAnalysis.IsDisplayStepDisplayed(DisplayStep.Week)); Assert.IsTrue(EnergyAnalysis.IsDisplayStepPressed(DisplayStep.Day)); //d. 2012/01/01-2012/12/31=lastyear month EnergyViewToolbar.SetDateRange(ManualTimeRange[4].StartDate, ManualTimeRange[4].EndDate); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(EnergyAnalysis.IsDisplayStepPressed(DisplayStep.Month)); //e. 2011/01/01-2013/05/30 year EnergyViewToolbar.SetDateRange(ManualTimeRange[5].StartDate, ManualTimeRange[5].EndDate); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //Assert.IsTrue(EnergyAnalysis.IsDisplayStepPressed(DisplayStep.Month)); No need to verify press? Assert.IsTrue(EnergyAnalysis.IsDisplayStepDisplayed(DisplayStep.Year)); //Select multiple tags from multiple hierarchy node BuildingBC and BuildingBAD and Dimension node to display column chart view. EnergyViewToolbar.SelectTagModeConvertTarget(TagModeConvertTarget.MultipleHierarchyTag); TimeManager.LongPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.CheckTag(input.InputData.tagNames[0]); TimeManager.ShortPause(); MultiHieCompareWindow.SwitchTagTab(TagTabs.SystemDimensionTab); MultiHieCompareWindow.SelectSystemDimension(input.InputData.SystemDimensionPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); MultiHieCompareWindow.CheckTag(input.InputData.tagNames[1]); TimeManager.ShortPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.Hierarchies[1]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); MultiHieCompareWindow.SwitchTagTab(TagTabs.HierarchyTag); MultiHieCompareWindow.CheckTag(input.InputData.tagNames[2]); TimeManager.ShortPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.ShortPause(); EnergyViewToolbar.SetDateRange(ManualTimeRange[3].StartDate, ManualTimeRange[3].EndDate); EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); //·Warining message show not defined 单位人口."缺少人口属性的部分无法绘制,请设置后再试". //Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); //·Chart display 单位人口. Assert.IsTrue(UnitKPIPanel.IsColumnChartDrawn()); //Assert.AreEqual(2, UnitKPIPanel.GetColumnChartColumns()); //· 目标值/基准值 chart and legand will not display in chart. Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[2].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[2].OriginalValue)); Assert.AreEqual(input.ExpectedData.UnitTypeValue, EnergyViewToolbar.GetUnitTypeButtonText()); //Click "删除所有" and 确定 EnergyViewToolbar.SelectMoreOption(EnergyViewMoreOption.DeleteAll); TimeManager.MediumPause(); Assert.IsTrue(JazzMessageBox.MessageBox.GetMessage().Contains(input.ExpectedData.ClearAllMessage)); JazzMessageBox.MessageBox.Clear(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.EntirelyNoChartDrawn()); //· Chart display correctly without pop up message. EnergyAnalysis.ClickMultipleHierarchyAddTagsButton(); TimeManager.MediumPause(); MultiHieCompareWindow.SelectHierarchyNode(input.InputData.Hierarchies[1]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); MultiHieCompareWindow.CheckTag(input.InputData.tagNames[2]); TimeManager.ShortPause(); MultiHieCompareWindow.ClickConfirmButton(); TimeManager.ShortPause(); EnergyViewToolbar.SetDateRange(ManualTimeRange[3].StartDate, ManualTimeRange[3].EndDate); EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); #region Not use code, for save to dashboard which will test on manual for 2.0 /* * var dashboard = input.InputData.DashboardInfo; * EnergyViewToolbar.SaveToDashboard(dashboard[0].WigetName, dashboard[0].HierarchyName, dashboard[0].IsCreateDashboard, dashboard[0].DashboardName); * * //On homepage, check the dashboard * HomePagePanel.NavigateToAllDashboard(); * HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); * TimeManager.MediumPause(); * HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); * JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(); * TimeManager.MediumPause(); * * Assert.IsTrue(HomePagePanel.GetDashboardHeaderName().Contains(dashboard[0].DashboardName)); * Assert.IsTrue(HomePagePanel.IsWidgetExistedOnDashboard(dashboard[0].WigetName)); */ #endregion }
public void NoCompareData_ViewCostUnitIndicator02(UnitIndicatorData input) { //Select multiple Commodities 电+水+煤 from 楼宇 node to display column chart view. HomePagePanel.SelectCustomer("NancyCostCustomer2"); TimeManager.ShortPause(); UnitKPIPanel.NavigateToUnitIndicator(); TimeManager.MediumPause(); UnitKPIPanel.SelectHierarchy(input.InputData.Hierarchies[0]); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); EnergyViewToolbar.SelectFuncModeConvertTarget(FuncModeConvertTarget.Cost); TimeManager.ShortPause(); EnergyViewToolbar.SelectUnitTypeConvertTarget(UnitTypeConvertTarget.UnitArea); TimeManager.ShortPause(); UnitKPIPanel.SelectCommodityUnitCost(input.InputData.Commodity); TimeManager.MediumPause(); Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); //2012/7/1 to 2013/11/1 var ManualTimeRange = input.InputData.ManualTimeRange; EnergyViewToolbar.SetDateRange(ManualTimeRange[0].StartDate, ManualTimeRange[0].EndDate); EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsColumnChartDrawn()); //·2 legand pereach commodity include 成本/单位面积 and 成本(Gray out). Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[2].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[2].OriginalValue)); //Select multiple Commodities 电+水+煤 from 楼宇 Dimension 空调 node to display column chart view. UnitKPIPanel.SwitchTagTab(TagTabs.SystemDimensionTab); TimeManager.MediumPause(); UnitKPIPanel.SelectSystemDimension(input.InputData.SystemDimensionPath); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); EnergyViewToolbar.SelectUnitTypeConvertTarget(UnitTypeConvertTarget.UnitArea); TimeManager.ShortPause(); UnitKPIPanel.SelectCommodityUnitCost(input.InputData.Commodity); TimeManager.MediumPause(); Assert.IsTrue(HomePagePanel.GetPopNotesValue().Contains(input.ExpectedData.popupNotes[0])); EnergyViewToolbar.SetDateRange(ManualTimeRange[0].StartDate, ManualTimeRange[0].EndDate); EnergyViewToolbar.View(EnergyViewType.Column); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); Assert.IsTrue(UnitKPIPanel.IsColumnChartDrawn()); //·2 legand pereach commodity include 成本/单位面积 and 成本(Gray out). Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[0].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[1].OriginalValue)); Assert.IsTrue(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[2].CaculationValue)); Assert.IsFalse(UnitKPIPanel.IsColumnLegendItemShown(input.ExpectedData.UnitIndicatorLegend[2].OriginalValue)); }