public void VerifyEarlyOpeningAppReqWithMoreInfoDecissionApprovedCase()
        {
            string CaseRefer = excelUtil.GetDataFromExcel("CaseReferanceId");

            // Start Application
            commFunc.StartApplication();
            // fill form
            earlyOpeningLib.FillEarlyOpeningApplication(excelUtil.GetDataFromExcel("PupilDetailType"), excelUtil.GetDataFromExcel("PupilName"), true, true, false, excelUtil.GetDataFromExcel("ReasonForEarlyOpening"), excelUtil.GetDataFromExcel("NumberOfSchoolDays"), excelUtil.GetDataFromExcel("MoreDetailsEarlyOpening"));

            // Submit form and verify confirmation msg
            comFunc.SubmitForm();
            VerifyIsContains(excelUtil.GetDataFromExcel("AppSubmissionConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check application submission confrmation message");

            // log out with current user and Login to CM via STA user and naviagte to review from
            commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("CM_UserName"), excelUtil.GetDataFromExcel("CM_Password"));
            commFunc.SearchCaseReferance(CaseRefer, null, null);
            commFunc.openedInCompetFormCmFromExpandView("EARAPRVIEW");

            // Verify review form fields valus
            earlyOpeningLib.CheckReviewFromFieldValues(excelUtil, "Review");

            // Select Decision and submit form
            commFunc.SelectDecission(excelUtil.GetDataFromExcel("Decission1"), excelUtil.GetDataFromExcel("Decision1Reason"));
            commFunc.SubmitForm();

            // Verify form submission confirmation msg
            VerifyIsEquals(excelUtil.GetDataFromExcel("ReviewFromSubmissonConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check application review submission confrmation message");

            // Login to portal - School user and navigate review from
            commFunc.LogoutCurrentUserAndLoginAnotherUserToPortal("STA_PORTAL", excelUtil.GetDataFromExcel("UserName"), excelUtil.GetDataFromExcel("Password"));
            commFunc.OpenFormFromOutStadingActivity(EarlyOpneingMoreInfromation);


            // Add More infromation and upload supportive doc
            commFunc.AddMoreInfromation(excelUtil.GetDataFromExcel("AddtionalInformation"), excelUtil.GetDataFromExcel("UploadDoc1"), excelUtil.GetDataFromExcel("DocumentDecription1"));

            // Verify Review comments
            earlyOpeningLib.CheckReviewFromFieldValues(excelUtil, "MoreInfo");

            // Submit form and verify confrimation msg
            commFunc.SubmitForm();
            VerifyIsContains(excelUtil.GetDataFromExcel("MoreInfoFromSubmissionConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check application more information submission confrmation message");

            // log out with current user and Login to CM via STA user and naviagte to review from
            commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("CM_UserName"), excelUtil.GetDataFromExcel("CM_Password"));
            commFunc.SearchCaseReferance(CaseRefer, null, null);
            commFunc.openedInCompetFormCmFromExpandView("EARAPRVIEW");

            // Select Decission and submit form
            commFunc.SelectDecission(excelUtil.GetDataFromExcel("Decission2"), excelUtil.GetDataFromExcel("Decision1Description"));
            commFunc.SubmitForm();

            // verify form submission confirmation msg
            VerifyIsEquals(excelUtil.GetDataFromExcel("Review2FromSubmissonConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check application review submission confrmation message");
        }
        public void VerifyTimeTableVariationAppWithMoreInforDecisionRejectedCase()
        {
            bool[] sectionBQAns = { false, false, true, true };
            string CaseRefer    = excelUtil.GetDataFromExcel("CaseReferanceId");

            // Start Application
            commFunc.StartApplication();

            // Fill Application page1
            timeTableVarLib.FillApplicationPage1(excelUtil.GetDataFromExcel("PupilType"), excelUtil.GetDataFromExcel("PupilName1"), excelUtil.GetDataFromExcel("Subject1"), excelUtil.GetDataFromExcel("Date1"), excelUtil.GetDataFromExcel("Time1"));

            // Fill Reason section
            timeTableVarLib.FillReasonSections(excelUtil.GetDataFromExcel("SectionAReason"), excelUtil.GetDataFromExcel("Note"), sectionBQAns);

            // Submit form and verify Confirmation message
            commFunc.SubmitForm();

            // Verify Confrimation Message
            VerifyIsEquals(excelUtil.GetDataFromExcel("FromSubmissionConfirmationMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check Application Submission confrmation message");

            // Logout with current user  and Log with STA user - Navigate to repsective form
            //commFunc.LogoutCurrentUserAndLoginAnotherUserToPortal("STA_PORTAL", excelUtil.GetDataFromExcel("STA_UserName"), excelUtil.GetDataFromExcel("STA_Password"));
            // commFunc.OpenFormFromOutStadingActivity("Timetable variation review");

            // log out with current user and Login to CM and naviagte to review from
            commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("CM_UserName"), excelUtil.GetDataFromExcel("CM_Password"));
            commFunc.SearchCaseReferance(CaseRefer, null, null);
            commFunc.openedInCompetFormCmFromExpandView("EARAPRVIEW");

            // Verify Review Form
            timeTableVarLib.CheckReviewFromFieldValues(excelUtil, "Review", sectionBQAns);

            timeTableVarLib.SelectDelegatedAuthority();

            // Select Decission
            commFunc.SelectDecission(excelUtil.GetDataFromExcel("Decission1"), excelUtil.GetDataFromExcel("Decision1Reason"));

            // Submit form and verify result
            commFunc.SubmitForm();
            VerifyIsEquals(excelUtil.GetDataFromExcel("ReviewFromSubmissonConMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check Application Submission confrmation message of review from");

            // logout with currnet user & Login to portal - School user and navigate more info form
            comFunc.LogoutCurrentUserAndLoginAnotherUserToPortal("STA_PORTAL", excelUtil.GetDataFromExcel("UserName"), excelUtil.GetDataFromExcel("Password"));
            commFunc.OpenFormFromOutStadingActivity(ttvMoreInfo);


            // Add more infromation & verify review comments
            commFunc.AddMoreInfromation(excelUtil.GetDataFromExcel("AddtionalInformation"), excelUtil.GetDataFromExcel("UploadDoc1"), excelUtil.GetDataFromExcel("DocumentDecription1"));
            timeTableVarLib.CheckReviewFromFieldValues(excelUtil, "MoreInfo", sectionBQAns);
            comFunc.NaviagteToNextPage();

            // submit form and verify confirmation msg
            commFunc.SubmitForm(true);
            VerifyIsEquals(excelUtil.GetDataFromExcel("MoreInfoFromSubmissionConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check application more information submission confrmation message");

            // log out with current user and Login to CM and naviagte to review from
            commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("CM_UserName"), excelUtil.GetDataFromExcel("CM_Password"));
            commFunc.SearchCaseReferance(CaseRefer, null, null);
            commFunc.openedInCompetFormCmFromExpandView("EARAPRVIEW");

            // Logout with currnet user &Login to portal - STA user and navigate review form
            // comFunc.LogoutCurrentUserAndLoginAnotherUserToPortal("STA_PORTAL", excelUtil.GetDataFromExcel("STA_UserName"), excelUtil.GetDataFromExcel("STA_Password"));
            // commFunc.OpenFormFromOutStadingActivity("Timetable variation review");

            // verify re- review form
            timeTableVarLib.CheckReviewFromFieldValues(excelUtil, "Re-Review", sectionBQAns);

            timeTableVarLib.SelectDelegatedAuthority();

            timeTableVarLib.CheckReReviewAddtionalInfromation(excelUtil.GetDataFromExcel("AddtionalInformation"), excelUtil.GetDataFromExcel("UploadDoc1"));
            // Select decisson and submit form
            commFunc.SelectDecission(excelUtil.GetDataFromExcel("Decission2"), excelUtil.GetDataFromExcel("Decision1Description"));
            commFunc.SubmitForm();

            // Verify Fromsubmission confirmation msg
            VerifyIsEquals(excelUtil.GetDataFromExcel("Review2FromSubmissonConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check application review submission confrmation message");
        }
        public void VerifySpecialConsiderationWithMoreInfoAndDecissionApprovedCase()
        {
            bool[] Subjects     = { true, false, true, false };
            bool[] QuestionsAns = { true, true, true, true };


            // Start Application
            commFunc.StartApplication();

            // Fill Application from and navigate to next page
            specialConsiderationLib.fillApplication(excelUtil.GetDataFromExcel("PupilDetailType"), excelUtil.GetDataFromExcel("PupilName"), Subjects, QuestionsAns, excelUtil.GetDataFromExcel("ReasonForSpecialConsideration"), excelUtil.GetDataFromExcel("DateOfincident"), excelUtil.GetDataFromExcel("RelationshipToPupil"), excelUtil.GetDataFromExcel("BrieflyExplain"));

            // Submit form and verify submission message
            commFunc.SubmitForm();
            VerifyIsEquals(excelUtil.GetDataFromExcel("FromSubmissionConfirmationMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check Application Submission confrmation message.");
            commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("UserCMName"), excelUtil.GetDataFromExcel("UserCmPassword"));
            commFunc.SearchCaseReferance(excelUtil.GetDataFromExcel("CaseRefeNo"), null, null);
            comFunc.openedInCompetFormCmFromExpandView(excelUtil.GetDataFromExcel("ShortNmae"));

            // Logout with current user and Log with STA user -Navigate to repsective form
            ////commFunc.LogoutCurrentUserAndLoginAnotherUserToPortal("STA_PORTAL", excelUtil.GetDataFromExcel("STA_UserName"), excelUtil.GetDataFromExcel("STA_Password"));
            ////commFunc.OpenFormFromOutStadingActivity("Special consideration review");

            //// Verify Review Form
            //specialConsiderationLib.CheckReviewFromFieldValues(excelUtil, "Review", Subjects, QuestionsAns);

            //// Select Decission
            commFunc.SelectDecission(excelUtil.GetDataFromExcel("Decission1"), excelUtil.GetDataFromExcel("Decision1Reason"));

            //// Submit form and verify result
            commFunc.SubmitForm();
            //// VerifyIsTrue(commFunc.GetFormSubmissionConfirmationMsg().Contains("submitted successfully"), "Check Review form Submission confirmation msg.");
            //VerifyIsEquals(excelUtil.GetDataFromExcel("ReviewFromSubmissonConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check Review form Submission confirmation msg.");
            //omFunc.NavigateBackToCaseManager();
            //pecialConsiderationLib.LogOffCm();
            //comFunc.openedInCompetFormCmFromExpandView(excelUtil.GetDataFromExcel("ShortNmae"));
            specialConsiderationLib.SetUpPreCondition("STA_PORTAL");
            //// Login to portal - School user and navigate review from
            comFunc.LoginIntoPortal(excelUtil.GetDataFromExcel("UserName"), excelUtil.GetDataFromExcel("Password"));
            commFunc.OpenFormFromOutStadingActivity("Special consideration additional information");

            //// Add More infromation and upload supportive doc
            commFunc.AddMoreInfromation(excelUtil.GetDataFromExcel("AddtionalInformation"), excelUtil.GetDataFromExcel("UploadDoc1"), excelUtil.GetDataFromExcel("DocumentDecription1"));

            //// Verify Review comments
            //   specialConsiderationLib.CheckReviewFromFieldValues(excelUtil, "MoreInfo", Subjects, QuestionsAns);

            //  Submit form and verify confrimation msg
            commFunc.SubmitForm();
            //VerifyIsTrue(commFunc.GetFormSubmissionConfirmationMsg().Contains("submitted successfully"), "Check application more information submission confrmation message");
            //VerifyIsEquals(excelUtil.GetDataFromExcel("MoreInfoFromSubmissionConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check Addtional Information form Submission confirmation msg.");

            //Login to portal - STA user and navigate review form
            //comFunc.LogoutCurrentUserAndLoginAnotherUserToPortal("STA_PORTAL", excelUtil.GetDataFromExcel("STA_UserName"), excelUtil.GetDataFromExcel("STA_Password"));
            //commFunc.OpenFormFromOutStadingActivity("Special consideration review");
            commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("UserCMName"), excelUtil.GetDataFromExcel("UserCmPassword"));
            commFunc.SearchCaseReferance(excelUtil.GetDataFromExcel("CaseRefeNo"), null, null);
            comFunc.openedInCompetFormCmFromExpandView(excelUtil.GetDataFromExcel("ShortNmae"));

            //   Verify Review Form
            // specialConsiderationLib.CheckReviewFromFieldValues(excelUtil, "ReReview", Subjects, QuestionsAns);
            // specialConsiderationLib.CheckReReviewAddtionalInfromation(excelUtil.GetDataFromExcel("AddtionalInformation"), excelUtil.GetDataFromExcel("UploadDoc1"));

            // Select Decission and submit form
            commFunc.SelectDecission(excelUtil.GetDataFromExcel("Decission2"), excelUtil.GetDataFromExcel("Decision2Reason"));
            commFunc.SubmitForm();

            //verify form submission confirmation msg
            VerifyIsTrue(commFunc.GetFormSubmissionConfirmationMsg().Contains("submitted successfully"), "Check application Re-Review form submission confrmation message");
            VerifyIsEquals(excelUtil.GetDataFromExcel("Review2FromSubmissonConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check Application form Submission confirmation msg.");
        }