2009-02-03 52 views
1

我想设置硒maven插件和有一些困难,我希望有人可以帮助我。我的配置是这样的:selenium-maven-plugin

<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>selenium-maven-plugin</artifactId> 
    <executions> 
    <execution> 
     <phase>pre-integration-test</phase> 
     <goals> 
    <goal>start-server</goal> 
    <goal>selenese</goal> 
     </goals> 
     <configuration> 
    <background>true</background> 
    <browser>*firefox</browser> 
    <results>src/test/resources/selenium/result.html</results> 
    <startURL>http://localhost/MyProject</startURL> 
    <suite>src\test\resources\selenium\Testsuite.html</suite> 
     </configuration> 
    </execution> 
    </executions> 
</plugin> 

我有货物设置,以及其完美的作品。然而,启动服务器目标运行没有问题,但当maven试图执行硒:selenese目标我得到这个异常:找不到匹配的构造函数:org.openqa.selenium.server.SeleniumServer(java.lang.Integer,java。 lang.Boolean,java.lang.Boolean)

有什么建议吗?在此先感谢您的帮助。

回答

4

这是硒中的一个错误,可以通过下载一个新版本来解决。