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); }
public void CreateTheActivityOfBehavioralModeType( Activity.ActivityTypeEnum activityTypeEnum) { //Create Activity Logger.LogMethodEntry("CreateActivity", "CreateTheActivityOfBehavioralModeType", base.IsTakeScreenShotDuringEntryExit); //Create Object for RandomTopicList Page RandomTopicListPage randomTopicListPage = new RandomTopicListPage(); AddAssessmentPage addAssessmentPage = new AddAssessmentPage(); //Enter Activity Details and Click on Add Question Link addAssessmentPage.EnterActivityDetailsandClickonAddQuestion(activityTypeEnum); //Select Create New Question Option randomTopicListPage.SelectTheCreateNewQuestionForAssetCreation (CreateActivityResource. CreateActivity_CreateNewQuestion_Xpath_Locator); //Select Question Type new SelectQuestionTypePage().ClickTheQuestionType(); //Create True/False Question new TrueFalsePage().CreateTrueFalseQuestion(); //Enter the message addAssessmentPage.EnterTheMessageForActivity(); Logger.LogMethodExit("CreateActivity", "CreateTheActivityOfBehavioralModeType", base.IsTakeScreenShotDuringEntryExit); }
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); }