Пример #1
0
 //implemented methods
 public override void InputFormFields()
 {
     if (Data.TestWindowName != null)
     {
         TestWindowName.Wait(5).SendKeys(Data.TestWindowName);
     }
     if (Data.Subject != null)
     {
         SubjectSelect.Wait(3).SelectByText(Data.Subject);
     }
     if (Data.GradeLow != null)
     {
         GradeFromSelect.Wait(5);
         GradeFromSelect.Wait(5).SelectByText(Data.GradeLow);
     }
     if (Data.GradeHigh != null)
     {
         GradeToSelect.Wait(5);
         GradeToSelect.Wait(5).SelectByText(Data.GradeHigh);
     }
     if (Data.DateFrom != null)
     {
         DateFrom.Wait(5).SendKeys(Data.DateFrom);
     }
     if (Data.DateTo != null)
     {
         DateTo.Wait(5).SendKeys(Data.DateTo);
     }
 }
Пример #2
0
 //implemented methods
 public override void InputFormFields()
 {
     if (Data.TestId != null)
     {
         //TestId.MouseOverAndClick(TestId);
         TestId.Clear();
         TestId.SendKeys(Data.TestId);
     }
     if (Data.Subject != null)
     {
         SubjectSelect.Wait().SelectByText(Data.Subject);
     }
     if (Data.RecentlyViewedTests != null)
     {
         RecentlyViewedTests.SelectByText(Data.RecentlyViewedTests);
     }
     if (Data.GradeLevelFrom != null)
     {
         GradeFromSelect.Wait().SelectByText(Data.GradeLevelFrom);
     }
     if (Data.GradeLevelTo != null)
     {
         GradeToSelect.Wait().SelectByText(Data.GradeLevelTo);
     }
 }
 public override void InputFormFields()
 {
     TestCategoriesSelect.Wait(5).SelectByText(Data.TestCategory);
     SubjectSelect.Wait().SelectByText(Data.Subject);
     GradeFromSelect.Wait().SelectByText(Data.GradeLow);
     GradeToSelect.Wait().SelectByText(Data.GradeHigh);
 }
Пример #4
0
        //overridden methods

        public override void ClearForm()
        {
            TestNameId.Wait(1).Clear();
            SubjectSelect.Wait(5).SelectByText("All subjects");
            GradeFromSelect.Wait(1).SelectByText("");
            GradeToSelect.Wait(1).SelectByText("");
            UnCheckCompleted();
        }
 //implemented methods
 public override void ClearForm()
 {
     TestWindowName.Clear();
     SubjectSelect.Wait(3).SelectByText("All subjects");
     GradeFromSelect.Wait(5).SelectByText("");
     GradeToSelect.Wait(5).SelectByText("");
     DateFrom.Clear();
     DateTo.Clear();
 }
Пример #6
0
 /// <summary>
 /// select the subject
 /// </summary>
 public void SelectSubject()
 {
     WaitForFrameToDisplay();
     WaitForMainTableToDisplay();
     SubjectSelect.Wait(5).SelectByText(Data.Subject);
     DriverCommands.WaitAndMeasurePageLoadTime(90, 30);
     InitElements();
     WaitForFrameToDisplay();
     WaitForMainTableToDisplay();
     SetSelectedStandardsGroupList();
 }
