Java Selenium Intellij未运行Testng';s检验
我有selenium网格设置和编码selenium testng,但它没有在前台启动浏览器。可能是什么错误 以下是我的配置:Java Selenium Intellij未运行Testng';s检验,java,selenium,automation,Java,Selenium,Automation,我有selenium网格设置和编码selenium testng,但它没有在前台启动浏览器。可能是什么错误 以下是我的配置: clean test -Dproperty=sit-config.properties <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artif
clean test -Dproperty=sit-config.properties
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<includes>
<include>GenericTestManager.java</include>
</includes>
</configuration>
</plugin>
@Test(groups= {"Login"}, description="Chrome - Login", dataProvider = "loginCredentials")
@JSErrorsCollectorTestNG(assertJSErrors = true)
public void test() {
myChromeDriver.getDriver().navigate().to("www.facebook.com");
}
clean测试-Dproperty=sit-config.properties
org.apache.maven.plugins
调用导航().to()
时,您需要包括协议,即https
,如下所示:
myChromeDriver.getDriver().navigate().to("https://www.facebook.com/");
我将GenericTestMnaager重命名为Tests.java并运行。哪个应用程序占据了前台?这是一个仅使用Intellij IDE创建的selenium testng应用程序。对于调试,可以使用。添加一些调试点并在命令行-Dmaven.surefire.debug中使用,也可以在surefire Add-**/GenericTestManager.java中使用。问题是surefire插件上的LYES无法获取我的测试GenericTestManager.java。如何排除故障?