правильно ли заполнены
инпуты.
Все на одной странице.
private SoftAssert softAssert = new SoftAssert();
@Test(description = "Check user personal data")
public void userInfoTest(){
app.getNavigationHelper().goToMyInfoMenu();
softAssert.assertEquals(app.getAttributeHelper().getUserGender(), app.getUser().getGender());
softAssert.assertEquals(app.getAttributeHelper().getUserName(), app.getUser().getUserName());
softAssert.assertEquals(app.getAttributeHelper().getLastName(), app.getUser().getLastName());
softAssert.assertEquals(app.getAttributeHelper().getFirstName(), app.getUser().getFirstName());
softAssert.assertEquals(app.getAttributeHelper().getDateOfBirth(), app.getUser().getDateOfBirth());
softAssert.assertEquals(app.getAttributeHelper().getAddress(), app.getUser().getAddress());
softAssert.assertEquals(app.getAttributeHelper().getZipCode(), app.getUser().getZipCode());
softAssert.assertEquals(app.getAttributeHelper().getCity(), app.getUser().getTown());
softAssert.assertEquals(app.getAttributeHelper().getPhone(), app.getUser().getMobilePhone());
softAssert.assertEquals(app.getAttributeHelper().getLanguage(), app.getUser().getLanguage());
softAssert.assertAll();
}
Мне норм
softAssert.assertEquals(actualUserForm.UserGender, expectedUserForm.UserGender); softAssert.assertEquals(actualUserForm.UserName, expectedUserForm.UserName); softAssert.assertEquals(actualUserForm.LastName, expectedUserForm.LastName); softAssert.assertEquals(actualUserForm.FirstName, expectedUserForm.FirstName); softAssert.assertEquals(actualUserForm.DateOfBirth, expectedUserForm.DateOfBirth); softAssert.assertEquals(actualUserForm.Address, expectedUserForm.Address); softAssert.assertEquals(actualUserForm.ZipCode, expectedUserForm.ZipCode); softAssert.assertEquals(actualUserForm.City, expectedUserForm.City); softAssert.assertEquals(actualUserForm.Phone, expectedUserForm.Phone); softAssert.assertEquals(actualUserForm.Language, expectedUserForm.Language); softAssert.assertAll();
Обсуждают сегодня