public void VerifyNoSubscriberCanNotShare(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, click "Share link" button. HomePagePanel.ClickEnjoyWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //There isn't users(UserB and UserC) in SharetoUser list. Assert.IsFalse(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[0])); Assert.IsFalse(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[1])); //Confirm button is gray and disabled. Assert.IsFalse(ShareWindow.IsEnjoyButtonEnable()); ShareWindow.ClickGiveUpEnjoyButton(); 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(); }