Запуск с терминала

Добавте посте integration-test параметр -e
оно должно отобразить полный стактрейс и сбросте сюда

Готово :smile:

+ Error stacktraces are turned on.
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Sample Thucydides project
    [INFO]    task-segment: [integration-test]
    [INFO] ------------------------------------------------------------------------
    [INFO] [resources:resources {execution: default-resources}]
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /home/user/Downloads/Selenium etc/booking/src/main/resources
    [INFO] [compiler:compile {execution: default-compile}]
    [INFO] Compiling 1 source file to /home/user/Downloads/Selenium etc/booking/target/classes
    [INFO] [resources:testResources {execution: default-testResources}]
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /home/user/Downloads/Selenium etc/booking/src/test/resources
    [INFO] [compiler:testCompile {execution: default-testCompile}]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [surefire:test {execution: default-test}]
    [INFO] Tests are skipped.
    [INFO] [jar:jar {execution: default-jar}]
    [INFO] Building jar: /home/user/Downloads/Selenium etc/booking/target/booking-1.0-SNAPSHOT.jar
    [INFO] [failsafe:integration-test {execution: default}]
    [INFO] Failsafe report directory: /home/user/Downloads/Selenium etc/booking/target/failsafe-reports
    
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
    
    Results :
    
    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
    
    [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Sample Thucydides project
    [INFO]    task-segment: [thucydides:aggregate] (aggregator-style)
    [INFO] ------------------------------------------------------------------------
    [INFO] [thucydides:aggregate {execution: default-cli}]
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    log4j:WARN No appenders could be found for logger (freemarker.cache).
    log4j:WARN Please initialize the log4j system properly.
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 5 seconds
    [INFO] Finished at: Wed Jan 08 16:33:43 EET 2014
    [INFO] Final Memory: 65M/483M
    [INFO] ---------------------------------------------

вообще странно, что запускать не хочет с терминала…

Теряюсь в догадках что это может быть, но думаю гуглить нужно в эту сторону:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

эту ошибку мне выдавало, даже когда тесты запускались

Ты в IDE тесты не через мавен же запускаешь? И они работают. А когда запускаешь через мавен - не работают. Значит проблема в конфигурации мавена.

Ты уверен, что версия плагина правильная? Вот здесь http://mvnrepository.com/artifact/net.thucydides.maven.plugins/maven-thucydides-plugin/ последняя версия указана 0.9.227
Попробуй её использовать.

Если не помогает, тогда покопай в сторону ответа на вопрос: каким образом maven узнаёт где лежат твои тесты?

  1. Да, последняя версия, сегодня весь .pom перерыл, ставя последние версии.

  2. Вот по поводу пути тут да…ну в общем странно…примитивные тесты делал и они легко запускались

    mvn integration-test thucydides:aggregate из директории проекта

Добавьте в название своего класса-сценария слово Test, либо явно укажите шаблон какие классы вы хотите указать.
Еще если вы посмотрите в сгенерированный pom из архетипа (как вам советовали выше), то увидите какой конкретно шаблон используется в майвен-плагине, который вы используете для запуска (сорри, но на этом мои экстрасенсорные способности закончились)

Можно поподробней про “TEST” и шаблон

У вас проблема с конфигурацией pom.xml. Для запуска тестов вам нужно включить в build секцию один из плагинов: maven-surefire-plugin или maven-failsafe-plugin.
Как было сказано выше самые простой способ - это сгенерировать проект из архетипа и заиспользовать полученный pom.xml, вот что есть в этом файле:

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.12</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-failsafe-plugin</artifactId>
                <version>2.12</version>
                <configuration>
                    <includes>
                        <include>**/*Test.java</include>
                        <include>**/Test*.java</include>
                        <include>**/When*.java</include>
                    </includes>
                    <argLine>-Xmx512m</argLine>
                    <parallel>classes</parallel>
                    <systemPropertyVariables>
                        <webdriver.driver>${webdriver.driver}</webdriver.driver>
                    </systemPropertyVariables>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
<!--
                            <goal>verify</goal>
-->
                        </goals>
                    </execution>
                </executions>
            </plugin>

Дефолтные name convention для тестовых классов:

  1. maven-surefire-plugin
    Maven Surefire Plugin – Inclusions and Exclusions of Tests

  2. maven-failsafe-plugin
    Maven Failsafe Plugin – Inclusions and Exclusions of Tests

В примере выше видно как переопределяется шаблон для используемого maven-failsafe-plugin плагина. Вроде как все понятно.

Еще раз повторюсь - генерируйте проект из архетипа, он создает правильную структуру pom.xml со всеми зависимостями необходимыми фукудиду, все остальное что вам понадобится подключить легко.

сгенерировал по примеру, использовал развичто последнюю версию, этот архетип даже не запускается :slight_smile:
вернее запускается, но даже юрл не грузит :slight_smile: с .pom’ом разобрался, нашёл удачную конфигурацию, ну как нашёл , намешал :slight_smile: перебирал очень много вариантов…проблемы остались с терминалом:)

Вы делаете что-то не так. Если бы делали все правильно, у вас бы все заработало. Ошибки в правильности генерации из архетипа быть не может.

Не нужно там ничего мешать. Если проект сгенерился из архетипа (в данном случае версии 0.9.229) он уже готов к запуску. Если вы не используете ничего дополнительного кроме того что уже есть в архетипе - не трогайте ваш pom.xml

После того как проект сгенерировался - вы должны получить следующий пом:

<?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>untitled</groupId>
    <artifactId>untitled</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>Sample Thucydides project</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <thucydides.version>0.9.229</thucydides.version>
        <webdriver.driver>firefox</webdriver.driver>
    </properties>

    <dependencies>
        <dependency>
            <groupId>net.thucydides</groupId>
            <artifactId>thucydides-core</artifactId>
            <version>${thucydides.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.6.1</version>
        </dependency>
        <dependency>
            <groupId>net.thucydides</groupId>
            <artifactId>thucydides-junit</artifactId>
            <version>${thucydides.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.easytesting</groupId>
            <artifactId>fest-assert</artifactId>
            <version>1.4</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.12</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-failsafe-plugin</artifactId>
                <version>2.12</version>
                <configuration>
                    <includes>
                        <include>**/*Test.java</include>
                        <include>**/Test*.java</include>
                        <include>**/When*.java</include>
                    </includes>
                    <argLine>-Xmx512m</argLine>
                    <parallel>classes</parallel>
                    <systemPropertyVariables>
                        <webdriver.driver>${webdriver.driver}</webdriver.driver>
                    </systemPropertyVariables>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>net.thucydides.maven.plugins</groupId>
                <artifactId>maven-thucydides-plugin</artifactId>
                <version>${thucydides.version}</version>
                <executions>
                    <execution>
                        <id>thucydides-reports</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>aggregate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>maven2</id>
            <activation>
                <file>
                    <missing>${basedir}</missing>
                </file>
            </activation>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>net.thucydides.maven.plugins</groupId>
                        <artifactId>maven-thucydides-plugin</artifactId>
                        <version>${thucydides.version}</version>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>maven3</id>
            <activation>
                <file>
                    <exists>${basedir}</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-site-plugin</artifactId>
                        <version>3.0-beta-3</version>
                        <configuration>
                            <reportPlugins>
                                <plugin>
                                    <groupId>net.thucydides.maven.plugins</groupId>
                                    <artifactId>maven-thucydides-plugin</artifactId>
                                    <version>${thucydides.version}</version>
                                </plugin>
                            </reportPlugins>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>

Возьмите мой и строка в строку сравните с вашим. Если у Вас что-то не запускается при pom.xml такого вида, значит проблему нужно искать в другом месте.

Стандартные тесты которые генерятся из архетипа запускаются?

Какая версия maven у вас установлена?

Apache Maven 2.2.1 (rdebian-8)
Java version: 1.7.0_45
Java home: /usr/lib/jvm/jdk1.7.0_45/jre

Стандартные тесты из архетипа запускаются, но он даже по URL перейти не может, такое ощущение, что запускается не вебдрайвер, а браузер

Обновил до Apache Maven 3.0.4 ничего не изменилось

c твоим помом ситуация получше :slight_smile: стандартный архетип запускается, поудалял, закинул свой код :slight_smile:

mvn integration-test thucydides:aggregate -e

то же самое, IDE видит, терминал нет :smile:

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building test 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ test ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/Downloads/Selenium etc/test/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ test ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ test ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ test ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.12:integration-test (default) @ test ---
[INFO] Failsafe report directory: /home/user/Downloads/Selenium etc/test/target/failsafe-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building test 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-thucydides-plugin:0.9.229:aggregate (default-cli) @ test ---
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.515s
[INFO] Finished at: Fri Jan 10 10:51:05 EET 2014
[INFO] Final Memory: 18M/333M

Пфффф ясно понятно. Установите последнюю версию maven 3.1.1
http://maven.apache.org/download.cgi

Не забудте правильно прописать переменные окружения

После этого заново сгенерите проект из архетипа и запустите.

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 18:22:22+0300)

mvn integration-test thucydides:aggregate

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Sample Thucydides project 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/Downloads/Selenium etc/test1/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ test1 ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ test1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/Downloads/Selenium etc/test1/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ test1 ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ test1 ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ test1 ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.12:integration-test (default) @ test1 ---
[INFO] Failsafe report directory: /home/user/Downloads/Selenium etc/test1/target/failsafe-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Sample Thucydides project 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-thucydides-plugin:0.9.229:aggregate (default-cli) @ test1 ---
[INFO] LOADING LOCAL THUCYDIDES PROPERTIES FROM /home/user/thucydides.properties 
[INFO] LOADING LOCAL THUCYDIDES PROPERTIES FROM /home/user/Downloads/Selenium etc/test1/thucydides.properties 
[INFO] LOADING LOCAL THUCYDIDES PROPERTIES FROM /home/user/Downloads/Selenium etc/test1/thucydides.properties 
[INFO] Using requirements providers: [net.thucydides.core.statistics.service.AnnotationBasedTagProvider@5b21399a, net.thucydides.core.statistics.service.FeatureStoryTagProvider@624cdc33, net.thucydides.core.requirements.FileSystemRequirementsTagProvider@240ccab0, net.thucydides.core.requirements.AnnotationBasedTagProvider@43cefb4d]
[INFO] ADDING REQUIREMENTS PROVIDER net.thucydides.core.requirements.FileSystemRequirementsTagProvider@240ccab0
[INFO] ADDING REQUIREMENTS PROVIDER net.thucydides.core.requirements.AnnotationBasedTagProvider@43cefb4d
[INFO] Reading requirements from net.thucydides.core.requirements.FileSystemRequirementsTagProvider@240ccab0
[INFO] Reading requirements from net.thucydides.core.requirements.AnnotationBasedTagProvider@43cefb4d
[INFO] Requirements found:[]
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
[INFO] Generating release reports for: []
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.368s
[INFO] Finished at: Fri Jan 10 12:03:20 EET 2014
[INFO] Final Memory: 22M/332M

package test.steps;

import net.thucydides.core.annotations.Step;
import net.thucydides.core.pages.Pages;
import net.thucydides.core.steps.ScenarioSteps;
import test.pages.*;

public class JExecute extends ScenarioSteps {
    JBooking getBookingSteps;

    public JExecute (Pages pages) {
        super(pages);
    }

    @Step
    public void getStarting () {
        getBookingSteps.ClickOnSearchInputField();
        getBookingSteps.ClickOnCalendar();
        getBookingSteps.ClickOnNextArrow();
        getBookingSteps.ClickOnNextArrow();
        getBookingSteps.ClickOnNextArrow();
        getBookingSteps.SelectDate();
        getBookingSteps.ClickOnFindAHotel();
    }

    @Step
    public void BookNow () {
        getBookingSteps.ClickOnFirstBookNowButton();
        getBookingSteps.ClickOnFirstBookNowButton2();
    }

    @Step
    public void FillFields () {
        getBookingSteps.SelectTitle();
        getBookingSteps.InputFirstName();
        getBookingSteps.InputLastName();
        getBookingSteps.InputAdress1();
        getBookingSteps.SelectCountry();
        getBookingSteps.InputCity();
        getBookingSteps.InputPostalCode();
        getBookingSteps.SelectPhone();
        getBookingSteps.InputEmail();
        getBookingSteps.SubmitInformation();
    }

    @Step
    public void CardDetails () {
        getBookingSteps.InputCardDetails();
    }

    @Step
    public void ConfirmBooking () {
        getBookingSteps.ConfirmBookingButton();
    }

    @Step
    public void CancelReservation () {
        getBookingSteps.CancelReservation();
    }



}

///////////////////////////////////////

package test.requirements;

import net.thucydides.core.annotations.Feature;

public class Application {
    @Feature
    public class Search {
        public class test {}
    }
}

//////////////////////////////

package test.pages;

import net.thucydides.core.annotations.DefaultUrl;
import org.openqa.selenium.support.FindBy;
import net.thucydides.core.pages.PageObject;
import org.openqa.selenium.*;

@DefaultUrl("https://www..com/")
public class JBooking extends PageObject {

    @FindBy(id = ("search-hotel"))
    WebElement search_input_field;

    @FindBy(id = ("fromDateFormatted"))
    WebElement calendar;

    @FindBy(linkText = ("Next"))
    WebElement calendar_next_button;

    @FindBy(xpath = ("//a[contains(text(),'11')]"))
    WebElement date;

    @FindBy(xpath = ("//cufon[3]/canvas"))
    WebElement find_a_hotel;

    @FindBy(xpath = ("//div[2]/div/div[2]/div[2]/div[2]/a"))
    WebElement book_now_first;

    @FindBy(xpath = ("//div[4]/div[3]/a[2]"))
    WebElement book_now_second;

    @FindBy(xpath = ("//div[3]/form/div/div/div/a/span"))
    WebElement title_drop_down;

    @FindBy(xpath = ("//ul[12]/li[2]/a"))
    WebElement title_select;

    @FindBy(xpath = ("//div[3]/form/div/div[2]/input"))
    WebElement first_name;

    @FindBy(xpath = ("//div/div[3]/input"))
    WebElement last_name;

    @FindBy(xpath = ("//div[6]/input"))
    WebElement adress1;

    @FindBy(xpath = ("//div[8]/div/a/span"))
    WebElement country_drop_down;

    @FindBy(xpath = ("//li[184]/a"))
    WebElement select_russian_federation;

    @FindBy(xpath = ("//div[9]/input"))
    WebElement city;

    @FindBy(xpath = ("//div[11]/input"))
    WebElement postal_code;

    @FindBy(xpath = ("//div[12]/div[2]/a/span"))
    WebElement phone_type_drop_down;

    @FindBy(xpath = ("//ul[15]/li[4]/a"))
    WebElement select_mobile;

    @FindBy(xpath = ("//div[12]/div[3]/input"))
    WebElement int_code;

    @FindBy(xpath = ("//div[12]/div[4]/input"))
    WebElement area;

    @FindBy(xpath = ("//div[5]/input"))
    WebElement phone;

    @FindBy(xpath = ("//div[12]/div[6]/input"))
    WebElement phone_2;

    @FindBy(xpath = ("//div[13]/input"))
    WebElement email;

    @FindBy(xpath = ("//p/button"))
    WebElement submit_pers_information;

    @FindBy(name = ("cardHolderName"))
    WebElement name_on_card;

    @FindBy(xpath = ("//form/div[2]/div/a/span"))
    WebElement card_type_drop_down;

    @FindBy(xpath = ("//ul[26]/li[7]/a"))
    WebElement card_type_visa;

    @FindBy(name = ("cardNumber"))
    WebElement card_number;

    @FindBy(xpath = ("//div[4]/div/a/span"))
    WebElement exp_month;

    @FindBy(xpath = ("//ul[27]/li[7]/a"))
    WebElement exp_month_june;

    @FindBy(xpath = ("//div[4]/div[2]/a/span"))
    WebElement exp_year;

    @FindBy(xpath = ("//ul[28]/li[3]/a"))
    WebElement exp_year_2014;

    @FindBy(name = ("policy"))
    WebElement policy;

    @FindBy(xpath = ("//div[5]/button[2]"))
    WebElement submit_card;

    @FindBy(xpath = ("//div[4]/div/div[5]/div/div/a"))
    WebElement submit_booking;

    @FindBy(xpath = ("//div[2]/div/ul/li[2]/a"))
    WebElement modify_reservation;

    @FindBy(name = ("LastName"))
    WebElement last_name_for_modify;

    @FindBy(name = ("FindReservation"))
    WebElement find_by_name_button;

    @FindBy(xpath = ("//div[2]/div/a/cufon/canvas"))
    WebElement cancel_button;

    @FindBy(xpath = ("//div[9]/div/div/div/form/div[2]/a/cufon/canvas"))
    WebElement click_yes;

    public JBooking(WebDriver driver) {
        super(driver);
    }

    public void ClickOnSearchInputField()
    {
        element(search_input_field).type(" test, test ");
    }

    public void ClickOnCalendar()
    {
        calendar.click();
    }
...........

}

Ну неужели еще не догадались?

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

Не видит он ваши тесты.

Смотрим сюда

<include>**/*Test.java</include>
<include>**/Test*.java</include>
<include>**/When*.java</include>

Интерполируем на ваши же посты.

2 лайка

Чесно, я хз что у тебя не так. Проверь пермишены папок/пользователя/груп от которого/откуда запускается билд.
Потанцуй с бубдном, покури бамбук.

<?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>test</groupId>
    <artifactId>test</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>Sample Thucydides project</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <thucydides.version>0.9.229</thucydides.version>
        <webdriver.driver>firefox</webdriver.driver>
    </properties>

    <dependencies>
        <dependency>
            <groupId>net.thucydides</groupId>
            <artifactId>thucydides-core</artifactId>
            <version>${thucydides.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.6.1</version>
        </dependency>
        <dependency>
            <groupId>net.thucydides</groupId>
            <artifactId>thucydides-junit</artifactId>
            <version>${thucydides.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.easytesting</groupId>
            <artifactId>fest-assert</artifactId>
            <version>1.4</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.12</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-failsafe-plugin</artifactId>
                <version>2.12</version>
                <configuration>
                    <includes>
                        <include>**/*Test.java</include>
                        <include>**/Test*.java</include>
                        <include>**/When*.java</include>
                    </includes>
                    <argLine>-Xmx512m</argLine>
                    <parallel>classes</parallel>
                    <systemPropertyVariables>
                        <webdriver.driver>${webdriver.driver}</webdriver.driver>
                    </systemPropertyVariables>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>net.thucydides.maven.plugins</groupId>
                <artifactId>maven-thucydides-plugin</artifactId>
                <version>${thucydides.version}</version>
                <executions>
                    <execution>
                        <id>thucydides-reports</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>aggregate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>maven2</id>
            <activation>
                <file>
                    <missing>${basedir}</missing>
                </file>
            </activation>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>net.thucydides.maven.plugins</groupId>
                        <artifactId>maven-thucydides-plugin</artifactId>
                        <version>${thucydides.version}</version>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>maven3</id>
            <activation>
                <file>
                    <exists>${basedir}</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-site-plugin</artifactId>
                        <version>3.0-beta-3</version>
                        <configuration>
                            <reportPlugins>
                                <plugin>
                                    <groupId>net.thucydides.maven.plugins</groupId>
                                    <artifactId>maven-thucydides-plugin</artifactId>
                                    <version>${thucydides.version}</version>
                                </plugin>
                            </reportPlugins>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>

так есть же оно в .pom

Хм кстати возможно. У меня все классы с тестами имеют Test как составляющую названия класса