Running Lebowski on IE9

6 views
Skip to first unread message

Santhakumar

unread,
Jan 28, 2011, 3:45:04 AM1/28/11
to lebowskifw
Hi,

I am using Windows 7 OS with IE9 browser. I want to test my
application in IE9, Below is the set up that I have done for the same:

Installed ruby-1.9.2p0 and all gems required for lebowski.

In test_script.rb file:
App = MainApplication.new \
:app_root_path => "demo/beta",
:app_server_host => "162.12.25.36",
:app_server_port => "4020",
:app_name => "DemoApp",
:browser => :iexploreproxy

Step-1: lebowski-start-server -forcedBrowserMode *iexploreproxy
Step-2: lebowski-spec -f n test_script.rb

Here I get the application is loaded but the test cases are not
getting executed. Also I am getting an error in command prompt on
executing the test script that says "`rescue in start': Error
connecting to selenium server:"

Any idea on what I am doing wrong here. Kindly share your thoughts.

Thanks in advance,
Santhakumar

MikeC

unread,
Jan 28, 2011, 2:56:28 PM1/28/11
to lebowskifw
Is there any more information when the error is displayed?

I admit I haven't yet tried Lebowski against IE9, just IE7 and IE8. If
you can provide me some more details I can take a deeper look in the
issue your running into.

Mike

SunnyT

unread,
Jan 31, 2011, 7:17:49 AM1/31/11
to lebowskifw
Hi,

I have a similar issue when I am trying to test my application on IE9.
Following are the details:
OS: Windows 7
Browser: IE9
test_script.rb file:
App = MainApplication.new \
:app_root_path => "demo/beta",
:app_server_host => "162.12.25.36",
:app_server_port => "4020",
:app_name => "DemoApp",
:browser => :iexploreproxy

Step1: lebowski-start-server -forcedBrowserMode *iexploreproxy
Step2: lebowski-spec -f n test_script.rb

The App is getting loaded but no tests are getting performed.

After around four mins, an error is shown in the command prompt as
follows:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/lebowski-0.3.0/lib/lebowski/
foundation/appli
cation.rb:347:in `rescue in start': Error connecting to selenium
server: Receive
d error from server while trying to execute command:
(Lebowski::Runtime::Seleniu
mServerError)
requested:
cmd=openScApplication
1=/demo/beta
2=240
sessionId=ee1214b975fb42a9bc23ef6b2a2e6314
received:
Function expected

Confirm that selenium server is running on :
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/lebowski-0.3.0/lib/
lebowski/fou
ndation/application.rb:334:in `start'
from C:/Users/sunny/Desktop/test_script.rb:10:in `<top (re
quired)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/configuration.rb:334:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/configuration.rb:334:in `block in load_spec_files'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/configuration.rb:334:in `map'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/configuration.rb:334:in `load_spec_files'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/command_line.rb:18:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/runner.rb:55:in `run_in_process'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/runner.rb:46:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/runner.rb:10:in `block in autorun'


On trying to run the script again, a similar error is shown, as
follows:


C:/Ruby192/lib/ruby/gems/1.9.1/gems/lebowski-0.3.0/lib/lebowski/
foundation/appli
cation.rb:347:in `rescue in start': Error connecting to selenium
server: executi
on expired (Lebowski::Runtime::SeleniumServerError)
Confirm that selenium server is running on :
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/lebowski-0.3.0/lib/
lebowski/fou
ndation/application.rb:334:in `start'
from C:/Users/sunny/Desktop/test_script.rb:10:in `<top (re
quired)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/configuration.rb:334:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/configuration.rb:334:in `block in load_spec_files'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/configuration.rb:334:in `map'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/configuration.rb:334:in `load_spec_files'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/command_line.rb:18:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/runner.rb:55:in `run_in_process'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/runner.rb:46:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.1.0/lib/
rspec/core
/runner.rb:10:in `block in autorun'


Please suggest a solution for the same.

Thanks,
Sunny

MikeC

unread,
Jan 31, 2011, 11:55:55 AM1/31/11
to lebowskifw
Based on the feedback about IE 9, I'm going to look into this.
Apologies to everyone who are currently trying to run Lebowski against
IE 9 and have been running into this issue.

Mike

MikeC

unread,
Feb 17, 2011, 1:59:17 PM2/17/11
to lebowskifw
I finally had a chance to look into the issue with Lebowski and IE9.
Basically the problem boils down to the Selenium driver itself.
Lebowski currently make use of the Selenium server v1.0.3, which
doesn't support IE9 or Firefox 4. In addition, v1.0.3 is no longer
being supported or worked on. The new Selenium 2 project that is
currently in a beta cycle does support both IE9 and Firefox 4. This
means that I will need to dedicate some time updating Lebowski in
order to take advantage of Selenium 2, which I have now started to
look into doing.

Mike

SunnyT

unread,
Feb 21, 2011, 1:28:12 AM2/21/11
to lebowskifw
Thanks Mike!
...I am looking forward to it.

-Sunny
Reply all
Reply to author
Forward
0 new messages