Exemple #1
0
        public void CreateMyTestActivityUsingQuestion(
            String linkName, Question.QuestionTypeEnum questionTypeEnum)
        {
            //Logger entry
            Logger.LogMethodEntry("CreateNewTest", "CreateMyTestActivityUsingQuestion",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Create New Test
            new MyTestGridUxPage().ClickOnLinkToSelect();
            //Created Page Class Object
            var paperTestUxPage = new PaperTestUxPage();

            //Select Create Question
            paperTestUxPage.SelectCreateQuestion(questionTypeEnum);
            switch (questionTypeEnum)
            {
            case Question.QuestionTypeEnum.TrueFalse:
                //Create MyTest True and False Question
                new TrueFalsePage().CreateMyTestQuestion();
                break;

            case Question.QuestionTypeEnum.Essay:
                new EssayPage().CreateEssayQuestion();
                break;
            }
            //Save The MyTest Activity
            paperTestUxPage.SaveTheMyTestActivity();
            //Logger exit
            Logger.LogMethodExit("CreateNewTest", "CreateMyTestActivityUsingQuestion",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Exemple #2
0
        public void EnterNumberInTheNumberOfRandomQuestionsToAdd(
            int randomQuestionNumber)
        {
            //Logger entry
            Logger.LogMethodEntry("CreateNewTest",
                                  "EnterNumberInTheNumberOfRandomQuestionsToAdd",
                                  base.IsTakeScreenShotDuringEntryExit);
            PaperTestUxPage paperTextpageObject = new PaperTestUxPage();

            //Enter Random number to add question in My test
            paperTextpageObject.EnterRandomNumberToAddQuestion(
                randomQuestionNumber);
            //Validate popup window
            paperTextpageObject.HandlePopupWindowOnMyTest(CreateNewTestResource.
                                                          CreateNewTest_Popup_Pegasus_Window_Name);
            //Click on save button to save My Test on view all tests pane
            paperTextpageObject.SaveTheMyTestActivity();
            //Logger exit
            Logger.LogMethodExit("CreateNewTest",
                                 "EnterNumberInTheNumberOfRandomQuestionsToAdd",
                                 base.IsTakeScreenShotDuringEntryExit);
        }