Discussion:
[Cucumber:3083] cuke4nuke with Selenium
(too old to reply)
Natarajan Balashanmugam
2010-01-07 19:44:34 UTC
Permalink
Hello,

Is it possible to run the cuke4nuke with Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.

Thanks,

-Nat.
Ben Hall
2010-01-08 00:34:12 UTC
Permalink
Hi Nat,

It shouldn't cause any problems, you should just be able to use
Selenium + Cuke4Nuke in the same way you would with say NUnit.

I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.

Thanks

Ben

On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run the cuke4nuke with Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-08 06:21:26 UTC
Permalink
Hi Ben,

Thanks for your feedback. I just removed my WatiN reference in my
class file and included the selenium references. I am getting the
time out error when I try to run the ckue4nuke.
Before executing this command I manually start the Selenium-RC
server, I see the Selenium-RC window getting launched and the browser
trying to connect to the google.com website
and then, I am getting this error and it stops. I really
appreciate all your help on this...!


Here is the actual error message...

= = = = = = = = = = = = = = = = = = = = = = =

Feature: Google search
In order find things on the internet
As a user
I want to search for web pages with particular text in them

Scenario: Load search page
Timed out calling wire server with message
'begin_scenario' (Timeout::Error)
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:39:in `fetch_data_from_socket'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:20:in `call_remote'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/r
equest_handler.rb:10:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_protocol/requests.rb:92:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_protocol.rb:34:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
language_suppo
rt/language_methods.rb:12:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:296:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:295:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:295:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:277:in `before_and_after'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:45:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:100:in `with_visitor'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:39:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:51:in `visit_feature_element'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:50:in `visit_feature_element'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:25:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:24:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:24:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:20:in `visit_feature'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:19:in `visit_feature'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:29:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:17:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:17:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:28:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:14:in `visit_features'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:13:in `visit_features'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/cli/
main.rb:60
:in `execute!'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/cli/
main.rb:23
:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/cucumber:8
C:/Ruby/bin/cucumber:19:in `load'
C:/Ruby/bin/cucumber:19

C:\Natarajan\Projects\Cucumber\Cucumber\Cucumber>


= = = = = = = = = = = = = = = = = = = = = = =
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium + Cuke4Nuke in the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run the cuke4nuke with Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.- Hide quoted text -
- Show quoted text -
Richard Lawrence
2010-01-08 14:16:02 UTC
Permalink
If you do anything relatively slow in a Before hook, like starting up
a browser, for example, the default timeout won't be adequate. You can
increase it by adding a line to your cucumber.wire file to set the
before_scenario message timeout. The following seems to work well for
me:

host: localhost
port: 3901
timeout:
invoke: 35
before_scenario: 10


Richard

On Thu, Jan 7, 2010 at 11:21 PM, Nat Bala
Post by Nat Bala
Hi Ben,
   Thanks for your feedback.  I just removed my WatiN reference in my
class file and included the selenium references.  I am getting the
time out error when I try to run the ckue4nuke.
   Before executing this command I manually start the Selenium-RC
server, I see the Selenium-RC window getting launched and the browser
trying to connect to the google.com website
   and then, I am getting this error and it stops.  I really
appreciate all your help on this...!
   Here is the actual error message...
= = = = = = = = = = = = = = = = = = = = = = =
Feature: Google search
   In order find things on the internet
   As a user
   I want to search for web pages with particular text in them
 Scenario: Load search page
Timed out calling wire server with message
'begin_scenario' (Timeout::Error)
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:39:in `fetch_data_from_socket'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:20:in `call_remote'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/r
equest_handler.rb:10:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_protocol/requests.rb:92:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_protocol.rb:34:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
language_suppo
rt/language_methods.rb:12:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:296:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:295:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:295:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:277:in `before_and_after'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:45:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:100:in `with_visitor'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:39:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:51:in `visit_feature_element'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:50:in `visit_feature_element'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:25:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:24:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:24:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:20:in `visit_feature'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:19:in `visit_feature'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:29:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:17:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:17:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:28:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:14:in `visit_features'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:13:in `visit_features'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/cli/
main.rb:60
:in `execute!'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/cli/
main.rb:23
:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/cucumber:8
C:/Ruby/bin/cucumber:19:in `load'
C:/Ruby/bin/cucumber:19
C:\Natarajan\Projects\Cucumber\Cucumber\Cucumber>
= = = = = = = = = = = = = = = = = = = = = = =
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium + Cuke4Nuke in the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run the cuke4nuke with Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-08 17:54:32 UTC
Permalink
Hi Richard,

