public void TC_GoToNotificationPage()
        {
            Page_Login plogin = new Page_Login();

            plogin.Login();
            Page_HAPrompt haprompt = new Page_HAPrompt();

            haprompt.GoToDashboard();
            System.Threading.Thread.Sleep(8000);
            Page_Notifications pn = new Page_Notifications();

            pn.ClickViewAllLink();
        }
        public void TC_VerifyNotification()
        {
            Page_Notifications pn     = new Page_Notifications();
            List <string[]>    result = pn.VerifyAllNotifications();

            Assert.Multiple(() =>
            {
                for (int i = 0; i < result.Count; i++)
                {
                    bool textmatch = Convert.ToBoolean(result.ElementAt(i)[1]);
                    string msg     = result.ElementAt(i)[0];
                    Assert.IsTrue(textmatch, msg);
                }
            }
                            );
            Common logout = new Common();

            logout.LogOut();
        }
Esempio n. 3
0
        public void TC_Notifications()
        {
            SeleniumKeywords.RefreshPage();
            System.Threading.Thread.Sleep(3000);

            Page_Notifications pn = new Page_Notifications();

            pn.ClickViewAllLink();
            List <string[]> result = pn.VerifyAllNotifications();

            Assert.Multiple(() =>
            {
                for (int i = 0; i < result.Count; i++)
                {
                    bool textmatch = Convert.ToBoolean(result.ElementAt(i)[1]);
                    string msg     = result.ElementAt(i)[0];
                    Assert.IsTrue(textmatch, msg);
                }
            }
                            );
        }