目前我有一个包含4个Selenium/Maven测试的GitHub回购。我能够通过MVN测试,以我的本地计算机上单独运行各个测试如何让詹金斯运行我的Maven/Selenium GitHub测试
我有詹金斯也是我的本地机器上运行,并且创建了一个Maven项目来拉我的GitHub库,在的一个选择的pom.xml测试(P_ProfileChangeMavenTest),然后执行测试作为我的maven目标。
当詹金斯运行我的测试时,它开始通过我的maven项目,但不拉起Firefox浏览器与我的测试进行交互。
的pom.xml
<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>com.test.profilechange</groupId>
<artifactId>Profile</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Profile</name>
<description>PRofile</description>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.39.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
<version>2.16</version>
<type>pom</type>
</dependency>
</dependencies>
</project>
我是相当新的自动化,我试图确认一切正常,我的本地机器上的第一个发送这些测试与硒网格中的服务器上运行了。
所有的帮助将不胜感激,因为我需要尽快得到这个工作。
感谢先进!
根据你的错误,它说“元素不可见异常”。让我们来谈谈谷歌。 – sircapsalot