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 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 }