History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-410
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Philippe Sabourin
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

Proxy Server does not seem to forward all information and scripts

Created: 17/Jan/08 09:43 AM   Updated: 12/Aug/08 05:35 PM
Component/s: Server, Proxy Injection
Affects Version/s: 1.0
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File ServerDebug.txt (2.17 Mb)

Environment: Windows XP Pro, IE6,IE7,FF, 0.9.3 Snapshots of October and November (also happened in earlier versions)


 Description  « Hide
After having seen this issue while testing, I decided to test using just the selenium server and manually browsing to pages. Here is the command I used to start the server:
java -Dhttp.proxyHost=inetgw.fyi.sas.com -Dhttp.proxyPort=80 -jar selenium-server.jar -proxyInjectionMode

Here is a screenshot of the page in question in Firefox running normally:
http://mohastats.com/seleniumbug/ff_sww_good.jpg
Here is a screenshot of the page in question in Firefox running through selenium:
http://mohastats.com/seleniumbug/ff_sww_bad.jpg
Here is a screenshot of the Firefox console after opening the page in question through selenium:
http://mohastats.com/seleniumbug/ff_sww_console.jpg

Here is a screenshot of the page in question in IE7 running normally:
http://mohastats.com/seleniumbug/ie7_sww_good.jpg
Here is a screenshot of the page in question in IE7 running through selenium:
http://mohastats.com/seleniumbug/ie7_sww_bad.jpg
Here is a screenshot of the Selenium server console after running all these things:
http://mohastats.com/seleniumbug/selenium_server_console.jpg

Please let me know if you need any more info. This is a high priority item for us, as we intend to complete our engine quickly and make it stable enough to run tests.


 All   Comments   Work Log   Change History      Sort Order:
Carl Nagle - 15/Feb/08 10:13 AM
We are wondering if anyone has taken the chance to even look at or review this issue? The screenshots already provided suggest @sessionid@ is not valid syntax where found (as shown in attached console snapshots for both Firefox and IE7).

The issue of Selenium Server not forwarding all needed content (like CSS) is very serious. It prevents our web applications from running correctly and, thus, from being able to use Selenium for test automation.

Carl Nagle - 15/Feb/08 12:38 PM
I installed SVN and downloaded the latest source. The JARS we have are dated October 11, 2007. I see a sourcecode change happened in InjectionHelper.java on October 19, 2007 that may directly affect the behavior we are seeing. I will look for a snapshot dated after October 19, if one exists, and report back.

Carl Nagle - 18/Feb/08 02:05 PM
The Snapshot I received still exhibits the same symptoms.
Snapshot info: v0.9.3-SNAPSHOT [2172], with Core v0.8.4-SNAPSHOT [1950]
I'm attaching the full debug log output which shows the Exception and Server Errors.
The problem seems to occur when the first POST with a "seleniumStart=true" parameter and the sessionID parameter = "@SESSION_ID@".

The full text of this post is:

POST http://..../selenium-server/driver/?seleniumStart=true&localFrameAddress=top.frames[0]&seleniumWindowName=&uniqueId=sel_67606&sessionId=@SESSION_ID@&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1203362388297&sequenceNumber=0 HTTP/1.0

Which ultimately results in a SERVER ERROR response and a Connection Close:

14:19:48.313 WARN [11] org.mortbay.http.HttpConnection - POST http://..../selenium-server/driver/?seleniumStart=true&localFrameAddress=top.frames[0]&seleniumWindowName=&uniqueId=sel_67606&sessionId=@SESSION_ID@&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1203362388297&sequenceNumber=0 HTTP/1.0
java.lang.RuntimeException: sessionId @SESSION_ID@ doesn't exist; perhaps this session was already stopped?
at org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(FrameGroupCommandQueueSet.java:170)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleBrowserResponse(SeleniumDriverResourceHandler.java:175)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:139)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
14:19:48.485 DEBUG [11] org.mortbay.http.HttpConnection - RESPONSE:
HTTP/1.1 500 Internal Server Error
Date: Mon, 18 Feb 2008 19:19:48 GMT
Server: Jetty/5.1.x (Windows XP/5.1 x86 java/1.5.0_08
Connection: close

Jeff Ramsdale - 23/Jul/08 03:33 PM
I seem to be running into this problem as well. Any confirmation and/or progress?