Esempio n. 1
0
        private Customstatements DisplayStatements()
        {
            NavigateToManageStatements();

            Customstatements customStatements = new Customstatements();

            //Select a level
            customStatements.SelectGroup("Year 2");
            //Select a Subject
            customStatements.SelectSubject("English: Writing");
            //Select a Strand
            customStatements.SelectStrand("Handwriting & Presentation");

            //Search for the statemenst based on the strand selected
            customStatements = customStatements.Search();

            MarksheetGridHelper.FindColumnByColumnName("Name");
            MarksheetGridHelper.FindColumnByColumnName("Description");
            MarksheetGridHelper.FindColumnByColumnName("Custom Description");
            MarksheetGridHelper.FindColumnByColumnName("Use Custom Description");
            List <IWebElement> columnList = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("Custom Description");

            string entertext = "learning the grammar for years 2  English Appendix 2";

            columnList.First().Click();
            MarksheetGridHelper.GetTextAreEditor().SendKeys(entertext);
            MarksheetGridHelper.PerformEnterKeyBehavior();

            List <IWebElement> useSchoolDescriptionlist = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("Use Custom Description");

            useSchoolDescriptionlist.First().Click();
            customStatements.UseSchoolDescriptionClick(true);
            return(customStatements);
        }
Esempio n. 2
0
        public void SubjectSummativeColumns()
        {
            NavigateToPOSMarksheet();

            //Search for a POS Marksheet
            POSSearchPannel possearchpanel = new POSSearchPannel();

            //Select a Group
            possearchpanel = possearchpanel.SelectGroup("Year 1");
            //Select a Subject
            possearchpanel = possearchpanel.SelectSubject("English: Reading");
            //Select a Strand
            possearchpanel = possearchpanel.SelectStrand("Comprehension");
            //Select a Assessment Period
            possearchpanel = possearchpanel.SelectAssessmentPeriod("Year 1 Autumn");
            //Select a Year Group
            possearchpanel = possearchpanel.OpenYearGroupSelectionDropdown("Year  1");
            //possearchpanel.SelectYearGroup("Year 1");
            //Click on Search Button
            POSDataMaintainanceScreen posdatamaintainance = possearchpanel.Search();

            Thread.Sleep(3000);

            //Verifying Toogle Functionality for Summative Columns
            POSToolbar postoolbar = new POSToolbar();

            postoolbar          = postoolbar.OpenToggleMenuList();
            posdatamaintainance = postoolbar.ClickSubjectSummativecolumnsToggleOption(true);
            //Close the toggle dialog
            postoolbar.ToggleButton.Click();
            String Columnname = MarksheetGridHelper.GetColumnName("En Read Overall");

            Assert.IsTrue(Columnname.StartsWith("En Read Overall"));
            Columnname = MarksheetGridHelper.GetColumnName("En Read Strengths");
            Assert.IsTrue(Columnname.StartsWith("En Read Strengths"));
            Columnname = MarksheetGridHelper.GetColumnName("En Read Next Steps");
            Assert.IsTrue(Columnname.StartsWith("En Read Next Steps"));

            List <IWebElement> columnList = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("En Read Overall");

            columnList.First().Click();
            List <string> GradeDetails = new List <string>
            {
                "1M", "2S", "3D", "4U", "1E", "2M", "2S", "2D", "2M", "2S"
            };

            for (int i = 0; i < GradeDetails.Count; i++)
            {
                MarksheetGridHelper.GetEditor().SendKeys(GradeDetails[i]);
                MarksheetGridHelper.PerformEnterKeyBehavior();
            }

            postoolbar.ClickSaveButton();
            //    postoolbar.SaveMarksheetAssertionSuccess();
            Thread.Sleep(3000);
        }
