コード例 #1
0
        public void CreateGraderItActivity(
            Activity.ActivityTypeEnum activityTypeEnum,
            Activity.ActivityBehavioralModesEnum behavioralModeEnum)
        {
            //Create GraderIT Activity
            Logger.LogMethodEntry("CreateActivity", "CreateGraderITActivity",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Create Object for RandomTopicList Page
            RandomTopicListPage randomTopicListPage = new RandomTopicListPage();
            //Create Object for AutoGrader Page
            AutoGraderPage autoGraderPage = new AutoGraderPage();
            //Create Object for addAssessment Page
            AddAssessmentPage addAssessmentPage = new AddAssessmentPage();

            //Enter Activity Details and Click on Add Question Link
            addAssessmentPage.CreateSimGraderITActivity(
                activityTypeEnum, behavioralModeEnum);
            //Click On Add Question Link
            randomTopicListPage.ClickOnAddQuestionLink();
            //Select Create New Question link
            randomTopicListPage.ClickOnCreateNewQuestionLink();
            //Create Grader IT Question
            autoGraderPage.CreateGraderITQuestion(
                Question.QuestionTypeEnum.SIM5GraderQuestion);
            //Click On SaveAndReturn Button
            addAssessmentPage.ClickOnSaveAndReturnButton();
            Logger.LogMethodExit("CreateActivity", "CreateGraderITActivity",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
コード例 #2
0
        public void CreateGraderItActivity(
            Activity.ActivityTypeEnum activityTypeEnum,
            Activity.ActivityBehavioralModesEnum behavioralModeEnum, String projectName,
            string tabName
            )

        {
            //Create GraderIT Activity
            Logger.LogMethodEntry("CreateActivity", "CreateGraderITActivity",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Create Object for RandomTopicList Page
            RandomTopicListPage randomTopicListPage = new RandomTopicListPage();
            //Create Object for AutoGrader Page
            AutoGraderPage autoGraderPage = new AutoGraderPage();
            //Create Object for addAssessment Page
            AddAssessmentPage addAssessmentPage = new AddAssessmentPage();

            //Enter Activity Details and Click on Add Question Link
            addAssessmentPage.CreateSimGraderITActivity(
                activityTypeEnum, behavioralModeEnum);
            //Click On Add Question Link
            randomTopicListPage.ClickOnAddQuestionLink();
            //Select Create New Question link
            randomTopicListPage.ClickOnCreateNewQuestionLink();
            //Create Grader IT Question
            autoGraderPage.CreateGraderITQuestionFromActivityAuthoring(
                Question.QuestionTypeEnum.SIM5GraderQuestion, projectName);
            //Click On SaveAndReturn Button
            addAssessmentPage.ClickOnSaveAndReturnButton();
            if (tabName == "MyCourse")
            {
                //Click On Add And Close Button
                new ContentBrowserUXPage().ClickOnAddAndCloseButton();
            }
            Logger.LogMethodExit("CreateActivity", "CreateGraderITActivity",
                                 base.IsTakeScreenShotDuringEntryExit);
        }