chibimagic/WebDriver-PHP — Issue #20: Unknown error while running two test methods
Author: capsulemind
Created: 2012-03-06 05:56:39+00:00
State: open

Error occurs when run php file two test methods. So if run all method separately шit works.

Here is error log:

1) EnableSettings::disableAffliateProgram with data set #0 ('example@example.com', '1234')
Unsuccessful WebDriver command: 13 - UnknownError - An unknown server-side error occurred while processing the command.
Command: POST - http://localhost:4444/wd/hub/session/1331011483023/refresh -
Response: {"status":13,"sessionId":"1331011483023","value":{"message":null,"localizedMessage":null,"cause":null,"class":"java.lang.NullPointerException","hCode":1767199109,"stackTrace":[{"fileName":"WebDriverHandler.java","class":"java.lang.StackTraceElement","lineNumber":44,"className":"org.openqa.selenium.remote.server.handler.WebDriverHandler","nativeMethod":false,"methodName":"handle","hCode":-1140139241},{"fileName":"ResultConfig.java","class":"java.lang.StackTraceElement","lineNumber":196,"className":"org.openqa.selenium.remote.server.rest.ResultConfig","nativeMethod":false,"methodName":"handle","hCode":517694411},{"fileName":"DriverServlet.java","class":"java.lang.StackTraceElement","lineNumber":586,"className":"org.openqa.selenium.remote.server.DriverServlet","nativeMethod":false,"methodName":"handleRequest","hCode":-473868790},{"fileName":"DriverServlet.java","class":"java.lang.StackTraceElement","lineNumber":523,"className":"org.openqa.selenium.remote.server.DriverServlet","nativeMethod":false,"methodName":"doPost","hCode":-1874935473},{"fileName":"HttpServlet.java","class":"java.lang.StackTraceElement","lineNumber":727,"className":"javax.servlet.http.HttpServlet","nativeMethod":false,"methodName":"service","hCode":1081440705},{"fileName":"DriverServlet.java","class":"java.lang.StackTraceElement","lineNumber":490,"className":"org.openqa.selenium.remote.server.DriverServlet","nativeMethod":false,"methodName":"service","hCode":1913428376},{"fileName":"HttpServlet.java","class":"java.lang.StackTraceElement","lineNumber":820,"className":"javax.servlet.http.HttpServlet","nativeMethod":false,"methodName":"service","hCode":1081440798},{"fileName":"ServletHolder.java","class":"java.lang.StackTraceElement","lineNumber":428,"className":"org.openqa.jetty.jetty.servlet.ServletHolder","nativeMethod":false,"methodName":"handle","hCode":1066597463},{"fileName":"ServletHandler.java","class":"java.lang.StackTraceElement","lineNumber":677,"className":"org.openqa.jetty.jetty.servlet.ServletHandler","nativeMethod":false,"methodName":"dispatch","hCode":1390736796},{"fileName":"ServletHandler.java","class":"java.lang.StackTraceElement","lineNumber":568,"className":"org.openqa.jetty.jetty.servlet.ServletHandler","nativeMethod":false,"methodName":"handle","hCode":-1689621667},{"fileName":"HttpContext.java","class":"java.lang.StackTraceElement","lineNumber":1530,"className":"org.openqa.jetty.http.HttpContext","nativeMethod":false,"methodName":"handle","hCode":1685351422},{"fileName":"HttpContext.java","class":"java.lang.StackTraceElement","lineNumber":1482,"className":"org.openqa.jetty.http.HttpContext","nativeMethod":false,"methodName":"handle","hCode":1685351374},{"fileName":"HttpServer.java","class":"java.lang.StackTraceElement","lineNumber":909,"className":"org.openqa.jetty.http.HttpServer","nativeMethod":false,"methodName":"service","hCode":1779095622},{"fileName":"HttpConnection.java","class":"java.lang.StackTraceElement","lineNumber":820,"className":"org.openqa.jetty.http.HttpConnection","nativeMethod":false,"methodName":"service","hCode":-1150970931},{"fileName":"HttpConnection.java","class":"java.lang.StackTraceElement","lineNumber":986,"className":"org.openqa.jetty.http.HttpConnection","nativeMethod":false,"methodName":"handleNext","hCode":1892375929},{"fileName":"HttpConnection.java","class":"java.lang.StackTraceElement","lineNumber":837,"className":"org.openqa.jetty.http.HttpConnection","nativeMethod":false,"methodName":"handle","hCode":-954717551},{"fileName":"SocketListener.java","class":"java.lang.StackTraceElement","lineNumber":243,"className":"org.openqa.jetty.http.SocketListener","nativeMethod":false,"methodName":"handleConnection","hCode":91812189},{"fileName":"ThreadedServer.java","class":"java.lang.StackTraceElement","lineNumber":357,"className":"org.openqa.jetty.util.ThreadedServer","nativeMethod":false,"methodName":"handle","hCode":-1347859605},{"fileName":"ThreadPool.java","class":"java.lang.StackTraceElement","lineNumber":534,"className":"org.openqa.jetty.util.ThreadPool$PoolThread","nativeMethod":false,"methodName":"run","hCode":172881957}]},"class":"org.openqa.selenium.remote.Response","hCode":1976499684}