public void BTA13_CSP_UpdateMemberWithMaximumValues() { ProjectBasePage basePages = new ProjectBasePage(driverContext); testCase = new TestCase(TestContext.TestName); listOfTestSteps = new List <TestStep>(); testStep = new TestStep(); login.UserName = CsPortalData.csadmin; login.Password = CsPortalData.csadmin_password; try { #region Generating Test Data to Create new user with loyalty card MemberProfile MP_Model = new MemberProfile(DriverContext); Member member = MP_Model.GenerateMemberBasicInfoWithAboveMaxValues(); MemberDetails details = MP_Model.GenerateMemberDetailsWithAboveMaxValues(); VirtualCard vc = MP_Model.GenerateVirtualCardAboveMaxValues(); #endregion var CSP_HomePage = new CSPortal_HomePage(DriverContext); var CSP_LoginPage = new CSPortal_LoginPage(DriverContext); var CSPSearchPage = new CSPortal_SearchPage(DriverContext); var CSPAccountSummaryPage = new CSPortal_MemberAccountSummaryPage(DriverContext); var CSP_UpdateProfilePage = new CSPortal_MemberUpdateProfilePage(DriverContext); basePages.CreateMember_UsingSoap(out member, out string LoyaltyId, listOfTestSteps); CSP_LoginPage.LaunchCSPortal(login.Csp_url, listOfTestSteps); CSP_LoginPage.LoginCSPortal(login, listOfTestSteps); CSPSearchPage.Search_BasedOnLoyaltyID(LoyaltyId, listOfTestSteps); CSPSearchPage.Select(member.FirstName, listOfTestSteps); CSP_HomePage.NavigateToDashBoardMenu(CSPortal_HomePage.DashBoard.UpdateProfile, listOfTestSteps); member = MP_Model.GenerateMemberBasicInfoWithAboveMaxValues(); details = MP_Model.GenerateMemberDetailsWithAboveMaxValues(); CSP_UpdateProfilePage.UpdateBasicInfo_Details(member, details, listOfTestSteps); CSP_UpdateProfilePage.UpdateAddress_Details(details, listOfTestSteps); CSP_UpdateProfilePage.UpdateContactInfo_Details(details, member, listOfTestSteps); CSP_UpdateProfilePage.SaveUpdateProfile(listOfTestSteps); string Member_FirstName = member.FirstName.Substring(0, 50); CSPAccountSummaryPage.VerifyFirstName(Member_FirstName, listOfTestSteps); string Member_LastName = member.LastName.Substring(0, 50); CSPAccountSummaryPage.VerifyLastName(Member_LastName, listOfTestSteps); string Member_PrimaryEmailAddress = member.PrimaryEmailAddress.Substring(0, 254); CSPAccountSummaryPage.VerifyPrimaryEmail(Member_PrimaryEmailAddress, listOfTestSteps); string Member_details_AddressLineOne = details.AddressLineOne.Substring(0, 100); CSPAccountSummaryPage.VerifyAddressLine1(Member_details_AddressLineOne, listOfTestSteps); string Member_details_AddressLineTwo = details.AddressLineTwo.Substring(0, 100); CSPAccountSummaryPage.VerifyAddressLine2(Member_details_AddressLineTwo, listOfTestSteps); string Member_details_City = details.City.Substring(0, 50); CSPAccountSummaryPage.VerifyCity(Member_details_City, listOfTestSteps); CSPAccountSummaryPage.VerifyState(details.StateOrProvince, listOfTestSteps); string Member_details_ZipCode = details.ZipOrPostalCode.Substring(0, 25); CSPAccountSummaryPage.VerifyZipCode(Member_details_ZipCode, listOfTestSteps); CSP_HomePage.LogoutCSPortal(listOfTestSteps); testCase.SetStatus(true); } catch (Exception e) { testCase.SetStatus(false); testCase.SetErrorMessage(e.Message); testCase.SetImageContent(DriverContext.TakeScreenshot().ToString()); Assert.Fail(); } finally { testCase.SetTestCaseSteps(listOfTestSteps); testCase.SetEndTime(new StringHelper().GetFormattedDateTimeNow()); listOfTestCases.Add(testCase); } }