Search in sources :

Example 1 with Severity

use of io.qameta.allure.Severity in project healenium-example-maven by healenium.

the class CssTest method testCssAttribute.

@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css attribute")
public void testCssAttribute() {
    FrameworkPage callbackTestPage = pages.get(String.valueOf(PagesType.CALLBACK));
    boolean result = callbackTestPage.openPage().clickAddSquareButton().verifySquareElement();
    assertTrue(result, "Element with css enabled");
    for (int i = 0; i <= 2; i++) {
        result = callbackTestPage.clickUpdateSquareButton().verifySquareElement();
        assertTrue(result, "Element with css was healed");
    }
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 2 with Severity

use of io.qameta.allure.Severity in project healenium-example-maven by healenium.

the class CssTest method testCssClassName.

@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css ClassName")
public void testCssClassName() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.CSS, ".test_class").clickSubmitButton().findTestElement(LocatorType.CSS, ".test_class");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 3 with Severity

use of io.qameta.allure.Severity in project healenium-example-maven by healenium.

the class CssTest method testCssId.

@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css id")
public void testCssId() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.CSS, "#change_id").clickSubmitButton().findTestElement(LocatorType.CSS, "#change_id");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 4 with Severity

use of io.qameta.allure.Severity in project healenium-example-maven by healenium.

the class CssTest method testCssIdSpecialCharacter.

@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css id with special character")
public void testCssIdSpecialCharacter() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.CSS, "input#change\\:name").clickSubmitButton().findTestElement(LocatorType.CSS, "input#change\\:name");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 5 with Severity

use of io.qameta.allure.Severity in project healenium-example-maven by healenium.

the class CssTest method testCssChecked.

@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css Checked")
public void testCssChecked() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.CSS, "input:checked").clickSubmitButton().findTestElement(LocatorType.CSS, "input:checked");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Aggregations

Severity (io.qameta.allure.Severity)71 Description (io.qameta.allure.Description)69 Test (org.testng.annotations.Test)36 FrameworkPage (com.epam.healenium.FrameworkPage)34 Test (org.junit.jupiter.api.Test)34 LoginPage (test.java.pageobjects.theInternet.LoginPage)12 Issue (io.qameta.allure.Issue)11 Story (io.qameta.allure.Story)11 TmsLink (io.qameta.allure.TmsLink)11 Response (io.restassured.response.Response)8 Random (java.util.Random)5 WebElement (org.openqa.selenium.WebElement)5 LinkedList (java.util.LinkedList)2 Cookie (org.openqa.selenium.Cookie)2 PhpTravels_Home_Page (phptravels.gui.pages.PhpTravels_Home_Page)2 ItemAttributesRQ (com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ)1 LoginPage (com.pages.LoginPage)1 IOException (java.io.IOException)1 PhpTravels_BoatsDetails_Page (phptravels.gui.pages.PhpTravels_BoatsDetails_Page)1 PhpTravels_UserAccount_Page (phptravels.gui.pages.PhpTravels_UserAccount_Page)1