May 15, 2008 3:52 PM
proxyInjectionMode appears broken
Passing -proxyInjectionMode along with -htmlSuite currently causes errors for me in all the browsers I have tested on every platform I have tested. I have tested using both 1.0-beta 1 and the snapshot from yesterday the 14th of May. The errors do not occur in 0.9.2. I have tested on the following browser platform combinations and I get different errors for different browsers.
Windows XP, IE6 and IE7, and Vista IE7 all report this error (although Vista has the first line doubled)
error: xmlHttp returned: 500: Internal Server Error
info: Starting test /selenium-server/tests/TestWineExpress.html
info: Executing: |setTimeout | 60000 | |
error: Unexpected Exception: 'this.seleniumCommandFactory' is null or not an object
error: Exception details: name -> TypeError, message -> 'this.seleniumCommandFactory' is null or not an object, number -> -2146823281, description -> 'this.seleniumCommandFactory' is null or not an object
warn: currentTest.recordFailure: Selenium failure. Please report to the Selenium Users forum at
http://forums.openqa.org, with error details from the log window. The error message is: 'this.seleniumCommandFactory' is null or not an object
Firefox 2 on Windows XP, Vista, OS X and Linux all reported this error (although OS X has the first line doubled)
error: xmlHttp returned: 500: Internal Server Error
info: Starting test /selenium-server/tests/TestWineExpress.html
info: Executing: |setTimeout | 60000 | |
error: Unexpected Exception: this.seleniumCommandFactory has no properties
error: Exception details: message -> this.seleniumCommandFactory has no properties, fileName ->
http://www.wineexpress.com/selenium-server/core/scripts/selenium-testrunner.js, lineNumber -> 1062, stack -> ("setTimeout")@
http://www.wineexpress.com/selenium-server/core/scripts/selenium-testrunner.js:1062
()@
http://www.wineexpress.com/selenium-server/core/scripts/selenium-executionloop.js:104
(52)@
http://www.wineexpress.com/selenium-server/core/scripts/selenium-executionloop.js:78
apply(object Object,object Array)@:0
(52)@
http://www.wineexpress.com/selenium-server/core/scripts/htmlutils.js:60
@:0
, name -> TypeError
warn: currentTest.recordFailure: Selenium failure. Please report to the Selenium Users forum at
http://forums.openqa.org, with error details from the log window. The error message is: this.seleniumCommandFactory has no properties
Opera on Windows XP, Vista and Linux all reported this error
error: xmlHttp returned: 0:
info: Starting test /selenium-server/tests/TestWineExpress.html
info: Executing: |setTimeout | 60000 | |
error: Unexpected Exception: Statement on line 1062: Could not convert undefined or null to object
Backtrace:
Line 1062 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-testrunner.js
return this.seleniumCommandFactory.getCommandHandler(command);
Line 104 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-executionloop.js
var handler = this.commandFactory.getCommandHandler(command.command);
Line 78 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-executionloop.js
this._executeCurrentCommand();
Line 60 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/htmlutils.js
return __method.apply(object, args.concat(sel$A(arguments)));
At unknown location
statement source code not available
error: Exception details: message -> Statement on line 1062: Could not convert undefined or null to object
Backtrace:
Line 1062 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-testrunner.js
return this.seleniumCommandFactory.getCommandHandler(command);
Line 104 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-executionloop.js
var handler = this.commandFactory.getCommandHandler(command.command);
Line 78 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-executionloop.js
this._executeCurrentCommand();
Line 60 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/htmlutils.js
return __method.apply(object, args.concat(sel$A(arguments)));
At unknown location
statement source code not available
, opera#sourceloc -> 1062
warn: currentTest.recordFailure: Selenium failure. Please report to the Selenium Users forum at
http://forums.openqa.org, with error details from the log window. The error message is: Statement on line 1062: Could not convert undefined or null to object
Backtrace:
Line 1062 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-testrunner.js
return this.seleniumCommandFactory.getCommandHandler(command);
Line 104 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-executionloop.js
var handler = this.commandFactory.getCommandHandler(command.command);
Line 78 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/selenium-executionloop.js
this._executeCurrentCommand();
Line 60 of linked script
http://www.wineexpress.com/selenium-server/core/scripts/htmlutils.js
return __method.apply(object, args.concat(sel$A(arguments)));
At unknown location
statement source code not available
And Safari 2 on OS X failed to actually load the test at all
All of these browser/platform combinations have successfully loaded the test with the exact same parameters but without -proxyInjectionMode. I can also duplicate all of these errors with other tests. I have also checked to see if passing various options along with -proxyInjectionMode affects anything and it appears to have no effect at all. Again, the exact same tests and commands work fine in 0.9.2.
I was very surprised that there is not a bug filed for this so I thought it might be something strange I'm doing but it is very consistent. Any help or thoughts would be appreciated.
Sean