Пример #1
0
        public void E2E_Notice()
        {
            // Login as School Adminstrator
            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator);
            Wait.WaitForDocumentReady();
            // Navigate to Manage Notices Screen
            AutomationSugar.NavigateMenu("Tasks", "Communications", "Manage Notices");
            Wait.WaitForDocumentReady();
            //Adding New Notice
            var noticeTriplet    = new ManageNoticeTriplet();
            var noticeDetailPage = noticeTriplet.Create();

            noticeDetailPage.NoticeTitle       = "Notice_" + SeleniumHelper.GenerateRandomString(10);
            noticeDetailPage.NoticeDescription = "Description_" + SeleniumHelper.GenerateRandomString(10);
            //Saving new Notice
            noticeDetailPage.Save();
            Assert.AreEqual(false, noticeDetailPage.IsSuccessMessageDisplayed(), "Notice record saved");
            //Searching the Notice
            noticeTriplet.SearchCriteria.SearchByNoticeName = ("Notice");
            var searchResult     = noticeTriplet.SearchCriteria.Search().FirstOrDefault();
            var manageNoticePage = searchResult.Click <ManageNoticePage>();

            //Delete Notice
            noticeTriplet.Delete();
        }
Пример #2
0
        public void Delete_Notice()
        {
            // Login as School Adminstrator
            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator);
            Wait.WaitForDocumentReady();
            // Navigate to Manage Notices Screen
            AutomationSugar.NavigateMenu("Tasks", "Communications", "Manage Notices");
            Wait.WaitForDocumentReady();
            //Adding New Notice
            var noticeTriplet = new ManageNoticeTriplet();

            //Searching the Notice
            noticeTriplet.SearchCriteria.SearchByNoticeName = ("Notice");
            var searchResult     = noticeTriplet.SearchCriteria.Search().FirstOrDefault();
            var manageNoticePage = searchResult.Click <ManageNoticePage>();

            //Delete Notice
            noticeTriplet.Delete();
        }