我正在使用testng
来运行我在Java
中编写的测试用例,但是由于出现此错误而失败了。
由于缺乏开发知识,我无法找出跟踪错误的确切根本原因:
[2013-11-11 08:31:57,401] ERROR PoolService-0 com.zycus.testautomation.common.Utility afterExecutionOfTestcase - Logout Failed => java.lang.NullPointerException:条目中的null值:url = null [java] java.lang.NullPointerException:条目中的null值:url = null [java] com.google.common.base.Preconditions.checkNotNull(Preconditions.java:235) [java] com.google.common.collect.ImmutableBiMap.of(ImmutableBiMap.java:61) [java] com.google.common.collect.ImmutableMap.of(ImmutableMap.java:80) [java] at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:276) [java] at com.zycus.testautomation.common.LoginLogoutUtil.iAnalyzeLogout(LoginLogoutUtil.java:92) [java] at com.zycus.testautomation.common.Utility.afterExecutionOfTestcase(Utility.java:1256) [java] at com.zycus.testautomation.ianalyze.testcase.ABCPartTwo.checkUnsavedReportPopUp(ABCPartTwo.java:202) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [java] at java.lang.reflect.Method.invoke(Unknown Source) [java] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) [java] at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) [java] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) [java] at org.testng.internal.TestMethodWithDataProviderMethodWorker.call(TestMethodWithDataProviderMethodWorker.java:73) [java] at org.testng.internal.TestMethodWithDataProviderMethodWorker.call(TestMethodWithDataProviderMethodWorker.java:14) [java] at java.util.concurrent.FutureTask $ Sync.innerRun(Unknown Source) [java] at java.util.concurrent.FutureTask.run(Unknown Source) [java] at java.util.concurrent.Executors $ RunnableAdapter.call(Unknown Source) [java] at java.util.concurrent.FutureTask $ Sync.innerRun(Unknown Source) [java] at java.util.concurrent.FutureTask.run(Unknown Source) [java] at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(Unknown Source) [java] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source) [java] at java.lang.Thread.run(Unknown Source)
在此之前,感谢您的帮助