Exemplo n.º 1
0
        public void VerifyDefaultMyClassFunctionality()
        {
            WebDriverWait waiter = new WebDriverWait(WebContext.WebDriver, TimeSpan.FromSeconds(MarksheetConstants.Timeout));

            String[] featureList = { "ClassPicker" };
            FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(featureList, FeatureBee.FeatureBeeLogin.iSIMSUserType.ClassTeacher);

            var assessmentQuickLinks = new AssessmentQuickLinks();

            // Check if class teacher quick links exist
            assessmentQuickLinks.CheckIfAssessmentQuickLinkExists(SeleniumHelper.iSIMSUserType.ClassTeacher);

            // Wait for the ajax request to complete
            WaitUntillAjaxRequestCompleted();

            string selectedClass = assessmentQuickLinks.SelectFirstClassFromQuickLink();

            // Open Assessment Quick Links Dropdown for class teacher
            assessmentQuickLinks.OpenAssessmentQuickLinksDropdown(SeleniumHelper.iSIMSUserType.ClassTeacher);

            assessmentQuickLinks.ClickAndVerifyPOSMarksheetLink(SeleniumHelper.iSIMSUserType.ClassTeacher);

            POSSearchPannel possearchpanel = new POSSearchPannel();

            //verifies that the default class set in cohort is the one selected from Class picker
            Assert.IsTrue(possearchpanel.VerifySelectedClass(selectedClass));
        }
Exemplo n.º 2
0
        public void QuickLinkForTopic()
        {
            WebDriverWait waiter = new WebDriverWait(WebContext.WebDriver, TimeSpan.FromSeconds(MarksheetConstants.Timeout));

            String[] featureList = { "Curriculum" };
            FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(featureList, FeatureBee.FeatureBeeLogin.iSIMSUserType.AssessmentCoordinator);

            var assessmentQuickLinks = new AssessmentQuickLinks();

            // Check if Assessment Quick links exists
            assessmentQuickLinks.CheckIfAssessmentQuickLinkExists(SeleniumHelper.iSIMSUserType.AssessmentCoordinator);

            // Wait for the ajax request to complete
            WaitUntillAjaxRequestCompleted();

            // Open Assessment Quick Links Dropdown for class teacher
            assessmentQuickLinks.OpenAssessmentQuickLinksDropdown(SeleniumHelper.iSIMSUserType.AssessmentCoordinator);

            assessmentQuickLinks.ClickAndVerifyTopic(SeleniumHelper.iSIMSUserType.AssessmentCoordinator);
            TopicDataMaintainance topicDataMaintainance = new TopicDataMaintainance();
            string TopicTitle = topicDataMaintainance.GetTopicTitle();

            Assert.AreEqual(TopicTitle, "Topic");
        }
Exemplo n.º 3
0
        public void QuickLinkForPOS()
        {
            WebDriverWait waiter = new WebDriverWait(WebContext.WebDriver, TimeSpan.FromSeconds(MarksheetConstants.Timeout));

            String[] featureList = { "Curriculum" };
            FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(featureList, FeatureBee.FeatureBeeLogin.iSIMSUserType.AssessmentCoordinator);

            var assessmentQuickLinks = new AssessmentQuickLinks();

            // Check if Assessment Quick links exists
            assessmentQuickLinks.CheckIfAssessmentQuickLinkExists(SeleniumHelper.iSIMSUserType.AssessmentCoordinator);

            // Wait for the ajax request to complete
            WaitUntillAjaxRequestCompleted();

            // Open Assessment Quick Links Dropdown for class teacher
            assessmentQuickLinks.OpenAssessmentQuickLinksDropdown(SeleniumHelper.iSIMSUserType.AssessmentCoordinator);

            assessmentQuickLinks.ClickAndVerifyPOSMarksheetLink(SeleniumHelper.iSIMSUserType.AssessmentCoordinator);
            POSSearchPannel posSearchPannel = new POSSearchPannel();
            string          PosTitle        = posSearchPannel.GetPOSTitle();

            Assert.AreEqual(PosTitle, "Programme of Study Tracking");
        }