Thanks for your update. I added the lines of code in my
cucumber.wire, I was still getting the error. If you need any
additional information that would help rectify this error please let
me
know.

Here is the Selenium-RC

= = = = = = = = = = = = = = ==
C:\Selenium\selenium-remote-control-1.0.1\selenium-
server-1.0.1>java -jar ".\sel
enium-server.jar" -port 4444 -timeout 240 -interactive -
trustAllSSLCertificates
-avoidproxy
10:36:34.420 INFO - Java: Sun Microsystems Inc. 14.3-b01
10:36:34.421 INFO - OS: Windows Vista 6.0 x86
10:36:34.427 INFO - v1.0.1 [2696], with Core ***@VERSION@ [@REVISION@]
10:36:34.492 INFO - Version Jetty/5.1.x
10:36:34.493 INFO - Started HttpContext[/selenium-server/driver,/
selenium-server
/driver]
10:36:34.494 INFO - Started HttpContext[/selenium-server,/selenium-
server]
10:36:34.494 INFO - Started HttpContext[/,/]
10:36:34.534 INFO - Started SocketListener on 0.0.0.0:4444
10:36:34.534 INFO - Started ***@4a65e0
Entering interactive mode... type Selenium commands here (e.g:
cmd=open&1=http:/
/www.yahoo.com)
10:37:10.162 INFO - Checking Resource aliases
10:37:10.167 INFO - Command request: getNewBrowserSession
[*iexploreproxy, http:/
/www.google.com/, ] on session null
10:37:10.171 INFO - creating new remote session
10:37:10.334 INFO - Allocated session e2883cab24a841efbbf1238fd8c002a5
for http:
//www.google.com/, launching...
10:37:10.335 INFO - Backing up registry settings...
10:37:10.604 INFO - Modifying registry settings...
10:37:10.850 INFO - Launching Internet Explorer...
10:37:14.802 INFO - Got result: OK,e2883cab24a841efbbf1238fd8c002a5 on
session e
2883cab24a841efbbf1238fd8c002a5
Richard Lawrence
2010-01-08 22:03:52 UTC
Permalink
It's possible 10 seconds isn't enough to start the browser and get a
result back to cucumber. Set the timeout much higher, kick off a
scenario, and go get a cup of coffee. When you come back, you'll have
a better idea of what the timeout needs to be in your environment.

Richard

On Fri, Jan 8, 2010 at 10:54 AM, Nat Bala
Post by Nat Bala
Hi Richard,
  Thanks for your update.  I added the lines of code in my
cucumber.wire, I was still getting the error.  If you need any
additional information that would help rectify this error please let
me
  know.
  Here is the Selenium-RC
  = = = = = = = = = = = = = = ==
  C:\Selenium\selenium-remote-control-1.0.1\selenium-
server-1.0.1>java -jar ".\sel
enium-server.jar" -port 4444 -timeout 240 -interactive -
trustAllSSLCertificates
-avoidproxy
10:36:34.420 INFO - Java: Sun Microsystems Inc. 14.3-b01
10:36:34.421 INFO - OS: Windows Vista 6.0 x86
10:36:34.492 INFO - Version Jetty/5.1.x
10:36:34.493 INFO - Started HttpContext[/selenium-server/driver,/
selenium-server
/driver]
10:36:34.494 INFO - Started HttpContext[/selenium-server,/selenium-
server]
10:36:34.494 INFO - Started HttpContext[/,/]
10:36:34.534 INFO - Started SocketListener on 0.0.0.0:4444
cmd=open&1=http:/
/www.yahoo.com)
10:37:10.162 INFO - Checking Resource aliases
10:37:10.167 INFO - Command request: getNewBrowserSession
[*iexploreproxy, http:/
/www.google.com/, ] on session null
10:37:10.171 INFO - creating new remote session
10:37:10.334 INFO - Allocated session e2883cab24a841efbbf1238fd8c002a5
//www.google.com/, launching...
10:37:10.335 INFO - Backing up registry settings...
10:37:10.604 INFO - Modifying registry settings...
10:37:10.850 INFO - Launching Internet Explorer...
10:37:14.802 INFO - Got result: OK,e2883cab24a841efbbf1238fd8c002a5 on
session e
2883cab24a841efbbf1238fd8c002a5
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-11 04:48:54 UTC
Permalink
Hi Richard,

I tried with much higher timeout, still I could not get this to
work on my end. Is it possible to share your sample code (cuke4nuke
with Selenium)? I am thinking, I may not structure the
code in proper way.