Esempio n. 3
0
        public void GenerateTopicTemplate()
        {
            NavigateToManageTopics();

            TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance();

            // Create New Topic
            topicdatamaintainance = topicdatamaintainance.ClickCreateButton();
            // Generating Basice Details
            string topicName = "Selenium Test Topic " + topicdatamaintainance.GenerateRandomString(10);

            topicdatamaintainance.SetTopicName(topicName);

            topicdatamaintainance.SetTopicDescription(topicName + " Description");

            SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, YearGroupSelected);
            SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicTermDropdownInitiator, TermSelected);

            //////Saving the Topic
            topicdatamaintainance = topicdatamaintainance.ClickDialogOkButton();
            topicdatamaintainance.SaveTopicSuccess();

            Thread.Sleep(3000);
            //Select Statement
            topicdatamaintainance.SelectStatement(5);

            //Allocate Statement
            topicdatamaintainance.AllocateStatmentByName(topicName);

            //Generate Template for created Topic
            topicdatamaintainance = topicdatamaintainance.SelectTopicDropDownByName(topicName);
            topicdatamaintainance.GenerateTemplateSelecteTopicClick(topicName);

            //Open Marksheet
            topicdatamaintainance.OpenPosTemplate(topicName);
            POSDataMaintainanceScreen posDataMaintainanceScreen = new POSDataMaintainanceScreen();

            posDataMaintainanceScreen.SearchFilterButtonClick();
            posDataMaintainanceScreen.SelectMarksheetColumnName("En Reading Comp Stat 1.01");
            List <IWebElement> columnList = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("En Reading Comp Stat 1.01");
        }
Esempio n. 4
0
        public void POSToogleFunctionality()
        {
            NavigateToPOSMarksheet();
            //Search for a POS Marksheet
            POSSearchPannel possearchpanel = new POSSearchPannel();

            //Select a Group
            possearchpanel = possearchpanel.SelectGroup("Year 2");
            //Select a Subject
            possearchpanel = possearchpanel.SelectSubject("English: Reading");
            //Select a Strand
            possearchpanel = possearchpanel.SelectStrand("Comprehension");
            //Select a Assessment Period
            possearchpanel = possearchpanel.SelectAssessmentPeriod("Year 2 Autumn");
            //Select a Year Group
            possearchpanel = possearchpanel.OpenYearGroupSelectionDropdown("Year  2");

            //Click on Search Button
            POSDataMaintainanceScreen posdatamaintainance = possearchpanel.Search();
            //Verify Summative and Summary Columns are present on the screen
            POSToolbar postoolbar = new POSToolbar();

            postoolbar          = postoolbar.OpenToggleMenuList();
            posdatamaintainance = postoolbar.ClickSummarycolumnsToggleOption(true);
            Assert.IsTrue(posdatamaintainance.VerifyColumnPresent("% of PoS Expectations Achieved"));
            Assert.IsTrue(posdatamaintainance.VerifyColumnPresent("% of School Expectations Achieved"));

            //Verifying Toogle Functionality for Summative Columns
            posdatamaintainance = postoolbar.ClickSubjectSummativecolumnsToggleOption(true);

            postoolbar.ToggleButton.Click();

            String Columnname = MarksheetGridHelper.GetColumnName("En Read Overall");

            Assert.IsTrue(Columnname.StartsWith("En Read Overall"));
            Columnname = MarksheetGridHelper.GetColumnName("En Read Strengths");
            Assert.IsTrue(Columnname.StartsWith("En Read Strengths"));
            Columnname = MarksheetGridHelper.GetColumnName("En Read Next Steps");
            Assert.IsTrue(Columnname.StartsWith("En Read Next Steps"));
        }
Esempio n. 5
0
        public void DisplayPOSStatementsForSchoolExpectations()
        {
            WebDriverWait waiter = new WebDriverWait(WebContext.WebDriver, TimeSpan.FromSeconds(MarksheetConstants.Timeout));

            //Login
            NavigateToManageStatements();

            ManageSchoolExpecations manageSchoolExpecations = new ManageSchoolExpecations();

            //Select a level
            manageSchoolExpecations.SelectGroup("Year 2");
            //Select a Subject
            manageSchoolExpecations.SelectSubject("English: Reading");
            //Select a Strand
            manageSchoolExpecations.SelectStrand("Comprehension");

            //Search for the statemenst based on the strand selected
            manageSchoolExpecations = manageSchoolExpecations.Search();

            MarksheetGridHelper.FindColumnByColumnName("Statement Name");
            MarksheetGridHelper.FindColumnByColumnName("Description");
            MarksheetGridHelper.FindColumnByColumnName("DFE Expected");
            List <IWebElement> columnList = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("Threshold");

            columnList.First().Click();
            List <string> GradeDetails = new List <string>
            {
                "M"
            };

            for (int i = 0; i < GradeDetails.Count; i++)
            {
                MarksheetGridHelper.GetEditor().SendKeys(GradeDetails[i]);
                MarksheetGridHelper.PerformEnterKeyBehavior();
            }
        }
Esempio n. 6
0
        public void CellNavigationOrientationTest()
        {
            bool isVerticalState = true;

            NavigateToPOSMarksheet();
            //Search for a POS Marksheet
            POSSearchPannel possearchpanel = new POSSearchPannel();

            //Select a Group
            possearchpanel = possearchpanel.SelectGroup("Year 1");
            //Select a Subject
            possearchpanel = possearchpanel.SelectSubject("English: Reading");
            //Select a Strand
            possearchpanel = possearchpanel.SelectStrand("Comprehension");
            //Select a Assessment Period
            possearchpanel = possearchpanel.SelectAssessmentPeriod("Year 1 Autumn");
            //Select a Year Group
            possearchpanel = possearchpanel.OpenYearGroupSelectionDropdown("Year  1");
            Thread.Sleep(1500);

            //Click on Search Button
            POSDataMaintainanceScreen posdatamaintainance = possearchpanel.Search();
            POSToolbar postoolbar = new POSToolbar();

            IJavaScriptExecutor js = WebContext.WebDriver as IJavaScriptExecutor;

            postoolbar.ClickPOSMarksheetCellNavigationDropdown();

            isVerticalState = postoolbar.CheckStateofCellNavigation();

            if (isVerticalState)
            {
                postoolbar.ClickHorizontalOrientation();
            }
            else
            {
                postoolbar.ClickVerticalOrientation();
            }

            MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS(string.Empty)[0].Click();
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
            Thread.Sleep(5);
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
            Thread.Sleep(5);
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
            Thread.Sleep(5);
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
            Thread.Sleep(5);
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);

            postoolbar.ClickPOSMarksheetCellNavigationDropdown();
            isVerticalState = postoolbar.CheckStateofCellNavigation();

            if (isVerticalState)
            {
                postoolbar.ClickHorizontalOrientation();
            }
            else
            {
                postoolbar.ClickVerticalOrientation();
            }

            //MarksheetGridHelper.FindCellsOfColumnByColumnName("2 Decimal Column")[2].Click();
            MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS(string.Empty)[0].Click();
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
            Thread.Sleep(5);
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
            Thread.Sleep(5);
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
            Thread.Sleep(5);
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
            Thread.Sleep(5);
            MarksheetGridHelper.GetEditor().SendKeys(Keys.Return);
        }
