我可以使用sikuli和selenium Grid吗?如果远程机器有sikuli库?
其他事情: 我无法找到org.sikuli.script的maven dependecies http://mvnrepository.com/ 还有其他方法将jar包含在maven中吗?
答案 0 :(得分:0)
答案 1 :(得分:0)
是的,对于sikuli 1.1.0的Sikuli Maven依赖在Maven Central存储库中不可见。但你可以使用pom.xml如下:它对我有用:这个pom.xml用于带有testng框架的Sikuli:
<repositories>
<repository>
<!-- OSSRH: com.sikulix -->
<name>com.sikulix</name>
<id>com.sikulix</id>
<url>https://oss.sonatype.org/content/groups/public</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8</version>
</dependency>
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixapi</artifactId>
<version>1.1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.testngorg.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<siuteXmlFiles>
<suiteXmlFile>testng-customsuite.xml</suiteXmlFile>
</siuteXmlFiles>
</configuration>
</plugin>
</plugins>
&#39;