public void A6_VerifyCustomerUpdate() { UpdateCustomerData updateCustomerData = EnterNewCustomerPage.GetUpdateCustomerData(updateCustomerFeatureParsedData); string firstNameUnique = CommonFunctions.AppendInRangeRandomString(updateCustomerData.FirstName); string lastNameUnique = CommonFunctions.AppendInRangeRandomString(updateCustomerData.LastName); //Updating Information of Customer Information Section _EnterNewCustomerPage.ClickEditButton("contactEdit"); _EnterNewCustomerPage.EnterFirstName(firstNameUnique).EnterLastName(lastNameUnique); List <Tuple <string, string> > phones = _EnterNewCustomerPage.AddCustomerPhones(updateCustomerData.Phones); List <string> emails = _EnterNewCustomerPage.AddCustomerEmails(updateCustomerData.Emails); _EnterNewCustomerPage.ClickEditSaveButton(); //Updating Information of Address Section _EnterNewCustomerPage.ClickEditButton("addressEdit"); _EnterNewCustomerPage.AddCustomerAddresses(updateCustomerData.Addresses); _EnterNewCustomerPage.ClickEditSaveButton(); //Updating Information of Tax Section _EnterNewCustomerPage.ClickEditButton("exemptionEdit"); _EnterNewCustomerPage.AddCustomerTaxNumbers(updateCustomerData.TaxNumbers); _EnterNewCustomerPage.ClickEditSaveButton(); Assert.True(_EnterNewCustomerPage.VerifCustomerIsCreatedWithValidFirstName(firstNameUnique)); Assert.True(_EnterNewCustomerPage.VerifCustomerIsCreatedWithValidLastName(lastNameUnique)); Assert.True(_EnterNewCustomerPage.VerifyPhoneNumberAndPhoneType()); Assert.True(_EnterNewCustomerPage.VerifyEmailAddress()); Assert.True(_EnterNewCustomerPage.VerifyAddressine2()); Assert.True(_EnterNewCustomerPage.VerifyAddress()); Assert.True(_EnterNewCustomerPage.VerifyTaxidNumberAndState()); }
public void A5_VerifyCustomerCreation() { string firstNameUnique = CommonFunctions.AppendInRangeRandomString(newCustomerData.FirstName); string lastNameUnique = CommonFunctions.AppendInRangeRandomString(newCustomerData.LastName); _EnterNewCustomerPage.ClickEnterNewCustomerButton().EnterFirstName(firstNameUnique).EnterLastName(lastNameUnique); List <Tuple <string, string> > phones = _EnterNewCustomerPage.AddCustomerPhones(newCustomerData.Phones); List <string> emails = _EnterNewCustomerPage.AddCustomerEmails(newCustomerData.Emails); _EnterNewCustomerPage.ClickOnAddressLine1().ContinueNewCustomerCreation(); _EnterNewCustomerPage.AddCustomerAddresses(newCustomerData.Addresses); _EnterNewCustomerPage.AddCustomerTaxNumbers(newCustomerData.TaxNumbers); _EnterNewCustomerPage.ClickSaveButton().ContinueNewCustomerCreation(); //commenting this assertion because if somehow CUsotmer suggetion popup is not displayed then it takes time 30 sec to wait for the popup till than greenbar gets disappear and assertion gets failed // Assert.True(_EnterNewCustomerPage.VerifyGreedbarAfterEditIsSuccessful()); Assert.True(_EnterNewCustomerPage.VerifyCustomerCreation("Open Activity")); Assert.True(_EnterNewCustomerPage.VerifyEditButtonAvailable()); Assert.True(_EnterNewCustomerPage.VerifCustomerIsCreatedWithValidFirstName(firstNameUnique)); Assert.True(_EnterNewCustomerPage.VerifCustomerIsCreatedWithValidLastName(lastNameUnique)); Assert.True(_EnterNewCustomerPage.VerifyPhoneNumberAndPhoneType()); Assert.True(_EnterNewCustomerPage.VerifyEmailAddress()); Assert.True(_EnterNewCustomerPage.VerifyAddressine2()); Assert.True(_EnterNewCustomerPage.VerifyAddress()); Assert.True(_EnterNewCustomerPage.VerifyTaxidNumberAndState()); }