abcnull / webuitest4j

该项目是 java 编写的使用 selenium 依赖包的 WebUI 测试项目
https://blog.csdn.net/abcnull/article/details/104119940
32 stars 23 forks source link

2020/2/1之前项目运行的问题 #1

Open abcnull opened 4 years ago

abcnull commented 4 years ago

2020/2/1之前本地无redis服务baidu页面测试会有问题,因为其中有redis相关代码,1号之后已改过来,已经没有问题了

FuQiuju commented 11 months ago

需要在本地装redis服务吗? java.lang.IllegalStateException: The driver is not executable: /Users/liwenjian/Downloads/webuitest4j-master/target/test-classes/driver/chromedriver.exe

at com.google.common.base.Preconditions.checkState(Preconditions.java:585)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:150)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:141)
at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:35)
at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:159)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:355)
at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:94)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157)
at com.abcnull.basetest.ChromeDriverHandler.startBrowser(ChromeDriverHandler.java:71)
at com.abcnull.basetest.HeadHandler.startBrowser(HeadHandler.java:23)
at com.abcnull.basetest.DriverHandler.start(DriverHandler.java:35)
at com.abcnull.basetest.BaseDriver.startBrowser(BaseDriver.java:93)
at com.abcnull.basetest.BaseTest.beforeTest(BaseTest.java:80)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
at org.testng.TestRunner.beforeRun(TestRunner.java:529)
at org.testng.TestRunner.run(TestRunner.java:497)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:40)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:489)
at org.testng.internal.thread.ThreadUtil$1.call(ThreadUtil.java:52)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

2023-11-28 21:39:05.528 [TestNG-tests-2-91] ERROR com.abcnull.util.RedisUtil.initJedis - 从连接池中生成一个新的连接失败! 2023-11-28 21:39:05.528 [TestNG-tests-1-91] ERROR com.abcnull.util.RedisUtil.initJedis - 从连接池中生成一个新的连接失败!