Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using Cucumber to test non-Rails application
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ToddH  
View profile  
 More options Oct 12 2010, 12:47 am
From: ToddH <todd.huss.w...@gmail.com>
Date: Mon, 11 Oct 2010 21:47:14 -0700 (PDT)
Local: Tues, Oct 12 2010 12:47 am
Subject: Using Cucumber to test non-Rails application
I'm interested in using Cucumber and Capybara to test non-rails (and
non-rack based) web applications. However, I'm still not clear on how
to generate the project structure for testing an external web
application. Is there a generator somewhere that I'm overlooking or
should I be creating the project files and structure by hand?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Raveendran P  
View profile   Translate to Translated (View Original)
 More options Oct 12 2010, 3:18 am
From: Raveendran P <jazzezr...@gmail.com>
Date: Tue, 12 Oct 2010 12:48:31 +0530
Local: Tues, Oct 12 2010 3:18 am
Subject: Re: [Cucumber:5918] Using Cucumber to test non-Rails application

Hi,

We can use Watircraft framework to test nonRails application.

For more details about WatirCraft -- http://bit.ly/boLD2p

Thanks
http://raveendran.wordpress.com

--
Regards,
P.Raveendran
http://raveendran.wordpress.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Wynne  
View profile  
 More options Oct 12 2010, 6:47 am
From: Matt Wynne <m...@mattwynne.net>
Date: Tue, 12 Oct 2010 11:47:42 +0100
Local: Tues, Oct 12 2010 6:47 am
Subject: Re: [Cucumber:5918] Using Cucumber to test non-Rails application
Hi Todd,

On 12 Oct 2010, at 05:47, ToddH wrote:

> I'm interested in using Cucumber and Capybara to test non-rails (and
> non-rack based) web applications. However, I'm still not clear on how
> to generate the project structure for testing an external web
> application. Is there a generator somewhere that I'm overlooking or
> should I be creating the project files and structure by hand?

> Thanks!

There isn't a generator I know of, but it's pretty simple to do by hand. In your project's root directory:

    mkdir features
    mkdir features/support
    mkdir features/step_definitions

Then create a file features/support/env.rb which looks something like this:

    require 'capybara'
    require 'capybara/dsl'

    Capybara.default_driver = :selenium
    Capybara.app_host = 'http://hostname-of-your-test-server.com'

    World(Capybara)

Then just start creating features and follow Cucumber's snippets to create your step definitions. You should find Capybara's DSL methods are available to you in the step definitions (that's what the #World method does).

Good luck.

cheers,
Matt

http://blog.mattwynne.net
+44(0)7974 430184


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Boeboe  
View profile  
 More options Oct 12 2010, 6:25 pm
From: Boeboe <bartvan...@gmail.com>
Date: Tue, 12 Oct 2010 15:25:41 -0700 (PDT)
Local: Tues, Oct 12 2010 6:25 pm
Subject: Re: Using Cucumber to test non-Rails application
Hi Todd,

We are also using Capybara/Cucumber in a none rails env. We used a
similar approach as Matt mentions. At some point we wanted to divert
from this expected directory structure, since we had several projects
sharing some common Capybara, other steps and some extra defined ruby
modules. You can add a cucumber.yml file into the folder you'd like to
use to start your features with cucumber (google for details).
Basically you extend your cucumber require-path by chaining them  "-r /
env_folder -r /feature_folder -r /step_folder ..." in the yaml file.

BR,
Bart

On Oct 12, 12:47 pm, Matt Wynne <m...@mattwynne.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonas Nicklas  
View profile  
 More options Oct 13 2010, 3:40 am
From: Jonas Nicklas <jonas.nick...@gmail.com>
Date: Wed, 13 Oct 2010 09:40:20 +0200
Local: Wed, Oct 13 2010 3:40 am
Subject: Re: [Cucumber:5924] Using Cucumber to test non-Rails application
I suggest also doing

    require 'capybara/cucumber'

that will include Capybara in the World for you and also set up some
useful tags (@javascript, etc..)

/Jonas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ToddH  
View profile  
 More options Oct 26 2010, 4:52 pm
From: ToddH <todd.huss.w...@gmail.com>
Date: Tue, 26 Oct 2010 13:52:47 -0700 (PDT)
Local: Tues, Oct 26 2010 4:52 pm
Subject: Re: Using Cucumber to test non-Rails application
Thanks for all the tips and suggestions! I've put together a
standalone cucumber starter project on Github to hopefully help other
people that want to do the same thing:

http://github.com/thuss/standalone-cucumber

-Todd

On Oct 13, 12:40 am, Jonas Nicklas <jonas.nick...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »