public void ViewShareDashboardWidgetGrid01(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(); //Open share window HomePagePanel.ClickShareWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //Check there is title in the window. Assert.AreEqual(input.ExpectedData.messages[0], ShareWindow.GetTitle()); //Check UserA, UserD, UserE. Check receivers realname checkbox. //Exclude userA in user list. ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ReceiveUsers[0]); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[0]); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[1]); ShareWindow.CheckShareUser(dashboard[0].ShareUsers[2]); //The realname display in share to textfield. Assert.AreEqual(3, ShareWindow.GetShareUserNumber()); Assert.IsTrue(ShareWindow.IsShareUserInSendedList(dashboard[0].ShareUsers[0])); Assert.IsTrue(ShareWindow.IsShareUserInSendedList(dashboard[0].ShareUsers[1])); Assert.IsTrue(ShareWindow.IsShareUserInSendedList(dashboard[0].ShareUsers[2])); //Uncheck receivers realname checkbox. ShareWindow.UncheckShareUser(dashboard[0].ShareUsers[0]); TimeManager.ShortPause(); //The realname disappear in sent to textfield. Assert.IsFalse(ShareWindow.IsShareUserInSendedList(dashboard[0].ShareUsers[0])); Assert.AreEqual(2, ShareWindow.GetShareUserNumber()); //Click "X" button from the send to textfield. ShareWindow.ClickRemoveShareUserButton(dashboard[0].ShareUsers[1]); TimeManager.ShortPause(); //The realname disappear in sent to textfield. Assert.IsFalse(ShareWindow.IsShareUserInSendedList(dashboard[0].ShareUsers[1])); Assert.AreEqual(1, ShareWindow.GetShareUserNumber()); //Click CheckAll checkbox. ShareWindow.CheckAllShareUsers(); TimeManager.MediumPause(); //All receivers are checked and display in send to textfield. Assert.IsTrue(ShareWindow.IsAllShareUsersChecked()); ShareWindow.ClickGiveupButton(); TimeManager.ShortPause(); }