public void VerifySponsorCanInviteOtherUsers(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; //Login to Jazz with UserA. Navigate to homepage->Dashboard->Collaborative Widget tab. JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, null); HomePagePanel.NavigateToMyShare(); //Click "Subscriber User List" button in widgetA. HomePagePanel.ClickShareMyShareWidgetButton(dashboard[0].WidgetName); TimeManager.ShortPause(); //.UserA,UserB appear in the subscriber user list. Assert.IsTrue(ShareWindow.IsEnjoyUserInSubscribeUserList(dashboard[0].ShareUsers[0])); Assert.IsTrue(ShareWindow.IsEnjoyUserInSubscribeUserList(dashboard[0].ShareUsers[1])); //Click "Invitation" button, check UserC and UserD add the new annotation and then click Confirm button. ShareWindow.ClickInviteOtherButton(); TimeManager.ShortPause(); ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[2]); ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[3]); //UserC and UserD appear in SharetoUser list in the right panel. Assert.IsTrue(ShareWindow.IsEnjoyUserInSendedList(dashboard[0].ShareUsers[2])); Assert.IsTrue(ShareWindow.IsEnjoyUserInSendedList(dashboard[0].ShareUsers[3])); ShareWindow.ClickEnjoyButton(); TimeManager.ShortPause(); //Login to Jazz with UserC.Navigate to homepage, then to "Collaborative Widget " tab. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[2].LoginName, dashboard[0].Receivers[2].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToMyShare(); //There is a widgetA appear in "Collaborative Widget " with the new annotation. Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); //Login to Jazz with UserD.Navigate to homepage, then to "Collaborative Widget " tab. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[3].LoginName, dashboard[0].Receivers[3].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToMyShare(); //There is a widgetA appear in "Collaborative Widget " with the new annotation. Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); }
public void ShareWidgetWithNoAnnotation(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 "ShareCollaborative" button. HomePagePanel.ClickEnjoyWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Check UserB in the left panel and then click Confirm button. ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[0]); TimeManager.ShortPause(); ShareWindow.ClickEnjoyButton(); TimeManager.ShortPause(); //Login to Jazz with UserA.Navigate to homepage, then to "Collaborative Widget " tab. HomePagePanel.NavigateToMyShare(); //There is a widgetA appear in "Collaborative Widget " with the blank annotation. HomePagePanel.FloatOnMyShareEditCommentButton(dashboard[0].WidgetName); TimeManager.ShortPause(); HomePagePanel.ClickAddAnnotationButton(); TimeManager.ShortPause(); Widget.ClickQuitAnnotationWindowButton(); TimeManager.MediumPause(); //Click the schema picture area in widgetA.The annotation is blank with Add button. //Click Add button and add the annotation. HomePagePanel.MaximizeMyShareWidget(dashboard[0].WidgetName); Widget.ClickAddMaxWidgetCommentButton(); TimeManager.ShortPause(); Widget.EditAnnotationWindow(dashboard[0].widgetComments[0]); Widget.ClickSaveAnnotationWindowButton(); TimeManager.MediumPause(); //The annotation is added with Edit button. Widget.ClickEditMaxWidgetCommentButton(); TimeManager.ShortPause(); Widget.ClickQuitAnnotationWindowButton(); TimeManager.MediumPause(); Widget.ClickCloseMaxDialogButton(); TimeManager.ShortPause(); //Login to Jazz with UserB.Navigate to homepage, then to "Collaborative Widget " tab, and then click the schema picture area in widgetA. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[1].LoginName, dashboard[0].Receivers[1].Password, null); HomePagePanel.NavigateToMyShare(); HomePagePanel.MaximizeMyShareWidget(dashboard[0].WidgetName); TimeManager.ShortPause(); //The annotation add to new the same as UserA. Assert.AreEqual(dashboard[0].widgetComments[0], Widget.GetMaxWidgetComment()); //The annotation window without Edit button Assert.IsFalse(Widget.IsEditMaxWidgetCommentButtonDisplayed()); Widget.ClickCloseMaxDialogButton(); TimeManager.ShortPause(); }
public void ShareWidgetWithValidInfo(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 link" button. HomePagePanel.ClickEnjoyWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //·There is UserB and UserC display in receivers list. Assert.IsTrue(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[0])); Assert.IsTrue(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[1])); //·There isn't UserD display in receivers list. Assert.IsFalse(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[2])); //Check UserB and UserC checkbox. ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[0]); ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[1]); TimeManager.ShortPause(); Assert.AreEqual(2, ShareWindow.GetEnjoyUserNumber()); //Click "共享 button" ShareWindow.ClickEnjoyButton(); TimeManager.ShortPause(); //Navigate to homepage, then to "Collaborative Widget " tab. HomePagePanel.NavigateToMyShare(); //WidgetA mirror display at the top of thumbnail list of under UserA. Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); TimeManager.ShortPause(); //Login to Jazz with UserB. Navigate to homepage, then to "Collaborative Widget " tab. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[1].LoginName, dashboard[0].Receivers[1].Password, null); HomePagePanel.NavigateToMyShare(); //WidgetA mirror display at the top of thumbnail list of under UserA. Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); TimeManager.ShortPause(); //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, null); HomePagePanel.NavigateToMyShare(); //WidgetA mirror display at the top of thumbnail list of under UserA. Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); TimeManager.ShortPause(); }
public void VerifyMirrorExistAfterOriginalWidgetDelete(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 with nameA , click "Share link" button and check UserB, click Confirm button. HomePagePanel.ClickEnjoyWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[0]); TimeManager.ShortPause(); ShareWindow.ClickEnjoyButton(); TimeManager.ShortPause(); //Login to Jazz with UserB. Navigate to homepage, then to "Collaborative Widget " tab. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[1].LoginName, dashboard[0].Receivers[1].Password, null); HomePagePanel.NavigateToMyShare(); //There is a widgetA with nameA appear in "Collaborative Widget " tab. Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); TimeManager.ShortPause(); //Login to Jazz with UserA. Navigate to homepage-> hierarchynodeA->DashboardA. Click the Edit button in the widgetA . HomePagePanel.ExitJazz(); 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(); //Click Delete button and then click Confirm button.WidgetA delete successfully. HomePagePanel.DeleteWidgetOpen(dashboard[0].WidgetName); TimeManager.ShortPause(); JazzMessageBox.MessageBox.Delete(); TimeManager.MediumPause(); Assert.IsFalse(HomePagePanel.IsWidgetExistedOnDashboard(dashboard[0].WidgetName)); //Login to Jazz with UserB.Navigate to homepage, then to "Collaborative Widget " tab. HomePagePanel.ExitJazz(); JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[1].LoginName, dashboard[0].Receivers[1].Password, null); HomePagePanel.NavigateToMyShare(); //·There is a widgetA with nameA appear in "Collaborative Widget " tab and the Collaborative Widget is also exist. Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); TimeManager.ShortPause(); }