Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Selenium Intellij未运行Testng';s检验_Java_Selenium_Automation - Fatal编程技术网

Java Selenium Intellij未运行Testng';s检验

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

我有selenium网格设置和编码selenium testng,但它没有在前台启动浏览器。可能是什么错误

以下是我的配置:

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。如何排除故障?