Esempio n. 7
0
        public void WalesSavePOSMarksheet()
        {
            NavigateToPOSMarksheet();
            //Search for a POS Marksheet
            POSSearchPannel possearchpanel = new POSSearchPannel();

            //Select a Group
            possearchpanel = possearchpanel.SelectGroup("Year 1");
            //Select a Subject
            possearchpanel = possearchpanel.SelectSubject("Literacy : Reading : Response & analysis");
            //Select a Strand
            possearchpanel = possearchpanel.SelectStrand("Responding to what has been read");
            //Select a Assessment Period
            possearchpanel = possearchpanel.SelectAssessmentPeriod("Year 1 Autumn");
            //Select a Year Group
            possearchpanel = possearchpanel.OpenYearGroupSelectionDropdown("Year  1");
            Thread.Sleep(1500);
            //Click on Search Button
            POSDataMaintainanceScreen posdatamaintainance = possearchpanel.Search();

            Thread.Sleep(8000);
            POSToolbar postoolbar = new POSToolbar();

            postoolbar          = postoolbar.OpenToggleMenuList();
            posdatamaintainance = postoolbar.ClickSubjectSummativecolumnsToggleOption(false);
            posdatamaintainance = postoolbar.ClickSummativecolumnsToggleOption(false);
            posdatamaintainance = postoolbar.ClickSummarycolumnsToggleOption(false);
            //      posdatamaintainance.SelectMarksheetColumnName("Lit - Reading - Response and analysis 1.RA2");

            List <IWebElement> columnList = MarksheetGridHelper.FindCellsOfColumnByColumnName("Lit - Reading - Response and analysis 1.RA2");

            columnList.First().Click();
            List <string> GradeDetails = new List <string>
            {
                "Y", "D", "N"
            };

            for (int i = 0; i < GradeDetails.Count; i++)
            {
                MarksheetGridHelper.GetEditor().SendKeys(GradeDetails[i]);
                MarksheetGridHelper.PerformEnterKeyBehavior();
            }

            //   POSToolbar postoolbar = new POSToolbar();
            postoolbar.ClickSaveButton();
            postoolbar.waitforSavemessagetoAppear();

            //Reload the results again by clicking on search to verify results are persisted
            columnList.Clear();
            posdatamaintainance.SearchFilterButtonClick();
            possearchpanel.Search();
            columnList = MarksheetGridHelper.FindCellsOfColumnByColumnName("Lit - Reading - Response and analysis 1.RA2");
            columnList.First().Click();

            for (int i = 0; i < GradeDetails.Count; i++)
            {
                String getCellValue = MarksheetGridHelper.GetEditor().GetValue();
                Assert.AreEqual(getCellValue, GradeDetails[i]);
                MarksheetGridHelper.GetEditor().Clear();
                MarksheetGridHelper.PerformEnterKeyBehavior();
            }
            postoolbar.ClickSaveButton();
            postoolbar.waitforSavemessagetoAppear();
        }
Esempio n. 8
0
        public void SaveSchoolExpectations()
        {
            WebDriverWait waiter = new WebDriverWait(WebContext.WebDriver, TimeSpan.FromSeconds(MarksheetConstants.Timeout));

            //Login
            NavigateToManageStatements();
            ManageSchoolExpecations manageSchoolExpecations = new ManageSchoolExpecations();

            //Select a level
            manageSchoolExpecations.SelectGroup("Year 2");
            //Select a Subject
            manageSchoolExpecations.SelectSubject("English: Reading");
            //Select a Strand
            manageSchoolExpecations.SelectStrand("Comprehension");

            //Search for the statemenst based on the strand selected
            manageSchoolExpecations = manageSchoolExpecations.Search();

            MarksheetGridHelper.FindColumnByColumnName("Statement Name");
            MarksheetGridHelper.FindColumnByColumnName("Description");
            MarksheetGridHelper.FindColumnByColumnName("DFE Expected");
            List <IWebElement> columnList = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("Threshold");

            columnList.First().Click();
            List <string> GradeDetails = new List <string>
            {
                "S"
            };

            for (int i = 0; i < GradeDetails.Count; i++)
            {
                String presentValue = MarksheetGridHelper.GetEditor().GetValue();
                if (presentValue != "")
                {
                    break;
                }
                else
                {
                    MarksheetGridHelper.GetEditor().Clear();
                    MarksheetGridHelper.GetEditor().SendKeys(GradeDetails[i]);
                    MarksheetGridHelper.PerformEnterKeyBehavior();
                    manageSchoolExpecations.Save();
                    manageSchoolExpecations.waitforSavemessagetoAppear();
                }
            }

            AutomationSugar.NavigateMenu("Tasks", "Assessment", "Programme of Study");
            //Search for a POS Marksheet
            POSSearchPannel possearchpanel = new POSSearchPannel();

            //Select a Group
            possearchpanel = possearchpanel.SelectGroup("Year 2");
            WaitUntillAjaxRequestCompleted();
            //Select a Subject
            possearchpanel = possearchpanel.SelectSubject("English: Reading");
            WaitUntillAjaxRequestCompleted();
            //Select a Strand
            possearchpanel = possearchpanel.SelectStrand("Comprehension");

            ////Select a Assessment Period
            //possearchpanel = possearchpanel.SelectAssessmentPeriod("Year 2 Autumn");
            ////Select a Year Group
            //possearchpanel = possearchpanel.OpenYearGroupSelectionDropdown("Year  2");
            //Click on Search Button
            POSDataMaintainanceScreen posdatamaintainance = possearchpanel.Search();

            Thread.Sleep(3000);

            //It checks whether a column by below name with School Expecattion exists
            List <IWebElement> columnListPOS1 = MarksheetGridHelper.FindCellsOfColumnByColumnNamePOSExpectation("En Compre S 2.01", "PoS & School Expectation");
        }
