Перейти к содержимому

Cleo12

Регистрация: 04 янв 2017
Offline Активность: 24 сен 2018 14:02
-----

Мои темы

Создается пустой allure report

11 сентября 2018 - 09:45

<?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>testProject</groupId>
    <artifactId>testProject</artifactId>
    <version>1.0-SNAPSHOT</version>
    <name>testProject</name>
    <description>testProject</description>


    <properties>
        <suiteXmlFile>testng.xml</suiteXmlFile>
        <aspectj.version>1.8.13</aspectj.version>
        <allure.version>1.5.4</allure.version>

    </properties>

    <dependencies>


        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>3.14.0</version>
        </dependency>


        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>6.14.3</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.codeborne</groupId>
            <artifactId>selenide</artifactId>
            <version>4.14.1</version>
        </dependency>

        <dependency>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-maven-plugin</artifactId>
            <version>2.6</version>
        </dependency>

        <dependency>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-testng-adaptor</artifactId>
            <version>${allure.version}</version>
        </dependency>

    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.20.1</version>
                    <configuration>

                        <testFailureIgnore>false</testFailureIgnore>
                        <argLine>
                            -javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
                        </argLine>

                        <suiteXmlFiles>
                            <suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
                        </suiteXmlFiles>

                    </configuration>
                    <dependencies>

                        <dependency>
                            <groupId>org.aspectj</groupId>
                            <artifactId>aspectjweaver</artifactId>
                            <version>${aspectj.version}</version>
                        </dependency>

                        <dependency>

                            <groupId>org.slf4j</groupId>
                            <artifactId>slf4j-jdk14</artifactId>
                            <version>1.7.25</version>

                        </dependency>


                        <dependency>
                            <groupId>org.slf4j</groupId>
                            <artifactId>slf4j-api</artifactId>
                            <version>1.7.25</version>
                        </dependency>

                        <dependency>
                            <groupId>org.slf4j</groupId>
                            <artifactId>slf4j-simple</artifactId>
                            <version>1.7.25</version>
                            <scope>compile</scope>
                        </dependency>

                    </dependencies>

                </plugin>


                <plugin>

                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.7.0</version>
                    <configuration>
                        <source>1.8</source>
                        <target>1.8</target>
                        <encoding>Cp1252</encoding>
                    </configuration>

                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <reporting>
        <excludeDefaults>true</excludeDefaults>
        <plugins>
            <plugin>
                <groupId>ru.yandex.qatools.allure</groupId>
                <artifactId>allure-maven-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <version>1.5.4</version>
                    <properties>

                        <allureResultsDirectory>${basedir}/target/allure-results
                        </allureResultsDirectory>

                    </properties>

                </configuration>

            </plugin>
        </plugins>

    </reporting>


</project>
 

Здравствуйте. Подскажите пожалуйста, проходят тесты, а allure report пустой

 

[testProject] $ C:\Users\bravo\.jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\Allure2\bin\allure.bat generate -c -o C:\Users\bravo\.jenkins\workspace\testProject\allure-report
allure-results does not exists
Report successfully generated to C:\Users\bravo\.jenkins\workspace\testProject\allure-report
Allure report was successfully generated.

Почему-то он генерится в C:\Users\bravo\.jenkins\workspace\testProject\allure-report, хотя  путь в настройках "Post-build Actions" указал другой D:\testProject\Project\target\allure-results


Как перебрать значения из фільтра?

18 апреля 2018 - 15:27

Здравствуйте. Подскажите пожалуйста, если есть выдающий список (у которого есть элементы visible и disabled), дальше я фильтрую visible как мне после этого пройти по каждому visible элементу и нажать клик, к примеру (visibleElement1).click ();

.conner .select_f.shouldBe(text "Hard");

как мне после этого пройти повіаквіваі
              String[] textsVisible = $$(By.cssSelector ( ".conner .select_f" ))  .filter(Condition.visible)
как мне после этого пройти покак мне после этого пройти по
 
как мне после этого пройти покак мне после этого пройти по