Issue Details (XML | Word | Printable)

Key: SRC-341
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Fabulich
Reporter: Christopher Vogt
Votes: 0
Watchers: 1
Operations

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

make -browserSessionReuse independent of -proxyInjectionMode

Created: 06/Sep/07 07:27 AM   Updated: 04/May/09 09:08 AM   Resolved: 05/Mar/08 01:49 AM
Component/s: None
Affects Version/s: 0.9.0
Fix Version/s: 1.0

Environment: selenium RC on Redhat enterprise


 Description  « Hide

Hej,

somebody wrote in the forum almost a year ago: http://forums.openqa.org/thread.jspa?messageID=27365&#27365 . This is still unfixed and uncommented. I have the same problem.

I just started running unittests again javascript using selenium RC calling my_selenium_instance.open( tested_url ) in my setUp method. I just split up my one test method containing some tests into two methods. Now the browser is launched twice, which consumes a lot of time and is not necessary.

I tried passing the -browserSessionReuse option to selenium-server but (after figuring out that there was an error message above the displayed usage page) I saw "-reusingBrowserSessions only valid in combination with -proxyInjectionMode".

First minor thing:

  • The error message falsely speaks of -reusingBrowserSessions (as the related variable is called in the java source code) while the command line option is called -browserSessionReuse. Unifying the option and the java variable name would probably be good.

Second more important thing:

  • Resuing an existing browser session should not depend on proxy injection. In my case it would make perfect sense to just reuse the browser session.

Kind regards
Christopher



Sort Order: Ascending order - Click to sort in descending order
Dan Fabulich added a comment - 05/Mar/08 01:49 AM

Fixed in revision 2200


Shula added a comment - 04/May/09 09:06 AM

i have the following selenium server version:

15:26:50.156 INFO - OS: Windows XP 5.1 x86
15:26:50.156 INFO - v1.0-beta-2 [2571], with Core v1.0-beta-2 [2330]
15:26:50.156 INFO - Will recycle browser sessions when possible.
15:26:50.265 INFO - Version Jetty/5.1.x

but adding the reuse session argument doesn't change startup behavior.
I don't use special injection settings, and i don't even know how
it wouldn't work otherwise?

details:
i start a FF instance from python RC script,
the script ends/crashes,
i start the same script again,
additional browser session & windows are created

i'd like to avoid running excessive firefox windows.


Shula added a comment - 04/May/09 09:08 AM

maybe there's a way to pass the last sessionID to selenium remote control's initialization?

(python code)
selenium ( "localhost", 4444, "*firefox", "http://www.mysite.com/")