Esempio n. 9
0
        public void VerifyCustomSchoolDescription()
        {
            NavigateToManageStatements();

            Customstatements customStatements = new Customstatements();

            //Select a level
            customStatements.SelectGroup("Year 2");
            //Select a Subject
            customStatements.SelectSubject("English: Reading");
            //Select a Strand
            customStatements.SelectStrand("Word Reading");

            //Search for the statemenst based on the strand selected
            customStatements = customStatements.Search();

            MarksheetGridHelper.FindColumnByColumnName("Name");
            MarksheetGridHelper.FindColumnByColumnName("Description");
            MarksheetGridHelper.FindColumnByColumnName("Custom Description");
            MarksheetGridHelper.FindColumnByColumnName("Use Custom Description");
            List <IWebElement> columnList = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("Custom Description");

            string entertext = MarksheetGridHelper.GenerateRandomString(10);

            columnList.First().Click();
            MarksheetGridHelper.GetTextAreEditor().SendKeys(entertext);
            MarksheetGridHelper.PerformEnterKeyBehavior();

            List <IWebElement> useSchoolDescriptionlist = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("Use Custom Description");

            useSchoolDescriptionlist.First().Click();
            customStatements.UseSchoolDescriptionClick(true);
            customStatements.Save();
            customStatements.waitforSavemessagetoAppear();

            AutomationSugar.NavigateMenu("Tasks", "Assessment", "Programme of Study");
            //Search for a POS Marksheet
            POSSearchPannel possearchpanel = new POSSearchPannel();

            //Select a View
            possearchpanel = possearchpanel.SelectView("Scheme");
            //Select a Scheme
            possearchpanel = possearchpanel.SelectScheme("DFE National Curriculum");
            //Select a Group
            possearchpanel = possearchpanel.SelectGroup("Year 2");
            //Select a Subject
            possearchpanel = possearchpanel.SelectSubject("English: Reading");
            //Select a Strand
            possearchpanel = possearchpanel.SelectStrand("Word Reading");

            //Click on Search Button
            POSDataMaintainanceScreen posdatamaintainance = possearchpanel.Search();

            IWebElement columnName = MarksheetGridHelper.FindColumnByColumnName("En Word Read S 2.01");

            string[] parts = columnName.Text.Split('\n');
            if (parts != null && parts[1] != null)
            {
                string[] columnDesc    = parts[1].Split('\r');
                string   textTocompare = entertext.Replace(" ", string.Empty).ToLower();

                Assert.IsTrue(columnDesc[0].Replace(" ", string.Empty).ToLower().Contains(textTocompare));
            }
        }