Thanks,

-Nat.
Richard Lawrence
2010-01-11 12:50:21 UTC
Permalink
Sorry, I've never used Selenium with Cuke4Nuke—WatiN meets my needs—so
I don't have a sample around this. If you can share your code (maybe
at gist.github.com if it's just one step def class), I'd be willing to
have a look at it, though.

Richard

On Sun, Jan 10, 2010 at 9:48 PM, Nat Bala
Post by Nat Bala
Hi Richard,
    I tried with much higher timeout, still I could not get this to
work on my end. Is it possible to share your sample code (cuke4nuke
with Selenium)?  I am thinking, I may not structure the
    code in proper way.
    Thanks,
    -Nat.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-11 17:00:41 UTC
Permalink
Hi Richard,

Thank you so much for your help on this. I shared my code on
gist.github.com Here is the url

URL: git://gist.github.com/274369.git

Thanks,

-Nat.
Matt Wynne
2010-01-11 17:26:55 UTC
Permalink
Post by Nat Bala
Hi Richard,
Thank you so much for your help on this. I shared my code on
gist.github.com Here is the url
URL: git://gist.github.com/274369.git
Nat - please reply inline so others can pick up the thread of the
discussion from the newer messages.

Richard - presumably if SetupTest() were to raise an exception within
the 300 seconds, that would (should) bubble up to Cucumber, right? So
Nat's code must be hanging somewhere in that method, right?

Nat - can you add come logging to try to find out where your code
might be getting stuck?

cheers,
Matt

http://mattwynne.net
+447974 430184
Nat Bala
2010-01-11 20:20:45 UTC
Permalink
Post by Nat Bala
Hi Richard,
   Thank you so much for your help on this.  I shared my code on
gist.github.com  Here is the url
   URL: git://gist.github.com/274369.git
Nat - please reply inline so others can pick up the thread of the  
discussion from the newer messages.
Richard - presumably if SetupTest() were to raise an exception within  
the 300 seconds, that would (should) bubble up to Cucumber, right? So  
Nat's code must be hanging somewhere in that method, right?
Nat - can you add come logging to try to find out where your code  
might be getting stuck?
Matt - I added few Debug.Print statements in the SetupTest()
[Before] method. Nothing got printed on the Visual Studio Output
window.

Here is the log from Selenium-RC server

