현재 4 개의 Selenium/Maven 테스트가 포함 된 GitHub Repo가 있습니다. 나는 MVN 테스트를 통해 내 로컬 컴퓨터에 개별적으로 테스트를 실행할 수 있어요Jenkins가 Maven/Selenium GitHub 테스트를 실행하는 방법
나는 중 하나에 pom.xml 파일을 선택, 내 GitHub의 저장소를 당길 수있는 받는다는 프로젝트를 젠킨스 내 로컬 컴퓨터에 또한 실행 가지고 만든 test (P_ProfileChangeMavenTest)를 수행 한 다음 테스트를 내 목표로 실행하십시오.
젠킨스가 내 테스트를 실행하면 내 메이븐 프로젝트로 이동하기 시작하지만 파이어 폭스 브라우저를 사용하여 테스트와 상호 작용하지 않습니다.
의 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>
나는 자동화 상당히 새로운 오전 먼저 셀레늄 그리드 서버에서 실행하는 테스트를 보내기 전에 모든 것이 내 로컬 컴퓨터에서 제대로 작동하는지 확인하려합니다.
이 작업을 최대한 빨리 수행해야하므로 도움이 될 것입니다.
고맙습니다.
오류에 따르면 "요소 보이지 않는 예외"라고 표시됩니다. google에서 이야기합시다. – sircapsalot