public void ShareDashboardFailed03(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); //Click "share dashboard" button HomePagePanel.ClickShareDashboardButton(dashboard[0].DashboardName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //There is UserE/D display Assert.IsTrue(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[0])); Assert.IsTrue(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[1])); //Check UserE checkbox and click "share" directly. ShareWindow.CheckShareUser(dashboard[0].ShareUsers[1]); TimeManager.ShortPause(); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); }
public void MarkDashboardRead01(ShareDashboardData input) { //Click on a Hierarchy node that contains dashboard. var dashboard = input.InputData.DashboardInfo; HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //Share dashboardA to userB successfully. HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); HomePagePanel.ClickShareDashboardButton(dashboard[0].DashboardName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); TimeManager.MediumPause(); ShareWindow.ClickShareButton(); TimeManager.LongPause(); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); HomePagePanel.ClickShareDashboardButton(dashboard[0].DashboardName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); TimeManager.MediumPause(); ShareWindow.ClickShareButton(); TimeManager.LongPause(); Assert.AreEqual(input.ExpectedData.messages[1], HomePagePanel.GetPopNotesValue()); //Login with userB. Navigate to homepage to select the hierarchynodeA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //There is new dashboardA is unread dashboard with mark icon . Assert.IsTrue(HomePagePanel.IsShareDashboardUnread(dashboard[0].DashboardName)); //Click the dashboardA name from dashboard list. HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //Remove the unread mark of the dashboard when open the dashboard. Assert.IsFalse(HomePagePanel.IsShareDashboardUnread(dashboard[0].DashboardName)); //Remove the unread mark of share info //Assert.IsFalse(HomePagePanel.IsShareInfoUnread()); }
public void MarkWidgetRead01(ShareDashboardData input) { //Click on a Hierarchy node that contains dashboard. var dashboard = input.InputData.DashboardInfo; HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //Share dashboardA to userB successfully. HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); HomePagePanel.ClickShareWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); TimeManager.MediumPause(); ShareWindow.ClickShareButton(); TimeManager.LongPause(); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); //Login with userB. Navigate to homepage to select the hierarchynodeA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //select shared dashboard HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //The widget display unread mark. Assert.IsTrue(HomePagePanel.IsShareWidgetUnread(dashboard[0].WidgetName)); //Select the widgetA to maximize, then minimize. HomePagePanel.MaximizeWidget(dashboard[0].WidgetName); TimeManager.MediumPause(); Widget.ClickCloseMaxDialogButton(); TimeManager.MediumPause(); //The widget unread mark is removed. Assert.IsFalse(HomePagePanel.IsShareWidgetUnread(dashboard[0].WidgetName)); }
public void ShareWidgetFailed03(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //Click "share Widget" button HomePagePanel.ClickShareWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Share widget successfully to userD ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); TimeManager.LongPause(); //Select widgetA of userA. Select receiver UserB.Click "share" Button again //Click "share Widget" button HomePagePanel.ClickShareWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Share widget successfully to userD ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[1], HomePagePanel.GetPopNotesValue()); TimeManager.LongPause(); //The widgetA is rename to widgetA+timestamp on UserD HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[1].LoginName, dashboard[0].Receivers[1].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); Assert.AreEqual(2, HomePagePanel.GetWidgetsNumberOfDashboard()); }
public void ShareDashboardSuccess02(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); //Click "share dashboard" button HomePagePanel.ClickShareDashboardButton(dashboard[0].DashboardName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Check UserB and D ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[1]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); TimeManager.LongPause(); //Login to Jazz with userB HomePagePanel.ExitJazz(); TimeManager.MediumPause(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[1].LoginName, dashboard[0].Receivers[1].Password, null); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); Assert.IsTrue(HomePagePanel.IsDashboardButtonExisted(dashboard[0].DashboardName)); //Login to Jazz with userD HomePagePanel.ExitJazz(); TimeManager.MediumPause(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[2].LoginName, dashboard[0].Receivers[2].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); Assert.IsTrue(HomePagePanel.IsDashboardButtonExisted(dashboard[0].DashboardName)); }
public void ViewSharerInfo01(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); //UserA Share widgetA to UserB HomePagePanel.ClickShareDashboardButton(dashboard[0].DashboardName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Check UserA ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); TimeManager.LongPause(); //Login with userA. Navigate to homepage to select the hierarchynodeA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //Check there is "分享来源" display at the dashboard right header. Assert.IsTrue(HomePagePanel.IsShareResoureCommonExisted()); Assert.IsTrue(HomePagePanel.IsShareResoureTimeExisted()); Assert.IsTrue(HomePagePanel.IsShareResoureUserExisted()); Assert.AreEqual(dashboard[0].ReceiveUsers[0], HomePagePanel.GetShareResoureUser()); //Mouse over to the sender realname. //Manual Test this part //HomePagePanel.FloatOnShareResoureUser(); //HomePagePanel.FloatOnShareResoureUser();; //Assert.IsTrue(HomePagePanel.IsTextsExisted(input.ExpectedData.TooltipTexts[0])); }
public void ViewReceiveInfo04(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //UserA Share widgetA to UserB HomePagePanel.ClickShareWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Check UserA ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); TimeManager.LongPause(); HomePagePanel.ClickDashboardButton(dashboard[1].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //UserA Share widgetB to UserB HomePagePanel.ClickShareWidgetButton(dashboard[1].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Check UserA ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[1], HomePagePanel.GetPopNotesValue()); TimeManager.LongPause(); //Login with userA. Navigate to homepage to select the hierarchynodeA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //the send history include widgetA and widgetB record. //Click "Share info" link. HomePagePanel.ClickShareInfoButton(); TimeManager.MediumPause(); //Click receive info tab. ShareInfoWindow.ClickShareInfoReceivedButton(); TimeManager.Pause(WAITSHAREINFOTAB); Assert.IsTrue(ShareInfoWindow.IsRowExisted(2, dashboard[0].WidgetName)); Assert.IsTrue(ShareInfoWindow.IsRowExisted(3, dashboard[0].HierarchyName.Last())); Assert.IsTrue(ShareInfoWindow.IsRowExisted(4, dashboard[0].ReceiveUsers[0])); Assert.IsTrue(ShareInfoWindow.IsRowExisted(2, dashboard[1].WidgetName)); Assert.IsTrue(ShareInfoWindow.IsRowExisted(3, dashboard[1].HierarchyName.Last())); Assert.IsTrue(ShareInfoWindow.IsRowExisted(4, dashboard[1].ReceiveUsers[0])); ShareInfoWindow.Close(); TimeManager.ShortPause(); //Delete the shared widgetA of userA HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); HomePagePanel.DeleteWidgetOpen(dashboard[0].WidgetName); TimeManager.MediumPause(); JazzMessageBox.MessageBox.Delete(); TimeManager.LongPause(); //Click "Share info" link. HomePagePanel.ClickShareInfoButton(); TimeManager.MediumPause(); //Click receive info tab. ShareInfoWindow.ClickShareInfoReceivedButton(); TimeManager.Pause(WAITSHAREINFOTAB); Assert.IsFalse(ShareInfoWindow.IsRowExisted(2, dashboard[0].WidgetName)); ShareInfoWindow.Close(); TimeManager.ShortPause(); //Delete the shared widgetB of userA HomePagePanel.ClickDashboardButton(dashboard[1].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); HomePagePanel.DeleteWidgetOpen(dashboard[1].WidgetName); TimeManager.MediumPause(); JazzMessageBox.MessageBox.Delete(); TimeManager.LongPause(); //Click "Share info" link. HomePagePanel.ClickShareInfoButton(); TimeManager.MediumPause(); //Click receive info tab. ShareInfoWindow.ClickShareInfoReceivedButton(); TimeManager.Pause(WAITSHAREINFOTAB); Assert.IsFalse(ShareInfoWindow.IsRowExisted(2, dashboard[1].WidgetName)); ShareInfoWindow.Close(); TimeManager.ShortPause(); }
public void ShareWithNoAnnotationSuccess(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; //Login to Jazz with userA. Navigate to homepage, then to hierarchynodeA. Click the dashboardA name from dashboard list. JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, null); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(15); TimeManager.LongPause(); //Select widgetA and click "share Copy of widget" button. HomePagePanel.ClickShareWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //·There is userB and UserD display in receivers list. Assert.IsTrue(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[0])); Assert.IsTrue(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[1])); //There isn't userC display in receivers list. Assert.IsFalse(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[2])); //Check UserB and UserD checkbox, with no annotation in annotation field and click "share". ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[1]); //Share widget successfully to userB and userD with no annotation. ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); //Pop up note show share successfully and disappear in little seconds. Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); //Login to Jazz with userB. Navigate to homepage, then to hierarchynodeA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[1].LoginName, dashboard[0].Receivers[1].Password, null); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //Click dashboardA. HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(15); TimeManager.LongPause(); //·Only 1 widgetA display in dashboard. Assert.AreEqual(1, HomePagePanel.GetWidgetsNumberOfDashboard()); //Check the annotation in widgetA.The annotation is blank. HomePagePanel.FloatOnEditCommentButton(dashboard[0].WidgetName); TimeManager.ShortPause(); HomePagePanel.ClickAddAnnotationButton(); TimeManager.ShortPause(); Widget.ClickQuitAnnotationWindowButton(); TimeManager.MediumPause(); //Login to Jazz with userD. Navigate to homepage, then to hierarchynodeA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[2].LoginName, dashboard[0].Receivers[2].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //Click dashboardA. HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(15); TimeManager.LongPause(); //·Only 1 widgetA display in dashboard. Assert.AreEqual(1, HomePagePanel.GetWidgetsNumberOfDashboard()); //Check the annotation in widgetA.The annotation is blank. HomePagePanel.FloatOnEditCommentButton(dashboard[0].WidgetName); TimeManager.ShortPause(); HomePagePanel.ClickAddAnnotationButton(); TimeManager.ShortPause(); Widget.ClickQuitAnnotationWindowButton(); TimeManager.MediumPause(); }
public void UseWidgetTemplate(MaximizeWidgetData input) { var hierarchy = input.InputData.HierarchyInfo; var dashboard = input.InputData.DashboardInfo; HomePagePanel.SelectCustomer("NancyCostCustomer2"); Widget.NavigateToAllDashboard(); TimeManager.MediumPause(); TimeManager.LongPause(); TimeManager.LongPause(); HomePagePanel.SelectHierarchyNode(hierarchy[2]); TimeManager.LongPause(); Widget.ClickWidgetTemplateQuickCreateButton(); HomePagePanel.ClickWidgetTemplateField(input.InputData.WidgetNames[0]); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); EnergyAnalysis.CheckTag(input.InputData.TagName); TimeManager.MediumPause(); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); EnergyViewToolbar.IsMoreMenuItemDisabled(input.InputData.MoreMenuItems[0]); EnergyViewToolbar.IsMoreMenuItemDisabled(input.InputData.MoreMenuItems[1]); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); EnergyAnalysis.Toolbar.SaveToDashboard(dashboard[0].WigetNames[0], dashboard[0].HierarchyName, dashboard[0].IsCreateDashboard, dashboard[0].DashboardName); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); Widget.NavigateToAllDashboard(); TimeManager.MediumPause(); TimeManager.LongPause(); TimeManager.LongPause(); HomePagePanel.SelectHierarchyNode(hierarchy[2]); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); Assert.IsTrue(HomePagePanel.IsWidgetExistedOnDashboard(dashboard[0].WigetNames[0])); TimeManager.LongPause(); HomePagePanel.RenameWidgetOpen(dashboard[0].WigetNames[0]); TimeManager.LongPause(); Widget.FillNewWidgetName(input.InputData.newWidgetName[0]); Widget.ClickSaveWidgetNameButton(); TimeManager.MediumPause(); TimeManager.LongPause(); HomePagePanel.ClickShareWidgetButton(input.InputData.newWidgetName[0]); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); Assert.IsTrue(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[0])); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); TimeManager.LongPause(); ShareWindow.ClickShareButton(); TimeManager.LongPause(); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(15); TimeManager.LongPause(); HomePagePanel.DeleteWidgetOpen(input.InputData.newWidgetName[0]); TimeManager.ShortPause(); JazzMessageBox.MessageBox.Delete(); TimeManager.MediumPause(); TimeManager.LongPause(); TimeManager.LongPause(); Assert.IsFalse(HomePagePanel.IsWidgetExistedOnDashboard(input.InputData.newWidgetName[0])); HomePagePanel.SelectHierarchyNode(hierarchy[2]); TimeManager.LongPause(); Widget.ClickWidgetTemplateQuickCreateButton(); HomePagePanel.ClickWidgetTemplateField(input.InputData.WidgetNames[6]); TimeManager.LongPause(); TimeManager.LongPause(); CorporateRanking.ClickSelectHierarchyButton(); TimeManager.LongPause(); CorporateRanking.OnlyCheckHierarchyNode(hierarchy[2]); TimeManager.LongPause(); CorporateRanking.OnlyCheckHierarchyNode(hierarchy[3]); TimeManager.LongPause(); CorporateRanking.ClickConfirmHiearchyButton(); TimeManager.LongPause(); CorporateRanking.SelectCommodity(input.ExpectedData.CommodityValue[0]); TimeManager.MediumPause(); EnergyViewToolbar.ClickViewButton(); JazzMessageBox.LoadingMask.WaitChartMaskerLoading(); TimeManager.MediumPause(); TimeManager.LongPause(); EnergyAnalysis.Toolbar.SaveToDashboard(dashboard[0].WigetNames[1], dashboard[0].HierarchyName, dashboard[0].IsCreateDashboard, dashboard[0].DashboardName); TimeManager.LongPause(); Widget.NavigateToAllDashboard(); TimeManager.MediumPause(); TimeManager.LongPause(); TimeManager.LongPause(); HomePagePanel.SelectHierarchyNode(hierarchy[2]); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); Assert.IsTrue(HomePagePanel.IsWidgetExistedOnDashboard(dashboard[0].WigetNames[1])); }
public void ViewSendReceiveInfo01(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); //Click "share dashboard" button HomePagePanel.ClickShareDashboardButton(dashboard[0].DashboardName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Check UserA ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); TimeManager.LongPause(); //Click "share widget" button HomePagePanel.ClickDashboardButton(dashboard[1].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); HomePagePanel.ClickShareWidgetButton(dashboard[1].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Check UserA ShareWindow.CheckShareUser(dashboard[1].ShareUsers[0]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[1], HomePagePanel.GetPopNotesValue()); TimeManager.LongPause(); //Click "Share info" link. HomePagePanel.ClickShareInfoButton(); TimeManager.MediumPause(); //Click Send info tab. ShareInfoWindow.ClickShareInfoSendedButton(); TimeManager.Pause(WAITSHAREINFOTAB); //check send info Assert.IsTrue(ShareInfoWindow.IsRowExisted(2, dashboard[0].DashboardName)); Assert.IsTrue(ShareInfoWindow.IsRowExisted(3, dashboard[0].HierarchyName.Last())); Assert.IsTrue(ShareInfoWindow.IsRowExisted(4, dashboard[0].ShareUsers[0])); Assert.IsTrue(ShareInfoWindow.IsRowExisted(2, dashboard[1].WidgetName)); Assert.IsTrue(ShareInfoWindow.IsRowExisted(3, dashboard[1].HierarchyName.Last())); Assert.IsTrue(ShareInfoWindow.IsRowExisted(4, dashboard[1].ShareUsers[0])); ShareInfoWindow.Close(); TimeManager.MediumPause(); //Login to Jazz with userA HomePagePanel.ExitJazz(); TimeManager.MediumPause(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); Assert.IsTrue(HomePagePanel.IsDashboardButtonExisted(dashboard[0].DashboardName)); //Click receive info tab. Verify the unread history display bold line. HomePagePanel.ClickShareInfoButton(); TimeManager.MediumPause(); ShareInfoWindow.ClickShareInfoReceivedButton(); TimeManager.Pause(WAITSHAREINFOTAB); Assert.IsTrue(ShareInfoWindow.IsRowBold(2, dashboard[0].DashboardName)); Assert.IsTrue(ShareInfoWindow.IsRowBold(2, dashboard[1].WidgetName)); //Click the bold line to read dashboard. ShareInfoWindow.ClickRowColumn(2, dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitJumpFavoriteLoading(10); TimeManager.MediumPause(); //Jump to the dashboard and open. Change from unread to read. Assert.IsTrue(HomePagePanel.IsDashboardButtonExisted(dashboard[0].DashboardName)); //Click the bold line to read widget. HomePagePanel.ClickShareInfoButton(); TimeManager.MediumPause(); ShareInfoWindow.ClickShareInfoReceivedButton(); TimeManager.Pause(WAITSHAREINFOTAB); ShareInfoWindow.ClickRowColumn(2, dashboard[1].WidgetName); JazzMessageBox.LoadingMask.WaitJumpFavoriteLoading(10); TimeManager.LongPause(); TimeManager.LongPause(); //The widget is open and Maximize. Change from unread to read Assert.AreEqual(dashboard[1].WidgetName, Widget.GetMaxWidgetName()); //Click "X" to close . Widget.ClickCloseMaxDialogButton(); TimeManager.MediumPause(); //nobold HomePagePanel.ClickShareInfoButton(); TimeManager.MediumPause(); ShareInfoWindow.ClickShareInfoReceivedButton(); TimeManager.Pause(WAITSHAREINFOTAB); Assert.IsFalse(ShareInfoWindow.IsRowBold(2, dashboard[0].DashboardName)); Assert.IsFalse(ShareInfoWindow.IsRowBold(2, dashboard[1].WidgetName)); ShareInfoWindow.Close(); TimeManager.ShortPause(); }
public void ShareWidgetSuccess01(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //Click "share Widget" button HomePagePanel.ClickShareWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //There is userB and UserD display in receivers list.There isn't userC display in receivers list. Assert.IsTrue(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[0])); Assert.IsTrue(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[1])); Assert.IsFalse(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[2])); //Check UserB and UserD checkbox and click "share". ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[1]); ShareWindow.ClickShareButton(); JazzMessageBox.LoadingMask.WaitPopNotesAppear(5); Assert.AreEqual(input.ExpectedData.messages[0], HomePagePanel.GetPopNotesValue()); //Login to Jazz with userB. Navigate to homepage, then to hierarchynodeA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[1].LoginName, dashboard[0].Receivers[1].Password, null); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //There is a new created dashboardA with widgetA in dashboard list. HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //Only 1 widgetA display in dashboard. HomePagePanel.IsWidgetExistedOnDashboard(dashboard[0].WidgetName); Assert.AreEqual(1, HomePagePanel.GetWidgetsNumberOfDashboard()); TimeManager.LongPause(); //Login to Jazz with userD. Navigate to homepage, then to hierarchynodeA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[2].LoginName, dashboard[0].Receivers[2].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.LongPause(); //There is a new created dashboardA with widgetA in dashboard list. HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //Add a widgetA display at the end of dashboardA. HomePagePanel.IsWidgetExistedOnDashboard(dashboard[0].WidgetName); Assert.AreEqual(1, HomePagePanel.GetWidgetsNumberOfDashboard()); }