Пример #1
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);
        }
Пример #2
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"));
        }