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