Пример #7
0
 /// <summary>
 /// select subject
 /// </summary>
 public void SelectSubject()
 {
     SubjectSelect.Wait(1).SelectByText(Data.Subject);
 }
        //implemented methods
        public override void InputFormFields()
        {
            if (Data.TestNameId != null)
            {
                TestNameId.Clear();
                TestNameId.SendKeys(Data.TestNameId);
            }
            if (Data.Subject != null)
            {
                SubjectSelect.Wait().SelectByText(Data.Subject);
            }
            if (Data.GradeLevelFrom != null)
            {
                GradeFromSelect.Wait().SelectByText(Data.GradeLevelFrom);
            }
            if (Data.GradeLevelTo != null)
            {
                GradeToSelect.Wait().SelectByText(Data.GradeLevelTo);
            }
            if (Data.AdminDateRangeFrom != null)
            {
                AdminDateRangeFrom.Clear();
                AdminDateRangeFrom.SendKeys(Data.AdminDateRangeFrom);
            }
            if (Data.AdminDateRangeTo != null)
            {
                AdminDateRangeTo.Clear();
                AdminDateRangeTo.SendKeys(Data.AdminDateRangeTo);
            }

            switch (GridName)
            {
                case ViewPortalResultsGridNames.MyTests:
                    if (isAdvancedSearchExpanded)
                    {
                        if (Data.DataCollectionStatus != null)
                        {
                            DataCollectionStatus.SelectByText(Data.DataCollectionStatus);
                        }

                        if (Data.TestContent != null)
                        {
                            TestContent.Clear();
                            TestContent.SendKeys(Data.TestContent);
                        }

                        if (Data.StandardSet != null)
                        {
                            StandardSet.SelectByText(Data.StandardSet);
                        }

                        if (Data.AdaptiveTests != null)
                        {
                            AdaptiveTests.SelectByText(Data.AdaptiveTests);
                        }
                    }
                    break;
                case ViewPortalResultsGridNames.InProgressTests:
                    if (isAdvancedSearchExpanded)
                    {
                        if (Data.TestContent != null)
                        {
                            TestContent.Clear();
                            TestContent.SendKeys(Data.TestContent);
                        }

                        if (Data.TestCreatorFirstName != null)
                        {
                            TestCreatorFirstName.Clear();
                            TestCreatorFirstName.SendKeys(Data.TestCreatorFirstName);
                        }

                        if (Data.TestCreatorLastName != null)
                        {
                            TestCreatorLastName.Clear();
                            TestCreatorLastName.SendKeys(Data.TestCreatorLastName);
                        }

                        if (Data.StandardSet != null)
                        {
                            StandardSet.SelectByText(Data.StandardSet);
                        }

                        if (Data.AdaptiveTests != null)
                        {
                            AdaptiveTests.SelectByText(Data.AdaptiveTests);
                        }
                    }
                    else
                    {
                        if (Data.DataCollectionStatus != null)
                        {
                            DataCollectionStatus.SelectByText(Data.DataCollectionStatus);
                        }
                    }
                    break;
                case ViewPortalResultsGridNames.ScheduledTests:
                    if (isAdvancedSearchExpanded)
                    {
                        if (Data.DataCollectionStatus != null)
                        {
                            DataCollectionStatus.SelectByText(Data.DataCollectionStatus);
                        }

                        if (Data.TestContent != null)
                        {
                            TestContent.Clear();
                            TestContent.SendKeys(Data.TestContent);
                        }

                        if (Data.TestCreatorFirstName != null)
                        {
                            TestCreatorFirstName.Clear();
                            TestCreatorFirstName.SendKeys(Data.TestCreatorFirstName);
                        }

                        if (Data.TestCreatorLastName != null)
                        {
                            TestCreatorLastName.Clear();
                            TestCreatorLastName.SendKeys(Data.TestCreatorLastName);
                        }

                        if (Data.StandardSet != null)
                        {
                            StandardSet.SelectByText(Data.StandardSet);
                        }

                        if (Data.AdaptiveTests != null)
                        {
                            AdaptiveTests.SelectByText(Data.AdaptiveTests);
                        }
                    }
                    break;
                case ViewPortalResultsGridNames.RecommendedTests:
                    if (isAdvancedSearchExpanded)
                    {
                        if (Data.TestContent != null)
                        {
                            TestContent.Clear();
                            TestContent.SendKeys(Data.TestContent);
                        }

                        if (Data.TestCreatorFirstName != null)
                        {
                            TestCreatorFirstName.Clear();
                            TestCreatorFirstName.SendKeys(Data.TestCreatorFirstName);
                        }

                        if (Data.TestCreatorLastName != null)
                        {
                            TestCreatorLastName.Clear();
                            TestCreatorLastName.SendKeys(Data.TestCreatorLastName);
                        }

                        if (Data.StandardSet != null)
                        {
                            StandardSet.SelectByText(Data.StandardSet);
                        }

                        if (Data.AdaptiveTests != null)
                        {
                            AdaptiveTests.SelectByText(Data.AdaptiveTests);
                        }
                    }
                    else
                    {
                        if (Data.TestCategory != null)
                        {
                            TestCategory.SelectByText(Data.TestCategory);
                        }
                    }
                    break;
                default:
                    throw new ArgumentOutOfRangeException();
            }
        }
