我正在使用Java、Maven和TestNG。我想补充一下在詹金斯报道的诱惑力。
我在pom.xml中添加了以下配置:
依赖关系:
<!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-testng -->
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-testng</artifactId>
<version>2.12.1</version>
</dependency>
<profile>
<id>UI</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>ui.xml</suiteXmlFile>
</suiteXmlFiles>
<argLine>
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>LATEST_VERSION</version>
<configuration>
<reportVersion>2.4.1</reportVersion>
<reportDirectory>target/allure-results</reportDirectory>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
clean test -PUI -f pom.xml
[INFO] Results:
[INFO]
[INFO]
[ERROR] Tests run: 25, Failures: 6, Errors: 0, Skipped: 9
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:39 min
[INFO] Finished at: 2019-06-21T11:30:09+03:00
[INFO] Final Memory: 23M/259M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project company: There are test failures.
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[ERROR] There are test failures.
[JENKINS] Recording test results
[WARNING] Attempt to (de-)serialize anonymous class org.jfrog.hudson.maven2.MavenDependenciesRecorder$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:57 min
[INFO] Finished at: 2019-06-21T07:43:30+00:00
[INFO] Final Memory: 30M/313M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /var/lib/jenkins/workspace/tests.env.test/ui-test/pom.xml to com.company/company/1.0-SNAPSHOT/company-1.0-SNAPSHOT.pom
channel stopped
[ui-test] $ /var/lib/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/allure/bin/allure generate -c -o /var/lib/jenkins/workspace/tests.env.test/ui-test/allure-report
Report successfully generated to /var/lib/jenkins/workspace/tests.env.test/ui-test/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Build step 'Allure Report' changed build result to UNSTABLE
Finished: UNSTABLE
默认情况下,Allure结果文件存储在项目根目录中。为了更改位置,请在测试资源目录(src/test/resources
)中创建一个包含以下内容的allure.properties
文件:
allure.results.directory=target/allure-results
有关更多详细信息,请参阅文件https://docs.qameta.io/allure/#_configuration
我从jenkins控制台收到以下消息,但是文件夹是空的,报表没有数据。 C:\Program Files(x86)\Jenkins\Workspace\SCS测试>CD C:\Checkouts\SCS\Test C:\checkouts\scs\test>“behave-tags=@defrost_007-f allure_behave.formatter:allureformatter-o C
我正在使用2.26.0版本的诱惑插件在詹金斯。我创建了一个作业与下一个配置后,我运行它,我不能看到什么在诱惑报告在Jenkins。因为当我从Jenkins运行它时,它只在本地机器上的文件夹项目中的'allure-results'文件夹中创建这些文件。如果我手动清理这个文件夹并从NetBeansit本地运行我的项目,它将在文件夹'allure-results'中创建正确的.json文件。之后,我可以
本文向大家介绍magento 启用显示错误报告,包括了magento 启用显示错误报告的使用技巧和注意事项,需要的朋友参考一下 示例 在索引页面中更改以下内容: 至 组 $_SERVER['MAGE_IS_DEVELOPER_MODE'] = true 并取消注释此行(删除#) 您也可以SetEnv在.htaccess文件中使用设置开发模式 为了使错误更易于理解,请执行以下操作: 打开您的Mage
(顺便说一句,我尝试在webdriverio中配置第二个报告器,但虽然这似乎可以在本地创建一些xml文件,但我配置的文件夹并没有出现在Jenkins上。此外,webdriverio不支持JUnit作为框架--目前它使用的是Mocha。)
解包https://repo.jenkins-ci.org/maven-repo1/io/qameta/allure/allure-commandline/2.13.0/allure-commandline-2.13.0.zip到C:\users\user1g.Jenkins\tools\ru.yandex.qatools.allure.Jenkins.tools.allureCommandlin
我试图通过Jenkins在UBUNTU AWS/VM上使用XVFB执行无头铬硒测试。 预构建执行外壳程序: 当构建开始时,我看到: 最后: 现在,通过 MAC 上的终端,我使用 命令连接到 VM。 并使用 VNC 查看器,我正在连接到本地主机:5900。它连接了,但我只看到一个黑屏。我期待屏幕上的Chrome浏览器窗口。 我该如何解决这个问题并在vncviewer上观看Chrome window?