Beispiel #1
0
        public void CreateFailedNewAddressTest()
        {
            //Arrange
            AddressBookPage   addressBook    = new AddressBookPage();
            AddNewAddressPage newAddressPage = addressBook.GoToNewAddressPage();

            newAddressPage.FillAllRequareField(invalidAdressInput.GetFirstName(), invalidAdressInput.GetLastName(),
                                               invalidAdressInput.GetAddress1(), invalidAdressInput.GetCity(), invalidAdressInput.GetPostCode(),
                                               invalidAdressInput.GetCountry(), invalidAdressInput.GetZone()).ClickContinueButton();

            //Act
            bool actual = newAddressPage.AddressForm.IsEmptyInputErrorMessage();

            //Assert
            Assert.IsTrue(actual);
            log.Info("\"Create Failed New Address Test\" pass");
        }
Beispiel #2
0
        public void Test1CreateNewAddressTest(string expected)
        {
            //Arrange
            AddressBookPage   addressBook    = new AddressBookPage();
            AddNewAddressPage newAddressPage = addressBook.GoToNewAddressPage();

            addressBook = newAddressPage.FillAllRequareField(adressInput.GetFirstName(),
                                                             adressInput.GetLastName(), adressInput.GetAddress1(), adressInput.GetCity(),
                                                             adressInput.GetPostCode(), adressInput.GetCountry(), adressInput.GetZone())
                          .Continue();

            //Act
            bool actual = addressBook.IsAddressInTableByShortAddress(expected);

            //Assert
            Assert.IsTrue(actual);
            log.Info("\"Create New Address Test\" pass");
        }