コード例 #1
0
        public void DeleteGlobalQuestions()
        {
            ExtentReport.test = ExtentReport.extent.StartTest("Delete Global Questions");
            _03_HomePage HP = new _03_HomePage(_driver);

            HP.SystemHeader();
            SystemConfirgPage SysConPage = new SystemConfirgPage(_driver);

            SysConPage.LinkGlobalQuestions();
            Edit_Delete_GlobalQtnPage DeleteGlbQtnPage = new Edit_Delete_GlobalQtnPage(_driver);

            DeleteGlbQtnPage.DeleteGlobalQuestions(_driver, "GlobalQuestionsData", "Delete_GlobalQuestion");
            Logger.log.Info("Deleted Global Questions");
            ExtentReport.test.Log(LogStatus.Pass, "Deleted Global Questions");
        }
コード例 #2
0
        public void EditGlobalQuestions()
        {
            ExtentReport.test = ExtentReport.extent.StartTest("Edit Global Questions");
            _03_HomePage HP = new _03_HomePage(_driver);

            HP.SystemHeader();
            SystemConfirgPage SysConPage = new SystemConfirgPage(_driver);

            SysConPage.LinkGlobalQuestions();
            _04_GlobalQtnListPage GlbQtnListPage = new _04_GlobalQtnListPage(_driver);

            GlbQtnListPage.CreateNewGlbQtn();
            Edit_Delete_GlobalQtnPage EditGlbQtnPage = new Edit_Delete_GlobalQtnPage(_driver);

            EditGlbQtnPage.EditGlobalQuestion(_driver, "GlobalQuestionsData", "Edit_GlobalQuestion", "Execute", "Yes");
            Logger.log.Info("Edited Global Questions");
            ExtentReport.test.Log(LogStatus.Pass, "Edited Global Questions");
        }