13:01:01.075 INFO - Command request: getNewBrowserSession
[*iexplore, http://www.google.com/, ] on session null
13:01:01.075 INFO - creating new remote session
13:01:01.076 INFO - Allocated session
3f82d75b01a543dc900a9e2f0f2f7a2c for http://www.google.com/,
launching...
13:01:01.458 INFO - Launching Embedded Internet Explorer...
13:01:02.462 INFO - Launching Internet Explorer HTA...
13:01:04.349 INFO - Got result: OK,3f82d75b01a543dc900a9e2f0f2f7a2c
on session 3 f82d75b01a543dc900a9e2f0f2f7a2c
cheers,
Matt
http://mattwynne.net
+447974 430184
Matt Wynne
2010-01-12 17:22:07 UTC
Permalink
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Hi Richard,
Thank you so much for your help on this. I shared my code on
gist.github.com Here is the url
URL: git://gist.github.com/274369.git
Nat - please reply inline so others can pick up the thread of the
discussion from the newer messages.
Richard - presumably if SetupTest() were to raise an exception within
the 300 seconds, that would (should) bubble up to Cucumber, right? So
Nat's code must be hanging somewhere in that method, right?
Nat - can you add come logging to try to find out where your code
might be getting stuck?
Matt - I added few Debug.Print statements in the SetupTest()
[Before] method. Nothing got printed on the Visual Studio Output
window.
Why would you expect it to? Did you attach your debugger to the
Cuke3Nuke Server process?
Post by Nat Bala
Here is the log from Selenium-RC server
13:01:01.075 INFO - Command request: getNewBrowserSession
[*iexplore, http://www.google.com/, ] on session null
13:01:01.075 INFO - creating new remote session
13:01:01.076 INFO - Allocated session
3f82d75b01a543dc900a9e2f0f2f7a2c for http://www.google.com/,
launching...
13:01:01.458 INFO - Launching Embedded Internet Explorer...
13:01:02.462 INFO - Launching Internet Explorer HTA...
13:01:04.349 INFO - Got result: OK,3f82d75b01a543dc900a9e2f0f2f7a2c
on session 3 f82d75b01a543dc900a9e2f0f2f7a2c
Post by Matt Wynne
cheers,
Matt
http://mattwynne.net
+447974 430184
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en
.
cheers,
Matt

http://mattwynne.net
+447974 430184
Nat Bala
2010-01-13 22:19:36 UTC
Permalink
I am executing the cuku4nuke from command line as the example showed
in Richard's WatiN example. Because of that I could not attach to the
cuke4nuke from Visual Studio.
What I am thinking is create a another window application project and
create instance of the SerachSteps.cs and access the Setup() method
that way, is there any other better way
to do this?

Thanks,

-Nat.
Richard Lawrence
2010-01-13 22:35:07 UTC
Permalink
Rather than trying to attach to Cuke4Nuke, maybe you could debug your
step definitions with NUnit like I blogged about yesterday her:
http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/.

Richard

On Wed, Jan 13, 2010 at 3:19 PM, Nat Bala
Post by Nat Bala
I am executing the cuku4nuke from command line as the example showed
in Richard's WatiN example.  Because of that I could not attach to the
cuke4nuke from Visual Studio.
What I am thinking is create a another window application project and
create instance of the SerachSteps.cs and access the Setup() method
that way, is there any other better way
to do this?
Thanks,
-Nat.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Richard Lawrence
2010-01-11 19:45:02 UTC
Permalink
I've only ever used Selenium with Cucumber on Java (driving Firefox),
but my Before code looked very similar to what you have. I don't see
any obvious reason why your Before hook wouldn't return reasonably
quickly, except maybe if the Selenium server isn't running.

Richard

On Mon, Jan 11, 2010 at 10:00 AM, Nat Bala
Post by Nat Bala
Hi Richard,
   Thank you so much for your help on this.  I shared my code on
gist.github.com  Here is the url
   URL: git://gist.github.com/274369.git
 Thanks,
 -Nat.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Joe FitzGerald
2010-01-18 22:17:29 UTC
Permalink
I have it working on my system. I couldn't get the timeout values in
the wire file to work, but I edited the configuration.rb file (in C:
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber\wire_support
on my system) so that the timeout was 300 and then it worked fine. At
some point I'll look into the wire file timeout specs and figure out
what is going on but in the meantime, that might get you up and
running.
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run thecuke4nukewith Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-19 23:29:55 UTC
Permalink
I have it working on my system.  I couldn't get the timeout values in
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber\wire_support
on my system) so that the timeout was 300 and then it worked fine.  At
some point I'll look into the wire file timeout specs and figure out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone. I got cuke4nuke working with Selenium. I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS. Once I start all the services as administrator, everything
started to work together.

Thanks for the support...!

-Nat.
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run thecuke4nukewith Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.- Hide quoted text -
- Show quoted text -
Matt Wynne
2010-01-19 23:37:38 UTC
Permalink
Post by Nat Bala
Post by Joe FitzGerald
I have it working on my system. I couldn't get the timeout values in
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber\wire_support
on my system) so that the timeout was 300 and then it worked fine.
At
some point I'll look into the wire file timeout specs and figure out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone. I got cuke4nuke working with Selenium. I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS. Once I start all the services as administrator, everything
started to work together.
I would very much like to understand why you had to hack the source
code (configuration.rb) instead of configuring your timeouts in
the .wire file. Did you see the example in [1]? Could you post
your .wire file (maybe as a gist.github.com) so we can have a look at
it?

[1]http://github.com/aslakhellesoy/cucumber/blob/master/features/wire_protocol_timeouts.feature
Post by Nat Bala
Thanks for the support...!
-Nat.
Post by Joe FitzGerald
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
Is it possible to run thecuke4nukewith Selenium instead of
WatiN?
Did anyone used before, if so can you provide me some sample code?
We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
Thanks,
-Nat.
--
You received this message because you are subscribed to the
Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en
.
cheers,
Matt

http://mattwynne.net
+447974 430184
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-20 00:27:08 UTC
Permalink
I have it working on my system.  I couldn't get the timeout values in
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber\wire_support
on my system) so that the timeout was 300 and then it worked fine.  
At
some point I'll look into the wire file timeout specs and figure out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone.  I got cuke4nuke working with Selenium.  I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS.  Once I start all the services as administrator, everything
started to work together.
I would very much like to understand why you had to hack the source  
code (configuration.rb) instead of configuring your timeouts in  
the .wire file. Did you see the example in [1]? Could you post  
your .wire file (maybe as a gist.github.com) so we can have a look at  
it?
[1]http://github.com/aslakhellesoy/cucumber/blob/master/features/wire_pr...
Here is the copy of my cucumber.wire file content
host: localhost
port: 3901
timeout:
invoke: 35
before_scenario: 300

