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

Фотография

Ошибка при установке thucydides


  • Авторизуйтесь для ответа в теме
Сообщений в теме: 7

#1 Ivonin

Ivonin

    Новый участник

  • Members
  • Pip
  • 42 сообщений

Отправлено 01 мая 2019 - 20:07

Что хочет не пойму, все по инструкции ))
 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.0:generate (default-cli) on project standalone-pom: The desired archetype does not exist (net.thucydides:thucydides-jbehave-archetype:0.9.275) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] Maven execution terminated abnormally (exit code 1)

  • 0

#2 user12

user12

    Специалист

  • Members
  • PipPipPipPipPip
  • 894 сообщений
  • ФИО:Виктор
  • Город:Минск


Отправлено 01 мая 2019 - 20:12

Забудь про thucydides, его уже никто не использует. Юзай Allure какой-нибудь


  • 0

#3 Ivonin

Ivonin

    Новый участник

  • Members
  • Pip
  • 42 сообщений

Отправлено 01 мая 2019 - 20:28

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


  • 0

#4 Ivonin

Ivonin

    Новый участник

  • Members
  • Pip
  • 42 сообщений

Отправлено 02 мая 2019 - 08:59

Подскажите где отчет вообще искать в allure на windows ... 


  • 0

#5 user12

user12

    Специалист

  • Members
  • PipPipPipPipPip
  • 894 сообщений
  • ФИО:Виктор
  • Город:Минск


Отправлено 02 мая 2019 - 10:48

https://habr.com/ru/...nk/blog/358836/

 

target/allure-results

тебе надо файл index.html

 

Если через Jenkins, то скачивай Allure plugin, и у тебя возле каждой джобы будет значок, на который кликаешь и открывается отчет


  • 1

#6 Ivonin

Ivonin

    Новый участник

  • Members
  • Pip
  • 42 сообщений

Отправлено 02 мая 2019 - 13:13

В общем вот что я сделал:

- установил через scoop allure 

- в 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>xxx</groupId>
<artifactId>xxx</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
    <aspectj.version>1.8.10</aspectj.version>
</properties>

<dependencies>
    <dependency>
        <groupId>io.qameta.allure</groupId>
        <artifactId>allure-junit4</artifactId>
        <version>2.10.0</version>
        <scope>test</scope>
    </dependency>

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


</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.20</version>
            <configuration>
                <testFailureIgnore>false</testFailureIgnore>
                <argLine>
                    -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
                </argLine>
                <properties>
                    <property>
                        <name>listener</name>
                        <value>io.qameta.allure.junit4.AllureJunit4</value>
                    </property>
                </properties>
            </configuration>
            <dependencies>
                <dependency>
                    <groupId>org.aspectj</groupId>
                    <artifactId>aspectjweaver</artifactId>
                    <version>${aspectj.version}</version>
                </dependency>
            </dependencies>
        </plugin>

        <plugin>
            <groupId>io.qameta.allure</groupId>
            <artifactId>allure-maven</artifactId>
            <version>2.9</version>
            <configuration>
                <reportVersion>2.10.0</reportVersion>
            </configuration>
        </plugin>


    </plugins>
</build>


</project>

Вот мои файлы, в одном типа шаги а в другом тесты

package ru.xxx;

import io.qameta.allure.Step;
import org.openqa.selenium.WebDriver;

public class Yandex extends Methods{
    public Yandex(WebDriver driver) {

        super(driver);
    }
    @Step
    public void show (String id, String key){

        findByIdAndSendKey(id, key);
    }
    @Step
    public String temperature(){
        return readTemperatureValueAndReturnText();
    }
    @Step
    public void displayTemperature(String alert){
        jsAlert(alert);

    }
}

package ru.xxx;

import io.qameta.allure.Description;
import io.qameta.allure.Step;
import io.qameta.allure.junit4.DisplayName;
import org.junit.Test;
import org.openqa.selenium.chrome.ChromeDriver;

public class YandexTest {

    private WebDriverSettings settings;
    private ChromeDriver driver;
    public String id = "text";
    public String key = "погода в Москве";
    public YandexTest(){
        this.settings = new WebDriverSettings();
        this.driver = this.settings.driver();
    }

    @Test
    @DisplayName("Тестируем Яндекс")
    @Description("Здесь можно написать описание теста")
    public void test(){
        Yandex yandex = new Yandex(driver);

        driver.get("https://yandex.ru/");
        // осуществляем поиск
        yandex.show (id, key);
        // выводим температуру в консоль
        String temperature = yandex.temperature();
        // выводим температуру на экран
        yandex.displayTemperature(temperature);
        driver.quit();

    }
}

Затем сделал папку target/allure-results и в ней index.html

Теперь запускаю из этой папки из командной строки команду allure serve

 

В итоге пустой отчет получается ... ((

 

 

Прикрепленные файлы


  • 0

#7 user12

user12

    Специалист

  • Members
  • PipPipPipPipPip
  • 894 сообщений
  • ФИО:Виктор
  • Город:Минск


Отправлено 02 мая 2019 - 13:43

Версия мавен какая ?

 

Вот пример, всего пару месяцев назад обновляли. Должно работать

https://github.com/a...e-junit-example


  • 0

#8 Ivonin

Ivonin

    Новый участник

  • Members
  • Pip
  • 42 сообщений

Отправлено 02 мая 2019 - 18:00

Версия мавен какая ?

Последняя ... )) 


  • 0


Количество пользователей, читающих эту тему: 0

0 пользователей, 0 гостей, 0 анонимных