【发布时间】:2015-03-01 10:42:55
【问题描述】:
尝试使用 Allure 框架 - 但遇到了一些问题。
我正在使用 Maven、Junit 和 Eclipse。创建了一个非常简单的测试用例并确认了所有这些工作。所以下一步是添加 Allure。现在看来,当我添加 allure 依赖项时,一切都出错了(所有后续依赖项都失败,并且工作的 POM 现在有 50 多个错误。)
如果我删除以下内容,那么我可以启动 mvn clean test 并运行我的测试用例(Eclipse 也意识到有问题并给我一个错误)
我想这一定很明显,但我一直盯着它看太久了,我看不到它。
不确定如何附加 POM,但我认为错误出在这些部分。
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<compiler.version>1.7</compiler.version>
<aspectj.version>1.7.4</aspectj.version>
<allure.version>{latest-allure-version}</allure.version>
</properties>
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-junit-adaptor</artifactId>
<version>${allure.version}</version>
</dependency>
<dependency>
<groupId>com.github.detro.ghostdriver</groupId>
<artifactId>phantomjsdriver</artifactId>
<version>1.0.4</version>
</dependency>
【问题讨论】:
-
好吧,我认为我的问题的一部分是我太从字面上理解示例代码 - 我现在有一份 Allure junit4 示例的副本,似乎他们指定了 allure.version(如 1.4 .3)。所以我的计划是以他们的例子为例——它不使用任何硒,比如打开浏览器等——并添加一些片段来看看它是如何工作的。
标签: allure