Configuration.rb file original install contains this value
def timeout(message = nil)
return @timeouts[message.to_s] || 3

I changed that 3 to 300 and started to work. Here is the version #
cucumber (0.5.3)
cuke4nuke (0.3.0)
Thanks for the support...!
-Nat.
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run thecuke4nukewith Selenium instead of  
WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I  
like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the  
Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.-Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google  
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
Matt Wynne
2010-01-20 09:17:02 UTC
Permalink
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Post by Joe FitzGerald
I have it working on my system. I couldn't get the timeout
values in
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber
\wire_support
on my system) so that the timeout was 300 and then it worked fine.
At
some point I'll look into the wire file timeout specs and figure out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone. I got cuke4nuke working with
Selenium. I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS. Once I start all the services as administrator,
everything
started to work together.
I would very much like to understand why you had to hack the source
code (configuration.rb) instead of configuring your timeouts in
the .wire file. Did you see the example in [1]? Could you post
your .wire file (maybe as a gist.github.com) so we can have a look at
it?
[1]http://github.com/aslakhellesoy/cucumber/blob/master/features/wire_pr
...
Here is the copy of my cucumber.wire file content
host: localhost
port: 3901
invoke: 35
before_scenario: 300
Configuration.rb file original install contains this value
def timeout(message = nil)
I changed that 3 to 300 and started to work. Here is the version #
cucumber (0.5.3)
cuke4nuke (0.3.0)
Thanks Nat. Would you mind doing me a favour and hacking your
configuration.rb file to look like this:

def timeout(message = nil)
p @timeouts
p message
return @timeouts[message.to_s] || 3
end

That should print-out what's been read from the wire file. Can you
then share the (relevant bits) of the output with us?
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Thanks for the support...!
-Nat.
Post by Joe FitzGerald
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
Is it possible to run thecuke4nukewith Selenium instead of
WatiN?
Did anyone used before, if so can you provide me some sample code?
We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
Thanks,
-Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.-Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en
.
cheers,
Matt

http://mattwynne.net
+447974 430184
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-20 19:35:59 UTC
Permalink
Post by Nat Bala
Post by Matt Wynne
I have it working on my system.  I couldn't get the timeout  
values in
the wire file to work, but I edited the configuration.rb file (in  
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber
\wire_support
on my system) so that the timeout was 300 and then it worked fine.
At
some point I'll look into the wire file timeout specs and figure  
out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone.  I got cuke4nuke working with  
Selenium.  I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS.  Once I start all the services as administrator,  
everything
started to work together.
I would very much like to understand why you had to hack the source
code (configuration.rb) instead of configuring your timeouts in
the .wire file. Did you see the example in [1]? Could you post
your .wire file (maybe as a gist.github.com) so we can have a look at
it?
[1]http://github.com/aslakhellesoy/cucumber/blob/master/features/wire_pr
...
Here is the copy of my cucumber.wire file content
host: localhost
port: 3901
 invoke: 35
 before_scenario: 300
Configuration.rb file original install contains this value
     def timeout(message = nil)
I changed that 3 to 300 and started to work.  Here is the version #
cucumber (0.5.3)
cuke4nuke (0.3.0)
Thanks Nat. Would you mind doing me a favour and hacking your  
def timeout(message = nil)
   p message
end
That should print-out what's been read from the wire file. Can you  
then share the (relevant bits) of the output with us?
Matt, here is the output from the command window

Feature: Google search
In order find things on the internet
As a user
I want to search for web pages with particular text in them

Scenario: Load search page # features/search.feature:6
{"before_scenario"=>300, "invoke"=>35}
nil
{"before_scenario"=>300, "invoke"=>35}
"begin_scenario"
Timed out calling wire server with message
'begin_scenario' (Timeout::Error)
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:39:in `fetch_data_from_socket'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:20:in `call_remote'

It looks to me reading the number correctly from the wire file.
Should this setting on wire file overwrites the configuration.rb
file? or this is only
valid for the current feature file I am running?


Thanks,

-Nat.
Post by Nat Bala
Post by Matt Wynne
Thanks for the support...!
-Nat.
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and  
help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run thecuke4nukewith Selenium instead of
WatiN?
Did anyone used before, if so can you provide me some sample  
code?
     We have serveral automated test created using Selenium, I
