Не запускаются тесты в jenkins не могу понять в чем причина

Проблема при запуске тестов в jenkins.
Pom

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>mosst</groupId>
    <artifactId>p2p</artifactId>
    <version>1.0-SNAPSHOT</version>
    <dependencies>
    <!-- https://mvnrepository.com/artifact/junit/junit -->
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.12</version>
        <scope>test</scope>
    </dependency>
    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.12.0</version>
    </dependency>
        <!-- https://mvnrepository.com/artifact/org.assertj/assertj-core -->
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>3.10.0</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>

Код

public class p2p extends WebSettings{
    @Test
    public void autorisation () {
        driver.get(url);
        Assert.assertEquals(p2pTitle, driver.getTitle());
        driver.findElementByClassName("tel").click();
        driver.findElementById("phone").sendKeys(phonenumber);
        WebDriverWait wait = new WebDriverWait(driver, 10);
            wait.until(ExpectedConditions.visibilityOf(driver.findElementByClassName("reg-pass-icon")));
        driver.findElementByClassName("reg-button").click();

        wait.until(ExpectedConditions.textToBePresentInElement(
                driver.findElementByCssSelector("label[for='password']"), "Пароль"));

        driver.findElementById("password").sendKeys(password);

        wait.until(ExpectedConditions.attributeContains(
                driver.findElementByClassName("reg-button"),
                "background-color",
                "rgba(29, 170, 252, 1)"));

        driver.findElementByClassName("reg-button").click();

        wait.until(ExpectedConditions.textToBePresentInElement(
                driver.findElementByCssSelector("div[class='tel js-user-reg-button']"), buttontext));

        driver.findElementByCssSelector("div[class='tel js-user-reg-button']").click();
        driver.findElementByCssSelector("button[class='profile-view-button']").click();

        wait.until(ExpectedConditions.textToBePresentInElement(
                driver.findElementByClassName("tel"), "Вхід/Реєстрація"));
    }
}

В jenkins тесты не запускаются, пишет BUILD SUCCESS но тесты не запускаются. Помогите пожалуйста! Что необходимо указать, добавить, прописать…

Тут ответ на ваш вопрос

2 лайка