public void CheckReviewFromFieldValues(ExcelUtil excelUtil, string formType, bool[] Subjects, bool[] QuestionsAns) { string testCaseName = new StackTrace().GetFrame(1).GetMethod().Name; if (formType.Equals("MoreInfo")) { checkReviewComment(excelUtil.GetDataFromExcel(testCaseName, "Decision1Reason")); } CheckContactDetailsFiledsValue(excelUtil.GetDataFromExcel(testCaseName, "UserFirstName"), excelUtil.GetDataFromExcel(testCaseName, "UserLastName"), excelUtil.GetDataFromExcel(testCaseName, "JobTitle"), excelUtil.GetDataFromExcel(testCaseName, "UserTeleNumber"), excelUtil.GetDataFromExcel(testCaseName, "UserEmailAddress")); CheckSelectedPupilDetailType(excelUtil.GetDataFromExcel(testCaseName, "PupilDetailType"), excelUtil.GetDataFromExcel(testCaseName, "PupilName")); CheckSelectedSubjects(Subjects); checkedSelctedQuestionsAns(QuestionsAns); string actualDate = comFunc.GetReqFromatDate(seleniumFunc.GetAttributeValue(specialConsiderationPage.DateOfIncidentTextbox, "value"), "dd-MMM-yyyy"); VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "DateOfincident"), actualDate, "Check selected Date of incidenet value"); if (formType.Equals("MoreInfo")) { VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "ReasonForSpecialConsideration"), seleniumFunc.GetSelectedTextFromDropdown(specialConsiderationPage.MoreInfoFormReasonForRequest), "Check selected Reaspon for Special Consideration field value"); } else { VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "ReasonForSpecialConsideration"), seleniumFunc.GetSelectedTextFromDropdown(specialConsiderationPage.ReasonForSpecialConsiderDropDwn), "Check selected Reaspon for Special Consideration field value"); } checkSelectedResonForSpecialConsideration(excelUtil.GetDataFromExcel(testCaseName, "ReasonForSpecialConsideration"), excelUtil.GetDataFromExcel(testCaseName, "RelationshipToPupil"), formType); if (formType.Equals("MoreInfo")) { VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "BrieflyExplain"), specialConsiderationPage.MoreInfoFormBrieflyExplainTextArea.GetAttribute("value"), "Check Briefly Explain field value more info form"); } else { VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "BrieflyExplain"), specialConsiderationPage.ReviewFormBrieflyExplainTextArea.GetAttribute("value"), "Check Briefly Explain field value"); } }