like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.-Hidequoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google  
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
Matt Wynne
2010-01-21 08:53:08 UTC
Permalink
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Post by Joe FitzGerald
I have it working on my system. I couldn't get the timeout values in
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber
\wire_support
on my system) so that the timeout was 300 and then it worked fine.
At
some point I'll look into the wire file timeout specs and figure out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone. I got cuke4nuke working with
Selenium. I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS. Once I start all the services as administrator,
everything
started to work together.
I would very much like to understand why you had to hack the source
code (configuration.rb) instead of configuring your timeouts in
the .wire file. Did you see the example in [1]? Could you post
your .wire file (maybe as a gist.github.com) so we can have a look at
it?
[1]http://github.com/aslakhellesoy/cucumber/blob/master/features/wire_pr
...
Here is the copy of my cucumber.wire file content
host: localhost
port: 3901
invoke: 35
before_scenario: 300
Configuration.rb file original install contains this value
def timeout(message = nil)
I changed that 3 to 300 and started to work. Here is the version #
cucumber (0.5.3)
cuke4nuke (0.3.0)
Thanks Nat. Would you mind doing me a favour and hacking your
def timeout(message = nil)
p message
end
That should print-out what's been read from the wire file. Can you
then share the (relevant bits) of the output with us?
Matt, here is the output from the command window
Feature: Google search
In order find things on the internet
As a user
I want to search for web pages with particular text in them
Scenario: Load search page # features/search.feature:6
{"before_scenario"=>300, "invoke"=>35}
nil
{"before_scenario"=>300, "invoke"=>35}
"begin_scenario"
Timed out calling wire server with message
'begin_scenario' (Timeout::Error)
So there's your mistake Nat: the .wire file has a timeout value for
the non-existent 'before_scenario' message, and as the error message
shows, the message is actually 'begin_scenario'. If you edit your wire
file to look like this, it should work:

host: localhost
port: 3901
timeout:
invoke: 35
begin_scenario: 300

I think I'll change the error message in Cucumber to give a better
explanation of how to edit the .wire file. Would that have helped?
Post by Nat Bala
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:39:in `fetch_data_from_socket'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:20:in `call_remote'
It looks to me reading the number correctly from the wire file.
Should this setting on wire file overwrites the configuration.rb
file? or this is only
valid for the current feature file I am running?
Thanks,
-Nat.
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Thanks for the support...!
-Nat.
Post by Joe FitzGerald
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
Is it possible to run thecuke4nukewith Selenium instead of
WatiN?
Did anyone used before, if so can you provide me some sample code?
We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
Thanks,
-Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.-Hidequoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en
.
cheers,
Matt

http://mattwynne.net
+447974 430184
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-21 21:46:20 UTC
Permalink
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
I have it working on my system.  I couldn't get the timeout
values in
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber
\wire_support
on my system) so that the timeout was 300 and then it worked  
fine.
At
some point I'll look into the wire file timeout specs and figure out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone.  I got cuke4nuke working with
Selenium.  I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS.  Once I start all the services as administrator,
everything
started to work together.
I would very much like to understand why you had to hack the source
code (configuration.rb) instead of configuring your timeouts in
the .wire file. Did you see the example in [1]? Could you post
your .wire file (maybe as a gist.github.com) so we can have a  
look at
it?
[1]http://github.com/aslakhellesoy/cucumber/blob/master/features/wire_pr
...
Here is the copy of my cucumber.wire file content
host: localhost
port: 3901
 invoke: 35
 before_scenario: 300
Configuration.rb file original install contains this value
     def timeout(message = nil)
I changed that 3 to 300 and started to work.  Here is the version #
cucumber (0.5.3)
cuke4nuke (0.3.0)
Thanks Nat. Would you mind doing me a favour and hacking your
def timeout(message = nil)
   p message
end
That should print-out what's been read from the wire file. Can you
then share the (relevant bits) of the output with us?
  Matt, here is the output from the command window
  ∩╗┐Feature: Google search
   In order find things on the internet
   As a user
   I want to search for web pages with particular text in them
 Scenario: Load search page            # features/search.feature:6
{"before_scenario"=>300, "invoke"=>35}
nil
{"before_scenario"=>300, "invoke"=>35}
"begin_scenario"
Timed out calling wire server with message
'begin_scenario' (Timeout::Error)
So there's your mistake Nat: the .wire file has a timeout value for  
the non-existent 'before_scenario' message, and as the error message  
shows, the message is actually 'begin_scenario'. If you edit your wire  
     host: localhost
     port: 3901
       invoke: 35
       begin_scenario: 300