Пример #9
0
        public override void InputFormFields()
        {
            //if (string.IsNullOrWhiteSpace(Data.Title))
            //{
            //    Title_textbox.SendKeys(Data.Title);
            //    //Data.Title = string.Format("Web Test Passage: {0}", DateTime.Now.ToString("yyMMddMMssfff"));
            //}

            if (Data.Title != null)
            {
                Title_textbox.Wait(5).Clear();
                Title_textbox.SendKeys(Data.Title);
            }
            if (Data.Subject != null)
            {
                SubjectSelect.Wait(5).SelectByText(Data.Subject);
            }
            if (Data.GradeLow != null)
            {
                GradeFromSelect.Wait(5).SelectByText(Data.GradeLow);
                this.DriverCommands.WaitAndMeasurePageLoadTime();
                InitElements();
            }
            if (Data.GradeHigh != null)
            {
                GradeToSelect.Wait(5).SelectByText(Data.GradeHigh);
                this.DriverCommands.WaitAndMeasurePageLoadTime();
                InitElements();
            }

            //HideOptionalProperties_link.Wait(5).Click();
            SelectShowOptionalProperties();

            if (Data.AdditionalPassageID != null)
            {
                AdditionalPassageID_textbox.Wait(5).Clear();
                AdditionalPassageID_textbox.SendKeys(Data.AdditionalPassageID);
            }
            if (Data.AssetType != null)
            {
                AssetType_textbox.Wait(5).Clear();
                AssetType_textbox.SendKeys(Data.AssetType);
            }
            if (Data.Author != null)
            {
                Author_textbox.Wait(5).Clear();
                Author_textbox.SendKeys(Data.Author);
            }
            if (Data.CourseID != null)
            {
                CourseID_textbox.Wait(5).Clear();
                CourseID_textbox.SendKeys(Data.CourseID);
            }
            if (Data.FleschKincaid != null)
            {
                FleschKincaid_textbox.SendKeys(Data.FleschKincaid);
            }
            if (Data.Genre != null)
            {
                Genre_textbox.Wait(5).Clear();
                Genre_textbox.SendKeys(Data.Genre);
            }
            if (Data.QuestionLanguage != null)
            {
                QuestionLanguage_dropdown.Wait(5).SelectByText(Data.QuestionLanguage);
                this.DriverCommands.WaitAndMeasurePageLoadTime();
                InitElements();
                //when selecting a different language, the page reloads and hides the optional properties
                SelectShowOptionalProperties();
            }
            if (Data.LexileCode != null) // new, implemented in 160
            {
                LexileCode_dropdown.Wait(5).SelectByText(Data.LexileCode);
            }
            if (Data.Lexile != null)
            {
                Lexile_textbox.Wait(5).Clear();
                Lexile_textbox.SendKeys(Data.Lexile);
            }
            // commented for 160 since checkbox is removed
            //if (Data.BeginningReader != null)
            //{
            //    if (Data.BeginningReader.Equals("1"))
            //    {
            //        SelectCourseName(BeginningReader_chkbox, true);
            //    }
            //}
            if (Data.Publisher != null)
            {
                Publisher_textbox.Wait(5).Clear();
                Publisher_textbox.SendKeys(Data.Publisher);
            }
            if (Data.ReadingMaturityMetric != null)
            {
                ReadingMaturityMetric_textbox.Wait(5).SendKeys(Data.ReadingMaturityMetric);
            }
            if (Data.Topic != null)
            {
                Topic_textbox.Wait(5).Clear();
                Topic_textbox.SendKeys(Data.Topic);
            }
            if (Data.Type != null)
            {
                Type_dropdown.Wait(5).SelectByText(Data.Type);
            }
            if (Data.Year != null)
            {
                Year_textbox.Wait(5).Clear();
                Year_textbox.SendKeys(Data.Year);
            }
            if (Data.Batch != null)
            {
                Batch_textbox.Wait(5).Clear();
                Batch_textbox.Wait(5).SendKeys(Data.Batch);
            }
            if (Data.PassageText != null)
            {
                this.Utilities.DoFileUpload(Editor, Data.AutoItData, Data.FileUploadTree, Data.PassageText);

                Editor.ContentData = Data.PassageText;
                Editor.InputFormFields();
            }
        }
        //implemented methods
        public override void InputFormFields()
        {
            if (Data.TestId != null)
            {
                TestId.Name.Wait(3).Clear();
                TestId.Name.SendKeys(Data.TestId);
            }
            if (Data.Subject != null)
            {
                SubjectSelect.Wait(5).SelectByText(Data.Subject);
            }
            if (Data.GradeLow != null)
            {
                //GradeLevel.From.Wait(5);
                GradeFromSelect.Wait(5).SelectByText(Data.GradeLow);
                DriverCommands.WaitAndMeasurePageLoadTime(90, 30);
                InitElements();
            }
            if (Data.GradeHigh != null)
            {
                //GradeLevel.To.Wait(5);
                GradeToSelect.Wait(5).SelectByText(Data.GradeHigh);
                DriverCommands.WaitAndMeasurePageLoadTime(90, 30);
                InitElements();
            }

            /* only applies to district, but not teachers
             * if (Data.InstitutionSource != null)
             * {
             *  InstitutionSource.Clear();
             *  InstitutionSource.SendKeys(Data.InstitutionSource);
             * }
             */
            if (Data.TestCategory != null)
            {
                TestCategory.SelectByText(Data.TestCategory);
            }
            if (Data.ScoreType != null)
            {
                ScoreType.SelectByText(Data.ScoreType);
            }
            if (Data.PreferredStandardsDocument != null)
            {
                PreferredStandardsDocument.SelectByText(Data.PreferredStandardsDocument);
            }

            ExpandInitialItemSettings();
            //EnableTextFormatting.UseItemSettings.Wait(7).Click();
            EnableTextFormatting.UseItemSettings.Wait(5).Click();

            if (Data.EnableTextFormattingOpenResponse != null)
            {
                if (Data.EnableTextFormattingOpenResponse == "1")
                {
                    SelectEnableTextFormattingOpenResponseItems();
                    if (Data.EnableEquationEditor != null)
                    {
                        if (Data.EnableEquationEditor)
                        {
                            CheckEnableEquationEditor();
                        }
                    }
                }
            }
            if (Data.DisableTextFormattingOpenResponse != null)
            {
                if (Data.DisableTextFormattingOpenResponse == "1")
                {
                    SelectDisableTextFormattingOpenResponseItems();
                }
            }

            AnswerChoiceLayout.UserItemSettings.Click();

            if (Data.EnableYes != null)
            {
                if (Data.EnableYes == "1")
                {
                    SelectEnableManipulativesYes();

                    if (Data.Compass != null)
                    {
                        if (Data.Compass)
                        {
                            CheckCompass();
                        }
                    }
                    if (Data.CentimeterRuler != null)
                    {
                        if (Data.CentimeterRuler)
                        {
                            CheckCentimeterRuler();
                        }
                    }
                    if (Data.InchRuler != null)
                    {
                        if (Data.InchRuler)
                        {
                            CheckInchRuler();
                        }
                    }
                    if (Data.UnitRuler != null)
                    {
                        if (Data.UnitRuler)
                        {
                            CheckUnitRuler();
                        }
                    }

                    if (Data.Protractor != null)
                    {
                        if (Data.Protractor = true)
                        {
                            CheckProtractor();
                        }
                    }
                }
            }
            else if (Data.EnableNo != null)
            {
                if (Data.EnableNo == "1")
                {
                    SelectEnableManipulativesNo();
                }
            }
            else
            {
                SelectEnableManipulativesUseItemSettings();
            }

            ExpandTestItemSettings();

            if (Data.StudentCommentEndOfTest)
            {
                CheckStudentCommentEndOfTest();
            }

            TeacherCommentsNo.Wait(3).Click();
            StudentSelfAssessmentNo.Click();
            HideItemContentNo.Click();
        }