小编spi*_*eel的帖子

org.testng.TestNGException:sun.security.provider.certpath.SunCertPathBuilderException

我正进入(状态:

 org.testng.TestNGException: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:325)
    at org.testng.remote.AbstractRemoteTestNG.initialize(AbstractRemoteTestNG.java:136)
    at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:97)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
Run Code Online (Sandbox Code Playgroud)

我正在使用maven,testNG和selenium编写自动化脚本。当我通过RunAs-> TestNG分别执行我的TestCases时,它们执行的很好。但是,当我尝试通过以下方式将所有测试用例作为套件运行时:右键单击Testng.xml-> RunAs TestNG套件。我得到上述例外。

到目前为止,我已经尝试了各种选项,例如升级TestNG版本(现在使用6.10.0),再次导入项目,更改POM和TestNG文件。到目前为止没有任何工作。

我试图用Google搜索,但找不到此问题的答案。在线提供的任何解决方案都与SSL连接相对应,我不确定那是我的问题。

谁能帮我解决这个问题?提前致谢!

java testng selenium maven selenium-webdriver

3
推荐指数
1
解决办法
3968
查看次数

标签 统计

java ×1

maven ×1

selenium ×1

selenium-webdriver ×1

testng ×1