/// <summary> /// Create Grader IT Question. /// </summary> /// <param name="questionTypeEnum">This is Question Type Enum.</param> public void CreateGraderITQuestion(Question.QuestionTypeEnum questionTypeEnum) { //Create SIM Studyplan Logger.LogMethodEntry("AutoGraderPage", "CreateGraderITQuestion", base.IsTakeScreenShotDuringEntryExit); try { //Select Create New Question Window And Frame this.SelectCreateNewQuestionWindowAndFrame(); //Enter The Grader Question Name this.EnterTheGraderQuestionName(questionTypeEnum); //Select Project Question From Project Creation Tool this.SelectProjectQuestionFromProjectCreationTool(); //Select Create New Question Window And Frame this.SelectCreateNewQuestionWindowAndFrame(); //Wait for the Maximum score base.WaitForElement(By.Id(AutoGraderPageResource. AutoGraderPageResourse_MaximumScore_TextBox_Id_Locator)); base.FillTextBoxById(AutoGraderPageResource. AutoGraderPageResourse_MaximumScore_TextBox_Id_Locator, AutoGraderPageResource.AutoGraderPageResourse_MaximumScore_Value); //Click On SaveAndClose Button this.ClickOnSaveAndCloseButton(); } catch (Exception e) { ExceptionHandler.HandleException(e); } Logger.LogMethodExit("AutoGraderPage", "CreateGraderITQuestion", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Update The Question Set With QuestionType. /// </summary> /// <param name="questionTypeEnum">This is Question Set Type.</param> public void UpdateTheSIMQuestionsSet( Question.QuestionTypeEnum questionTypeEnum) { //Update The Question Set With QuestionType Logger.LogMethodEntry("QuestionSetPage", "UpdateTheSIMQuestionsSet", base.IsTakeScreenShotDuringEntryExit); try { //Genrate Guid for Question set name Guid questionSetName = Guid.NewGuid(); //Select Create Question Set window this.SelectEditQuestionSetWindow(); //Enter Question set name this.EnterQuestionSetName(questionSetName.ToString()); //Store the SIMQuestion this.StoreTheSIMQuestionSetInMemory( questionSetName, questionTypeEnum); //Click on save and return button this.ClickOnEditedQuestionSaveAndReturnButton(); } catch (Exception e) { ExceptionHandler.HandleException(e); } Logger.LogMethodExit("QuestionSetPage", "UpdateTheSIMQuestionsSet", base.IsTakeScreenShotDuringEntryExit); }
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); }
/// <summary> /// Create The GraderIT Question In Coursespace. /// </summary> /// <param name="questionTypeEnum">This is Question Type Enum.</param> /// <param name="projectName">This is Project Name.</param> public void CSTeacherCreateGraderITQuestion( Question.QuestionTypeEnum questionTypeEnum, Activity.ActivityTypeEnum activityTypeEnum) { //Create The GraderIT Question In CourseSpace Logger.LogMethodEntry("AutoGraderPage", "CreateTheGraderITQuestionInCourseSpace", base.IsTakeScreenShotDuringEntryExit); Activity project = Activity.Get(activityTypeEnum); string projectName = project.Name.ToString(); try { //Enter The Grader Question Name this.EnterTheGraderQuestionName(questionTypeEnum); //Select Project Creation Tool Window this.SelectProjectCreationToolWindow(); //Maxmize pop-up window base.MaximizeWindow(); //Select The Project this.SearchTheProject(projectName); base.SelectDefaultWindow(); //Click The Question SaveButton this.ClickTheQuestionSaveButton(); } catch (Exception e) { ExceptionHandler.HandleException(e); } Logger.LogMethodExit("AutoGraderPage", "CreateTheGraderITQuestionInCourseSpace", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Select To Create Question. /// </summary> /// <param name="questionTypeEnum">This is question type enum.</param> public void SelectCreateQuestion( Question.QuestionTypeEnum questionTypeEnum) { //Select Create Question Logger.LogMethodEntry("PaperTestUXPage", "SelectCreateQuestion", base.IsTakeScreenShotDuringEntryExit); try { // select MyTest window this.SelectMyTestWindow(); // click on create question this.ClickOnCreateQuestionAndGroupLink(); // select Question this.SelectQuestionType(questionTypeEnum); // wait for popup load Thread.Sleep(Convert.ToInt32(PaperTestUXPageResource. PaperTestUX_Page_CreateQuestion_Time_Value)); } catch (Exception e) { ExceptionHandler.HandleException(e); } Logger.LogMethodEntry("PaperTestUXPage", "SelectCreateQuestion", base.IsTakeScreenShotDuringEntryExit); }
public void CreateQuestions( Question.QuestionTypeEnum questionTypeEnum) { //Create Questions Logger.LogMethodEntry("CreateQuestion", "CreateQuestions", base.IsTakeScreenShotDuringEntryExit); //Create Questions new QlGridUXPage().CreateQuestions(questionTypeEnum); Logger.LogMethodExit("CreateQuestion", "CreateQuestions", base.IsTakeScreenShotDuringEntryExit); }
public void ClickOnLinkInTheManageYourTestFrame(Question.QuestionTypeEnum questionTypeEnum) { //Logger entry Logger.LogMethodEntry("CreateNewTest", "ClickOnLinkInTheManageYourTestFrame", base.IsTakeScreenShotDuringEntryExit); //Select Create Question new PaperTestUxPage().SelectCreateQuestion(questionTypeEnum); //Logger exit Logger.LogMethodExit("CreateNewTest", "ClickOnLinkInTheManageYourTestFrame", base.IsTakeScreenShotDuringEntryExit); }
public void MapQuestionToSkill(Question.QuestionTypeEnum questionTypeEnum) { //Map Question To Skill Logger.LogMethodEntry("CreateQuestion", "MapQuestionToSkill", base.IsTakeScreenShotDuringEntryExit); //Fetch Question From Memory Question question = Question.Get(questionTypeEnum); //Map Question To Skill new SkillStandardAlignedAssetsUXPage().MapQuestionToTheSkill(question.Name); Logger.LogMethodExit("CreateQuestion", "MapQuestionToSkill", base.IsTakeScreenShotDuringEntryExit); }
public void CreateGraderITQuestionInCourseSpace(Question.QuestionTypeEnum questionTypeEnum, Activity.ActivityTypeEnum activityTypeEnum) { // Create Grader IT Question In Manage Question Bank Logger.LogMethodEntry("PCTToolLaunch", "CreateGraderITQuestionInManageQuestionBank", base.IsTakeScreenShotDuringEntryExit); //Create The GraderIT Question In Manage Question Bank new AutoGraderPage(). CSTeacherCreateGraderITQuestion(questionTypeEnum, activityTypeEnum); Logger.LogMethodExit("PCTToolLaunch", "CreateGraderITQuestionInManageQuestionBank", base.IsTakeScreenShotDuringEntryExit); }
public void SelectTheQuestionToDragAndDropInMyTest(Question.QuestionTypeEnum questionType) { //Select The Question To DragAndDrop In MyTest Logger.LogMethodEntry("CreateNewTest", "SelectTheQuestionToDragAndDropInMyTest", base.IsTakeScreenShotDuringEntryExit); //Fetch the data from memory Question question = Question.Get(questionType); // Select the question to Drag and drop in Mytest new PaperTestUxPage().SelectTheQuestionToDragAndDropToMyTest(question.Name); Logger.LogMethodExit("CreateNewTest", "SelectTheQuestionToDragAndDropInMyTest", base.IsTakeScreenShotDuringEntryExit); }
public void UpdateTheQuestionSetWithQuestionType(Question. QuestionTypeEnum questionTypeEnum) { //Logger Entry Logger.LogMethodEntry("CreateQuestion", "UpdateTheQuestionSetWithQuestionType", base.IsTakeScreenShotDuringEntryExit); //Edit the SIM Questions set new QuestionSetPage().UpdateTheSIMQuestionsSet(questionTypeEnum); //Logger Exit Logger.LogMethodExit("CreateQuestion", "UpdateTheQuestionSetWithQuestionType", base.IsTakeScreenShotDuringEntryExit); }
public void CraetedSIMQuestionSetWithQuestionType(Question. QuestionTypeEnum questionTypeEnum) { //Logger Entry Logger.LogMethodEntry("CreateQuestion", "CraetedSIMQuestionSetWithQuestionType", base.IsTakeScreenShotDuringEntryExit); //Create 2010 SIM Questions set new QuestionSetPage().CreateSIMQuestionsSet(questionTypeEnum); //Logger Exit Logger.LogMethodExit("CreateQuestion", "CraetedSIMQuestionSetWithQuestionType", base.IsTakeScreenShotDuringEntryExit); }
public void CreateGraderITQuestionInManageQuestionBank( Question.QuestionTypeEnum questionTypeEnum, String projectName) { // Create Grader IT Question In Manage Question Bank Logger.LogMethodEntry("CreateQuestion", "CreateGraderITQuestionInManageQuestionBank", base.IsTakeScreenShotDuringEntryExit); //Create The GraderIT Question In Manage Question Bank new AutoGraderPage(). CreateTheGraderITQuestionInManageQuestionBank(questionTypeEnum, projectName); Logger.LogMethodExit("CreateQuestion", "CreateGraderITQuestionInManageQuestionBank", base.IsTakeScreenShotDuringEntryExit); }
public void ClickOnCmenuOptionOfQuestion(string questionCmenuOption, Question.QuestionTypeEnum questionTypeEnum) { //Click On Cmenu Option Of Question In Manage Question Bank Logger.LogMethodEntry("CreateQuestion", "ClickOnCmenuOptionOfQuestion" , base.IsTakeScreenShotDuringEntryExit); //Fetch the data from memory Question question = Question.Get(questionTypeEnum); //Click On Cmenu Option Of Question new QlGridUXPage().ClickOnCmenuOfQuestion(question.Name, questionCmenuOption); Logger.LogMethodExit("CreateQuestion", "ClickOnCmenuOptionOfQuestion" , base.IsTakeScreenShotDuringEntryExit); }
public void VerifyTheQuestionAdded(Question.QuestionTypeEnum questionTypeEnum) { //Verify the question added Logger.LogMethodEntry("CreateQuestion", "VerifyTheQuestionAdded", base.IsTakeScreenShotDuringEntryExit); //Fetch the data from memory Question question = Question.Get(questionTypeEnum); //Asserts To Verify the question added Logger.LogAssertion("VerifyTheQuestionAdded", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.IsTrue(new QlGridUXPage(). VerifyTheQuestionAdded(question.Name))); Logger.LogMethodExit("CreateQuestion", "VerifyTheQuestionAdded", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Select Question Type. /// </summary> private void SelectQuestionType( Question.QuestionTypeEnum questionTypeEnum) { //Select Question Type Logger.LogMethodEntry("PaperTestUXPage", "SelectQuestionType", base.IsTakeScreenShotDuringEntryExit); //Wait for the cmenu options list base.WaitForElement(By.Id(PaperTestUXPageResource. PaperTestUX_Page_CreateQuestion_CmenuList_Id_Locator)); IWebElement getWebElement; switch (questionTypeEnum) { case Question.QuestionTypeEnum.TrueFalse: //Wait for the Element base.WaitForElement(By.XPath(PaperTestUXPageResource. PaperTestUX_Page_CreateQuestion_Select_TrueFalse_Ques_Id_Locator)); //Get HTML Element Property for Cmenu Option getWebElement = base.GetWebElementPropertiesByXPath(PaperTestUXPageResource. PaperTestUX_Page_CreateQuestion_Select_TrueFalse_Ques_Id_Locator); //Click on the TrueFalse Option base.ClickByJavaScriptExecutor(getWebElement); break; case Question.QuestionTypeEnum.CreateQuestionGroup: //Wait for element base.WaitForElement(By.Id(PaperTestUXPageResource. PaperTestUX_Page__QuestionGroup_Id_Locator)); getWebElement = GetWebElementPropertiesById(PaperTestUXPageResource. PaperTestUX_Page__QuestionGroup_Id_Locator); //Click on the Create Question Group Option base.ClickByJavaScriptExecutor(getWebElement); break; case Question.QuestionTypeEnum.Essay: //Wait for element base.WaitForElement(By.Id(PaperTestUXPageResource. PaperTestUX_Page__EssayQuestion_Id_Locator)); getWebElement = base.GetWebElementPropertiesById(PaperTestUXPageResource. PaperTestUX_Page__EssayQuestion_Id_Locator); //Click on the Eassy Question base.ClickByJavaScriptExecutor(getWebElement); break; } Logger.LogMethodExit("PaperTestUXPage", "SelectQuestionType", base.IsTakeScreenShotDuringEntryExit); }
public void VerifyTheQuestionInMytest(Question.QuestionTypeEnum questionType) { //Verify The Question In Mytest Logger.LogMethodEntry("CreateNewTest", "VerifyTheQuestionInMytest", base.IsTakeScreenShotDuringEntryExit); //Fetch the data from memory Question question = Question.Get(questionType); //Asserts the Question Name Logger.LogAssertion("VerifyQuestionName", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreEqual(question.Name, new PaperTestUxPage(). GetQuestionNameInMyTest(question.Name))); Logger.LogMethodExit("CreateNewTest", "VerifyTheQuestionInMytest", base.IsTakeScreenShotDuringEntryExit); }
public void VerifyTheSIMQuestionFolderInQuestionBankFrame(Question.QuestionTypeEnum questionTypeEnum) { //Logger Entry Logger.LogMethodEntry("CreateQuestion", "VerifyTheSIMQuestionFolderInQuestionBankFrame", base.IsTakeScreenShotDuringEntryExit); Question questionSetName = Question.Get(questionTypeEnum); //Assert Created Question Logger.LogAssertion("VerifyTheSIMQuestionFolderInQuestionBankFrame", ScenarioContext. Current.ScenarioInfo.Title, () => Assert.AreEqual(true, new QlGridUXPage().GetSearchedFolderName(questionSetName.Name). Contains(questionSetName.Name))); //Logger Exit Logger.LogMethodExit("CreateQuestion", "VerifyTheSIMQuestionFolderInQuestionBankFrame", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Store The Grader Question In Memory. /// </summary> /// <param name="questionTypeEnum">This is Question Type Enum.</param> /// <param name="QuestionName">This is Question Name.</param> private void StoreTheGraderQuestionInMemory( Question.QuestionTypeEnum questionTypeEnum, Guid QuestionName) { // Store The Grader Question In Memory Logger.LogMethodEntry("AutoGraderPage", "StoreTheGraderQuestionInMemory", base.IsTakeScreenShotDuringEntryExit); //Store the Grader Question Question newQuestionType = new Question { Name = QuestionName.ToString(), QuestionType = questionTypeEnum, IsCreated = true, }; newQuestionType.StoreQuestionInMemory(); Logger.LogMethodExit("AutoGraderPage", "StoreTheGraderQuestionInMemory", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Store The SIM SIM 2010 QuestionSet In Memory. /// </summary> /// <param name="QuestionSetName">This is Questionset Name.</param> /// <param name="questionTypeEnum">This is question type enum.</param> private void StoreTheSIMQuestionSetInMemory(Guid QuestionSetName, Question.QuestionTypeEnum questionTypeEnum) { // Store The SIM Question Set In Memory Logger.LogMethodEntry("QuestionSetPage", "StoreTheSIMQuestionSetInMemory", base.IsTakeScreenShotDuringEntryExit); //Store the SIM Question Set Question newQuestionType = new Question { Name = QuestionSetName.ToString(), QuestionType = questionTypeEnum, IsCreated = true, }; newQuestionType.StoreQuestionInMemory(); Logger.LogMethodExit("QuestionSetPage", "StoreTheSIMQuestionSetInMemory", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Create The GraderIT Question In Cours-space. /// </summary> /// <param name="questionTypeEnum">This is Question Type Enum.</param> /// <param name="projectName">This is Project Name.</param> public void CreateTheGraderITQuestionInCourseSpace( Question.QuestionTypeEnum questionTypeEnum, string projectName) { //Create The GraderIT Question In CourseSpace Logger.LogMethodEntry("AutoGraderPage", "CreateTheGraderITQuestionInCourseSpace", base.IsTakeScreenShotDuringEntryExit); try { //Enter The Grader Question Name this.EnterTheGraderQuestionName(questionTypeEnum); //Select Project Creation Tool Window this.SelectProjectCreationToolWindow(); //Maxmize pop-up window base.MaximizeWindow(); //Select The Project this.SearchTheProject(projectName); base.SelectDefaultWindow(); //Wait for the Maximum score base.WaitForElement(By.Id(AutoGraderPageResource. AutoGraderPageResourse_MaximumScore_TextBox_Id_Locator)); if (base.IsElementEnabledById(string.Format((AutoGraderPageResource. AutoGraderPageResourse_MaximumScore_TextBox_Id_Locator)))) { //Fill Score for 2007 type question base.FillTextBoxById(AutoGraderPageResource. AutoGraderPageResourse_MaximumScore_TextBox_Id_Locator, AutoGraderPageResource.AutoGraderPageResourse_MaximumScore_Value); } //Click The Question SaveButton this.ClickTheQuestionSaveButton(); } catch (Exception e) { ExceptionHandler.HandleException(e); } Logger.LogMethodExit("AutoGraderPage", "CreateTheGraderITQuestionInCourseSpace", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Enter The Grader Question Name. /// </summary> /// <param name="questionTypeEnum">This is Question Type Enum.</param> private void EnterTheGraderQuestionName( Question.QuestionTypeEnum questionTypeEnum) { //Enter The Grader Question Name Logger.LogMethodEntry("AutoGraderPage", "EnterTheGraderQuestionName", base.IsTakeScreenShotDuringEntryExit); //Create Sim GraderIT Activity Guid QuestionName = Guid.NewGuid(); //Wait for the element base.WaitForElement(By.Id(AutoGraderPageResource. AutoGraderPageResourse_CreateNewQuestion_TextBox_Id_Locator)); //Fill the question name base.FillTextBoxById(AutoGraderPageResource. AutoGraderPageResourse_CreateNewQuestion_TextBox_Id_Locator, QuestionName.ToString()); //Wait for the element base.WaitForElement(By.Id(AutoGraderPageResource. AutoGraderPageResourse_CreateNewQuestion_Answer_Button_Id_Locator)); IWebElement getAddAnswer = base.GetWebElementPropertiesById (AutoGraderPageResource. AutoGraderPageResourse_CreateNewQuestion_Answer_Button_Id_Locator); //Click the Add Answer Button base.ClickByJavaScriptExecutor(getAddAnswer); //Wait for the lement base.WaitForElement(By.Id(AutoGraderPageResource. AutoGraderPageResourse_CreateNewQuestion_Project_Id_Locator)); IWebElement getSelectProjectButton = base.GetWebElementPropertiesById (AutoGraderPageResource. AutoGraderPageResourse_CreateNewQuestion_Project_Id_Locator); //Click the ProjectId Button base.ClickByJavaScriptExecutor(getSelectProjectButton); //Store The Grader Question In Memory this.StoreTheGraderQuestionInMemory(questionTypeEnum, QuestionName); Logger.LogMethodExit("AutoGraderPage", "EnterTheGraderQuestionName", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Create Grader IT Question from activity authoring. /// </summary> /// <param name="questionTypeEnum">This is Question Type Enum.</param> /// <param name="questionTypeEnum">This is project Name.</param> public void CreateGraderITQuestionFromActivityAuthoring( Question.QuestionTypeEnum questionTypeEnum, string projectName) { //Create Grader IT Question from activity authoring Logger.LogMethodEntry("AutoGraderPage", "CreateGraderITQuestionFromActivityAuthoring", base.IsTakeScreenShotDuringEntryExit); try { //Select Create New Question Window And Frame this.SelectCreateNewQuestionWindowAndFrame(); //Enter The Grader Question Name this.EnterTheGraderQuestionName(questionTypeEnum); //Select Project Question From Project Creation Tool this.SelectProjectCreationToolWindow(); //Select The Project this.SelectTheProject(projectName); //Select Create New Question Window And Frame this.SelectCreateNewQuestionWindowAndFrame(); //Wait for the Maximum score base.WaitForElement(By.Id(AutoGraderPageResource. AutoGraderPageResourse_MaximumScore_TextBox_Id_Locator)); if (base.IsElementEnabledById(string.Format((AutoGraderPageResource. AutoGraderPageResourse_MaximumScore_TextBox_Id_Locator)))) { //Fill Score for 2007 type question base.FillTextBoxById(AutoGraderPageResource. AutoGraderPageResourse_MaximumScore_TextBox_Id_Locator, AutoGraderPageResource.AutoGraderPageResourse_MaximumScore_Value); } //Click On SaveAndClose Button this.ClickOnSaveAndCloseButton(); } catch (Exception e) { ExceptionHandler.HandleException(e); } Logger.LogMethodExit("AutoGraderPage", "CreateGraderITQuestionFromActivityAuthoring", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Create 2010 SIM question set with given question type. /// </summary> /// <param name="questionTypeEnum">This is Question type enum.</param> public void CreateSIMQuestionsSet(Question.QuestionTypeEnum questionTypeEnum) { //Logger Entry Logger.LogMethodEntry("QuestionSetPage", "CreateSIMQuestionsSet", base.IsTakeScreenShotDuringEntryExit); try { //Genrate Guid for Question set name Guid questionSetName = Guid.NewGuid(); //Select Create Question Set window this.SelectCreateQuestionSetWindow(); //Enter Question set name this.EnterQuestionSetName(questionSetName.ToString()); //Store the SIMQuestion this.StoreTheSIMQuestionSetInMemory(questionSetName, questionTypeEnum); //Click On save and continue button this.ClickOnSaveAndContinueButton(); //Select Question grid set Iframe this.SwitchToQuestionSetGridIframe(); //Add question from SIM Question folder this.AddQuestionsFromQuestionFolder(questionTypeEnum); //Click on Add Close button on Select Content window this.ClickOnAddCloseButton(); //Select Create Question Set window this.SelectCreateQuestionSetWindow(); //Click on save and return button this.ClickOnSaveAndReturnButton(); } catch (Exception e) { ExceptionHandler.HandleException(e); } //Logger Exit Logger.LogMethodExit("QuestionSetPage", "CreateSIMQuestionsSet", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Add SIM Question from SIM Repository Question Folder. /// </summary> ///<param name="questionTypeEnum">This is question type enum.</param> private void AddQuestionsFromQuestionFolder(Question. QuestionTypeEnum questionTypeEnum) { //Logger Entry Logger.LogMethodEntry("QuestionSetPage", "AddQuestionsFromQuestionFolder", base.IsTakeScreenShotDuringEntryExit); //Select the diffrent Question Folder according to Question Set Enum switch (questionTypeEnum) { case Question.QuestionTypeEnum.SIM2010ExcelQuestionSet: //Add SIM 2010 Excel Questions this.AddSIM2010Question(QuestionSetPageResource. QuestionSetPage_2010_Excel_Folder_Name); break; case Question.QuestionTypeEnum.SIM2010MSAccessQuestionSet: //Add SIM 2010 MSAcsess Question this.AddSIM2010Question(QuestionSetPageResource. QuestionSetPage_2010_Access_Folder_Name); break; case Question.QuestionTypeEnum.SIM2010PowerPointQuestionSet: //Add SIM 2010 PowerPoint Question this.AddSIM2010Question(QuestionSetPageResource. QuestionSetPage_2010_PowerPoint_Folder_Name); break; case Question.QuestionTypeEnum.SIM2010WordQuestionSet: //Add SIM 2010 Word Question this.AddSIM2010Question(QuestionSetPageResource. QuestionSetPage_2010_Word_Folder_Name); break; case Question.QuestionTypeEnum.SIM2007ExcelQuestionSet: //Add SIM 2007 Excel Question this.AddSIM2007Question(QuestionSetPageResource. QuestionSetPage_2007_Excel_Folder_Name); break; case Question.QuestionTypeEnum.SIM2007WordQuestionSet: //Add SIM 2007 Word Question this.AddSIM2007Question(QuestionSetPageResource. QuestionSetPage_2007_Word_Folder_Name); break; case Question.QuestionTypeEnum.SIM2007PowerPointQuestionSet: //Add SIM 2007 PowerPont Question this.AddSIM2007Question(QuestionSetPageResource. QuestionSetPage_2007_PowerPoint_Folder_Name); break; case Question.QuestionTypeEnum.SIM2007MSAccessQuestionSet: //Add SIM 2007 Access Question this.AddSIM2007Question(QuestionSetPageResource. QuestionSetPage_2007_Access_Folder_Name); break; } //Logger Exit Logger.LogMethodExit("QuestionSetPage", "AddQuestionsFromQuestionFolder", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Create Questions. /// </summary> /// <param name="questionTypeEnum">This is Question Type Enum.</param> public void CreateQuestions( Question.QuestionTypeEnum questionTypeEnum) { //Create Questions Logger.LogMethodEntry("QlGridUXPage", "CreateQuestions", base.IsTakeScreenShotDuringEntryExit); switch (questionTypeEnum) { case Question.QuestionTypeEnum.DropDownList: //Create 'Drop Down List' Question new PullDownListPage().CreateDropDownListQuestion(); break; case Question.QuestionTypeEnum.EntryList: //Create 'Entry List' Question new EntryListPage().CreateEntryListQuestion(); break; case Question.QuestionTypeEnum.Essay: //Create 'Essay' Question new EssayPage().CreateEssayQuestion(); break; case Question.QuestionTypeEnum.FileUpload: //Create 'File Upload' Question new FileUploadPage().CreateFileUploadQuestion(); break; case Question.QuestionTypeEnum.FillInTheBlank: //Create 'Fill In The Blank' Question new FillInTheBlanksPage().CreateFillInTheBlanksQuestion(); break; case Question.QuestionTypeEnum.Matching: //Create 'Matching' Question new MatchingPage().CreateMatchingQuestion(); break; case Question.QuestionTypeEnum.MultipleResponse: //Create 'Multiple Response'Question new MultipleResponsePage().CreateMultipleResponseQuestion(); break; //Create 'TextMatch'Question case Question.QuestionTypeEnum.TextMatch: new TextMatchPage().CreateTextMatchQuestion(); break; //Create 'Numeric'Question case Question.QuestionTypeEnum.Numeric: new NumericPage().CreateNumericQuestion(); break; //Create 'Multiple Choice'Question case Question.QuestionTypeEnum.MultipleChoice: new MultipleChoicePage().CreateMultipleChoiceQuestion(); break; //Create 'Ranking'Question case Question.QuestionTypeEnum.Ranking: new RankingPage().CreateRankingQuestion(); break; } Logger.LogMethodExit("QlGridUXPage", "CreateQuestions", base.IsTakeScreenShotDuringEntryExit); }