I think I'll change the error message in Cucumber to give a better  
explanation of how to edit the .wire file. Would that have helped?
Thanks Matt, I restored my configuration.rb file back to original
value and added begin_scenario: 300. It's working fine for me. Yes,
please share the
list of configuration settings or how to edit provide .wire file
will be really helpful.

Thanks,

-Nat.
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:39:in `fetch_data_from_socket'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:20:in `call_remote'
   It looks to me reading the number correctly from the wire file.
Should this setting on wire file overwrites the configuration.rb
file?  or this is only
   valid for the current feature file I am running?
   Thanks,
   -Nat.
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
Thanks for the support...!
-Nat.
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run thecuke4nukewith Selenium instead of
WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I
like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.-Hidequotedtext -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google  
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
Richard Lawrence
2010-01-22 10:58:29 UTC
Permalink
Matt,

If you have a chance, can you add something to the Cuke4Nuke wiki
about the timeouts in the wire file? Also, because most Cuke4Nuke
users probably will use it with WatiN or Selenium, the default
begin_scenario and end_scenario timeouts ought to be long like the
invoke timeout.

Thanks,

Richard

On Thu, Jan 21, 2010 at 2:46 PM, Nat Bala
Post by Matt Wynne
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
I have it working on my system.  I couldn't get the timeout values in
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber
\wire_support
on my system) so that the timeout was 300 and then it worked fine.
At
some point I'll look into the wire file timeout specs and figure out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone.  I got cuke4nuke working with Selenium.  I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS.  Once I start all the services as administrator, everything
started to work together.
I would very much like to understand why you had to hack the source
code (configuration.rb) instead of configuring your timeouts in
the .wire file. Did you see the example in [1]? Could you post
your .wire file (maybe as a gist.github.com) so we can have a look at
it?
[1]http://github.com/aslakhellesoy/cucumber/blob/master/features/wire_pr
...
Here is the copy of my cucumber.wire file content
host: localhost
port: 3901
 invoke: 35
 before_scenario: 300
Configuration.rb file original install contains this value
     def timeout(message = nil)
I changed that 3 to 300 and started to work.  Here is the version #
cucumber (0.5.3)
cuke4nuke (0.3.0)
Thanks Nat. Would you mind doing me a favour and hacking your
def timeout(message = nil)
   p message
end
That should print-out what's been read from the wire file. Can you
then share the (relevant bits) of the output with us?
  Matt, here is the output from the command window
  ∩╗┐Feature: Google search
   In order find things on the internet
   As a user
   I want to search for web pages with particular text in them
 Scenario: Load search page            # features/search.feature:6
{"before_scenario"=>300, "invoke"=>35}
nil
{"before_scenario"=>300, "invoke"=>35}
"begin_scenario"
Timed out calling wire server with message
'begin_scenario' (Timeout::Error)
So there's your mistake Nat: the .wire file has a timeout value for
the non-existent 'before_scenario' message, and as the error message
shows, the message is actually 'begin_scenario'. If you edit your wire
     host: localhost
     port: 3901
       invoke: 35
       begin_scenario: 300
I think I'll change the error message in Cucumber to give a better
explanation of how to edit the .wire file. Would that have helped?
 Thanks Matt, I restored my configuration.rb file back to original
value and added begin_scenario: 300.  It's working fine for me.  Yes,
please share the
 list of configuration settings or how to edit provide .wire file
will be really helpful.
  Thanks,
   -Nat.
Post by Matt Wynne
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:39:in `fetch_data_from_socket'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:20:in `call_remote'
   It looks to me reading the number correctly from the wire file.
Should this setting on wire file overwrites the configuration.rb
file?  or this is only
   valid for the current feature file I am running?
   Thanks,
   -Nat.
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
Thanks for the support...!
-Nat.
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run thecuke4nukewith Selenium instead of
WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I
like to reuse
them without rewrite the tests in WatiN.
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the
Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.-Hidequotedtext -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Matt Wynne
2010-01-22 15:08:40 UTC
Permalink
Post by Richard Lawrence
Matt,
If you have a chance, can you add something to the Cuke4Nuke wiki
about the timeouts in the wire file? Also, because most Cuke4Nuke
users probably will use it with WatiN or Selenium, the default
begin_scenario and end_scenario timeouts ought to be long like the
invoke timeout.
done:

