public void Create_PreApplicationFormTemplate() { ExtentReport.test = ExtentReport.extent.StartTest("Create Pre Application Form Template"); _03_HomePage HP = new _03_HomePage(_driver); HP.SystemHeader(); SystemConfirgPage SysConPage = new SystemConfirgPage(_driver); SysConPage.LinkFormTemplates(); _05_FormTemplatePage FormTempPage = new _05_FormTemplatePage(_driver); FormTempPage.AddNewFormTemplate(); _05_FormTemplateCreationPage FormTempCreaPage = new _05_FormTemplateCreationPage(_driver); ArrayList list = FormTempCreaPage.GetFormDetails("FormTemplatesData", "FormTemplate", "FormType", "Pre Application Form"); BaseMethods.DdlSelectByText(FormTempCreaPage.FormType(), list[0].ToString()); FormTempCreaPage.FormName(list[1].ToString()); BaseMethods.DdlSelectByText(FormTempCreaPage.FormStatus(), list[2].ToString()); FormTempCreaPage.SaveFormTemplate(); ExtentReport.test.Log(LogStatus.Pass, "Pre Application Form Template is Created"); FormTempCreaPage.CreateMultipleSteps(_driver, "FormTemplatesData", "FormTemplateSteps", "FormType"); FormTempCreaPage.AddQuestionToStep(_driver, "FormTemplatesData", "AddQuestiontoStep"); FormTempCreaPage.AddGlobalQuestionToStep(_driver, "FormTemplatesData", "AddGlobalQuestiontoStep"); BaseMethods.DdlSelectByText(FormTempCreaPage.FormStatus(), list[2].ToString()); FormTempCreaPage.SaveFormTemplate(); Logger.log.Info("Pre Application Form Template is Created with Steps and Local Questions and Global Questions"); ExtentReport.test.Log(LogStatus.Pass, "Pre Application Form Template is Created with Steps and Local Questions and Global Questions"); }
public void _01_Create_PositionDetailsForm() { ExtentReport.test = ExtentReport.extent.StartTest("Position Details Form - Add Steps, Local & Global Questions"); _03_HomePage HP = new _03_HomePage(_driver); HP.SystemHeader(); SystemConfirgPage SysConPage = new SystemConfirgPage(_driver); SysConPage.LinkSystemForms(); SysConPage.LinkPositionDetails(); _05_FormTemplateCreationPage FormTempCreaPage = new _05_FormTemplateCreationPage(_driver); FormTempCreaPage.CreateMultipleSteps(_driver, "PositionDetailsFormData", "PositionDetailsSteps", "Execute"); FormTempCreaPage.AddQuestionToStep(_driver, "PositionDetailsFormData", "AddQuestiontoStep"); FormTempCreaPage.AddGlobalQuestionToStep(_driver, "PositionDetailsFormData", "AddGlobalQuestiontoStep"); Logger.log.Info("'Position Details Form' is successfully created Steps, Local and Global Questions"); ExtentReport.test.Log(LogStatus.Pass, "'Position Details Form' is successfully created Steps, Local and Global Questions"); }