http://wiki.github.com/richardlawrence/Cuke4Nuke/troubleshooting
Post by Richard Lawrence
Thanks,
Richard
On Thu, Jan 21, 2010 at 2:46 PM, Nat Bala
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Post by Joe FitzGerald
I have it working on my system. I couldn't get the timeout values in
the wire file to work, but I edited the configuration.rb
file (in
\Ruby\lib\ruby\gems\1.8\gems\cucumber-0.6.1\lib\cucumber
\wire_support
on my system) so that the timeout was 300 and then it worked fine.
At
some point I'll look into the wire file timeout specs and
figure
out
what is going on but in the meantime, that might get you up and
running.
Thank you so much everyone. I got cuke4nuke working with Selenium. I
fixed the ruby file (configuration.rb) and on top of that
there was the permission issue caused the script not to run on the
Vista OS. Once I start all the services as administrator, everything
started to work together.
I would very much like to understand why you had to hack the source
code (configuration.rb) instead of configuring your timeouts in
the .wire file. Did you see the example in [1]? Could you post
your .wire file (maybe as a gist.github.com) so we can have a look at
it?
[1]http://github.com/aslakhellesoy/cucumber/blob/master/features/wire_pr
...
Here is the copy of my cucumber.wire file content
host: localhost
port: 3901
invoke: 35
before_scenario: 300
Configuration.rb file original install contains this value
def timeout(message = nil)
I changed that 3 to 300 and started to work. Here is the
version #
cucumber (0.5.3)
cuke4nuke (0.3.0)
Thanks Nat. Would you mind doing me a favour and hacking your
def timeout(message = nil)
p message
end
That should print-out what's been read from the wire file. Can you
then share the (relevant bits) of the output with us?
Matt, here is the output from the command window
Feature: Google search
In order find things on the internet
As a user
I want to search for web pages with particular text in them
Scenario: Load search page # features/search.feature:6
{"before_scenario"=>300, "invoke"=>35}
nil
{"before_scenario"=>300, "invoke"=>35}
"begin_scenario"
Timed out calling wire server with message
'begin_scenario' (Timeout::Error)
So there's your mistake Nat: the .wire file has a timeout value for
the non-existent 'before_scenario' message, and as the error message
shows, the message is actually 'begin_scenario'. If you edit your wire
host: localhost
port: 3901
invoke: 35
begin_scenario: 300
I think I'll change the error message in Cucumber to give a better
explanation of how to edit the .wire file. Would that have helped?
Thanks Matt, I restored my configuration.rb file back to original
value and added begin_scenario: 300. It's working fine for me. Yes,
please share the
list of configuration settings or how to edit provide .wire file
will be really helpful.
Thanks,
-Nat.
Post by Matt Wynne
Post by Nat Bala
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:39:in `fetch_data_from_socket'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:20:in `call_remote'
It looks to me reading the number correctly from the wire file.
Should this setting on wire file overwrites the configuration.rb
file? or this is only
valid for the current feature file I am running?
Thanks,
-Nat.
Post by Matt Wynne
Post by Nat Bala
Post by Matt Wynne
Post by Nat Bala
Thanks for the support...!
-Nat.
Post by Joe FitzGerald
Post by Ben Hall
Hi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium +Cuke4Nukein the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally
and
help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan Balashanmugam
Hello,
Is it possible to run thecuke4nukewith Selenium
instead of
WatiN?
Did anyone used before, if so can you provide me some sample code?
We have serveral automated test created using
Selenium, I
like to reuse
them without rewrite the tests in WatiN.
Thanks,
-Nat.
--
You received this message because you are subscribed to the
Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.-Hidequotedtext -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en
.
cheers,
Matt
http://mattwynne.net
+447974 430184- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en
.
cheers,
Matt

+447974 430184
matt-***@public.gmane.org
http://mattwynne.net
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
aslak hellesoy
2010-01-08 00:48:31 UTC
Permalink
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run the cuke4nuke with Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
Are you using Selenium-RC with the C# client driver? Is that your
motivation to use Cuke4Nuke?

Aslak
Post by Natarajan Balashanmugam
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.
Nat Bala
2010-01-08 06:14:44 UTC
Permalink
Yes, I am using Selenium-RC with C# client drivers, some of our
original test automation was built of Selenium, going forward, and we
want to use the Cucumber (GWT) to define the acceptance test.

Thanks,

-Nat.
Post by aslak hellesoy
Post by Natarajan Balashanmugam
Hello,
     Is it possible to run the cuke4nuke with Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
     We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
Are you using Selenium-RC with the C# client driver? Is that your
motivation to use Cuke4Nuke?
Aslak
Post by Natarajan Balashanmugam
     Thanks,
     -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.- Hide quoted text -
- Show quoted text -
Loading...