Hi,
I would like to test whether an array size is either of two integer
obejects
mark_up_parser.sorted_xml.size.should === (4..5)
However I am recieiving an exception of:
expected: 4..5,
got: 4 (using ===)
Do I need to write a custom
On 28 April 2010 19:01, David Chelimsky dchelim...@gmail.com wrote:
To phrase it like that, yes. You could to this now:
[4,5].should include(obj.size)
Nice
HTH,
David
Thanks
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
Hi Jean,
2009/5/9 Ben Mabey b...@benmabey.com:
Jean-Michel Garnier wrote:
3 months ago, I submitted a patch to cucumber so I could run cucumber
from
a
ruby script and use the debugger in netbeans
Is it possible for you to Wiki how to use the Netbeans debugger
through Cucumber and your
Hi All
It seems to me that there's an opportunity for packaging together and
sharing steps, but am curious of folks thoughts on the best way to go about
this.
Mike
Customer/Users are likely to have their 'own' language' and that
providing library steps - could thus be argued - to negate
Hi,
Aslak twittered this NetBeans Cucumber module :
http://members.chello.at/server/modules.html
I have tried to manually install it, but NetBeans in complaining about:
Missing required modules for Plugin Cucumber Features:
Generic Languages Framework [module org.netbeans.modules.languages/0-1
Aslak,
Will do, I just thought someone on the list may have tried it.
Aidy
2009/4/29 aslak hellesoy aslak.helle...@gmail.com:
Hi,
Aslak twittered this NetBeans Cucumber module :
http://members.chello.at/server/modules.html
I have tried to manually install it, but NetBeans in complaining
Hi,
#env.rb
class ProjectWorld
include Spec::Matchers
def browser
@browser ||= Browser.new
end
end
World do
ProjectWorld.new
end
Instead of using explicit getters here, can I not use attribute readers?
Aidy
___
rspec-users
On 07/04/2009, Zach Dennis zach.den...@gmail.com wrote:
On Mon, Apr 6, 2009 at 12:21 PM, Ben Mabey b...@benmabey.com wrote:
My best
suggestion would be to set multiple breakpoints and hit c to continue to
the next one so you can skip through all of Cucumber's code.
I will sometimes
Hi Tim,
I have used a custom formatter, if this is any help
class ExceptionFormatter Cucumber::Ast::Visitor
def initialize(step_mother, io, options)
super(step_mother)
end
def visit_feature_name(name)
if name =~ /Feature:\s(.*)/i
@name = $1
else
@name = name
Hi David
2009/3/31 David Chelimsky dchelim...@gmail.com:
The point of TDD is writing small examples and small bits of code in a
cycle. The point of BDD is to write high level scenarios so you know
what code to write, but then drive it out in detail with TDD.
Does this necessitate that the
Hi David
2009/4/1 David Chelimsky dchelim...@gmail.com:
. That said, in some idealistic BDD fashion, I'd think the best
deal would be the tester and developer pairing on automating AC. Then
that developer would pair with another developer driving out the code
w/ TDD.
If we have two different
Hi,
Ticket 44 is resolved, I am using 0.2.3 and attempting to throw the
html upon a failure
Before do |scenario|
@sc = scenario
end
After do
puts @sc.methods.sort
throw $browser.html @sc.failed?
end
Have these getters not been released or is my implementation flawed?
Thanks
Aidy
Hi Phlip,
On 31/03/2009, Phlip phlip2...@gmail.com wrote:
Our editor support for TDD also sucks. It should run the most recently
edited test cases, nearly automatically. Everyone swears by Textmate, and it
simply can't do that. Then, the Java-based editors also can't do it!
What editor are
Hi,
Is the stack trace not in the HTML by design?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi Matt/Dan
2009/3/2 Matt Wynne m...@mattwynne.net:
At the moment, IMO, the tools for feeding back the features to non-technical
people are pretty immature. My colleague Dan Lucraft wrote a tool which
produces a nicely-formatted PDF document from your features folder[1] which
is great, but
Hi Tom,
We have written an extension that counts your tests and provides a
link(s) to the failure backtrace in the Cucumber HTML.
There seem to be issues when Cucumber writes to the HTML over around
800 steps, so we are waiting for version 0.2.
Aidy
On 26/02/2009, Tom ten Thij
Hi,
When we create step defintions. For example:
When /^that data is loaded$/ do
end
The above is seen in the Cucucmber run as implemented.
Is it possible to put something within this method to enforce a skip flag?
Aidy
___
rspec-users
Hi Josh et al
On 25/02/2009, Josh Knowles joshknow...@gmail.com wrote:
On Wed, Feb 25, 2009 at 5:52 AM, aidy lewis aidy.le...@googlemail.com wrote:
Hi,
When we create step defintions. For example:
When /^that data is loaded$/ do
end
Are you familiar with the pending
Hi,
I know this seems all take and no give, but do we have an estimated
final release date for Cucumber 0.2?
Thanks
Aidy
Celerity, Cucumber and Firewatir:
http://skillsmatter.com/event/ruby-on-rails/lrug-march
___
rspec-users mailing list
Hi,
Is it possible to run the html and console formatting concurrently in Cucumber?
Thanks
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi,
Where should we be documenting errors in the Rspec beta book?
Thanks
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi
On 23/01/2009, aslak hellesoy aslak.helle...@gmail.com wrote:
18) How to use Cukes with non-Ruby platforms (Watir family,
I will gladly put something together on Cucumber and Watir.
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
Josh,
On 22/01/2009, Josh Chisholm joshuachish...@gmail.com wrote:
Would you avoid the brittleness that clicks submit link|button has over
I submit.
There are often many ways of submitting on the same page. So to avoid
tying I submit to a particular scenario, I tend to use I click
Hi,
Is it bad form to use a 'Then' after a 'When' and then a 'Then'?
When the CiP ingest checkbox is clicked
Then '1 Spool(s) in Cart' should appear
When the Add button is clicked
Then an ingest user is on the BBC Cart page
Or should I create a new scenario and use a 'Given'?
Or can I
Hi,
Apologies only just read the last post re: multiple iterations: please ignore.
Aidy
On 21/01/2009, aidy lewis aidy.le...@googlemail.com wrote:
Hi,
Is it bad form to use a 'Then' after a 'When' and then a 'Then'?
When the CiP ingest checkbox is clicked
Then '1 Spool(s) in Cart
Hi David,
On 21/01/2009, David Chelimsky dchelim...@gmail.com wrote:
text on the button that is deemed to have business value, then you
might say And I click 'Request Service' - but if you're referencing
DOM IDs or HTML element names like 'submit', I'd hide those.
However we could get a
Hi Guys,
2009/1/15 aslak hellesoy aslak.helle...@gmail.com:
On Thu, Jan 15, 2009 at 9:25 PM, Mischa Fierer f.mis...@gmail.com wrote:
While I agree that ie6 must die, the fix required to make it work sounds
minimal in this case. I may be wrong.
Perhaps, Aidy, you would be interested in
Hi,
The users are using IE6. The Cucumber HTML appears fine in firefox,
opera, IE7 etc.
However, I am not receiving any colouring in IE6.
I put the cucumber.css through the w3c validator and no errors.
Is anyone else having the same problem?
Aidy
Hi,
I have a Rake problem.
I would like the default task to run after :features.
Curently it doesn't when :features fails. Could you please help?
RAKE
require 'cucumber/rake/task'
def send_dcs_email_report(path_to_story_results)
###
end
Cucumber::Rake::Task.new(features, All features in
On 13/01/2009, Matt Wynne m...@mattwynne.net wrote:
On 13 Jan 2009, at 18:02, aidy lewis wrote:
Hi,
I have a Rake problem.
I would like the default task to run after :features.
Curently it doesn't when :features fails. Could you please help?
RAKE
require 'cucumber/rake
Hi,
Is there a hook or a method to execute some code after a whole feature
has run or will I need to embed that in a 'Then'?
Regards
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi Joe, Aslak
2009/1/5 Joseph Wilk j...@josephwilk.net:
aidy lewis wrote:
Hi Alsak,
I am finding it difficult to separate my Acceptance Tests unless I
have lengthy scenarios.
One scenario would be one sequence of action etc - until a goal is
reached.
At the end of the feature, I would
to get back to the
previous state. This is expensive with browser based tests.
Aidy
On 05/01/2009, aslak hellesoy aslak.helle...@gmail.com wrote:
On Mon, Jan 5, 2009 at 2:33 PM, aidy lewis aidy.le...@googlemail.com
wrote:
Hi,
Is there a hook or a method to execute some code after a whole
Hi,
I have exampled Cucumber and FireWatir here:
http://code.google.com/p/cucumber-and-watir/
FireWatir will run on Windows, OSX and GNU\Linux.
It is on google-code as I am unfamiliar with git.
Regards
Aidy
___
rspec-users mailing list
debugging.
Thanks
Aidy
2008/12/22 aslak hellesoy aslak.helle...@gmail.com:
On Mon, Dec 22, 2008 at 9:46 PM, aidy lewis aidy.le...@googlemail.com
wrote:
Hi,
I am using Cucumber in combination with tests that drive the actual
browser.
Is there a place where I can easily trap an exception
Hi,
Is the way to figure out the the last scenario executed in the After block?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi,
I am using Cucumber in combination with tests that drive the actual browser.
Is there a place where I can easily trap an exception and take a
screenshot of the browser?
Regards
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
Hi,
I have a step that has been defined by the user
Given /a logged in user/ {}
Now in that step I have my own step (not defined by the business) of
Given all projects have been deleted
The second step needs to be included in the first
Given /a logged in user/ do
Given(all projects have
Hi,
I use Watir\Firewatir with Cucumber. I previously used a framework
that object modelled the A-U-T; so each HTML page would be a class and
each object a method: this improved readability.
We came to the conclusion that this was over-engineering, slow and
boring; so I annihilated the object
Hi Aslak,
Below are my manager's recommendations:
If you take a look at Twist, Thoughtworks have already done the hard
work in gleaning the requirements for this. Something Twist like would
be well received.
http://studios.thoughtworks.com/twist-agile-test-automation
Their implementation is
Hi,
I am running a number of features once, but for some reason, I am
getting duplicate features in the HTML report.
Has anyone else experienced this?
Cucumber --version 0.1.8
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
Ben, Joseph,
2008/11/24 Joseph Wilk [EMAIL PROTECTED]:
aidy lewis wrote:
Hi,
I am running a number of features once, but for some reason, I am
getting duplicate features in the HTML report.
Has anyone else experienced this?
Cucumber --version 0.1.8
Aidy
Hi,
The customer is not happy about writing Stories in a text editor.
Has anyone else experienced this? Is anyone using a wiki, spreadsheet,
or word document and automatically converting to a text file?
Thanks
Aidy
___
rspec-users mailing list
Hi Matt,
How are you?
On 07/11/2008, Matt Wynne [EMAIL PROTECTED] wrote:
Are you pairing with them? Can you not just drive and do the typing, asking
them questions all the while to keep them engaged?
Cucumber is now the standard here, with all projects using it. The
guys who were using Watin
Hi,
I have different projects with features related to those projects in
different folders
/project_1
/project_2
/steps
The steps cover both projects
How do I get Cucumber to require all features within both the projects
folders and include the common steps?
Thanks
Aidy
Hi Alsak,
2008/10/27 Aslak Hellesøy [EMAIL PROTECTED]:
What version/revision?
I am on 0.1.7; I guess I need to upgrade. If this is the case, will I
need to use the Trunk or is there a gem?
Thanks
Aidy
___
rspec-users mailing list
Hi,
I am having a problem with my Cucumber step FIT-like tables.
This is my scenario
Scenario: Filter by new files added
Given a database update that creates an ExpiryDate that is within 30 days
And a logged in OLC user
When clicks 'After Sales'
And selects 'New files added
Hi,
We would like to pass in some additional command line arguments into
Cucumber (for example to specify which browser to run the tests with).
Is there any way to extend Cucumber's arguments, or could you suggest
an alternative way of going about this?
Aid
Hi,
Today I installed the latest cucumber gem.
For some reason, the actual current step file and step line number is
being printed to the right of the step in the console.
E.g.
And enters into job reference# steps/publish_content_steps.rb:134
Is this a switch I can turn off?
Aidy
Hi,
Is there anyway I can cycle through all the features in a folder and
pipe to html
through the command line?
For this:
C:\SvnProjects\my_application\features cucumber *.feature --format html
my_application.htm
I am getting a wrong number of arguments (3 for 1).
Or how could run all
Hi David,
cucumber folder_name --format html report.html
Thanks for your response.
That doesn't seem to report for me (maybe it is because one of my
tests fails - throws an exception and then writes to the console
before it outputs to the html file).
Cheers
Aidy
Hi,
We are receiving an ArityMismatchError when we feel we have a valid RegEx
error
C:/svnprojects/olc_stories/lib/framework/common_steps/verification_steps.rb:48:in
`/verify the email with the subject of '[\w\x2E\-\s]*'/'
create_staff_user.feature:15:in `And verify the email with the
Aslak
2008/9/30 aslak hellesoy [EMAIL PROTECTED]:
There are no groups in your regexp. You probably want this:
/verify the email with the subject of '([\w\x2E\-\s]*)'/
Aslak
Apologies. Thank You.
Aidy
___
rspec-users mailing list
Hi,
I am currently moving over my Watir Story Runner tests over to Cucumber.
However, I have a verification_steps.rb that holds these two steps
Then the user is at '$title' page do |title|
browser.wait_until_includes(title)
end
Given the user is at '$title' page do |title|
Hi,
I am having problem with the cucumber gem install
gem sources --add http://gems.github.com/
gem install aslakhellesoy-cucumber
=
C:\gem install aslakhellesoy-cucumber
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory -
Hi,
I am still using story-runner and have not moved over to Cucumber.
HTML files are coloured created, however I am unable to save the stack
trace when errors occur. What are others doing? Will the move to
Cucumber help me?
Aidy
___
rspec-users
Hi Aslak,
2008/9/11 aslak hellesoy [EMAIL PROTECTED]:
On Thu, Sep 11, 2008 at 11:47 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi,
I am still using story-runner and have not moved over to Cucumber.
HTML files are coloured created, however I am unable to save the stack
trace when errors occur
Hi Aslak,
2008/9/11 aslak hellesoy [EMAIL PROTECTED]:
On Thu, Sep 11, 2008 at 11:47 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi,
I am still using story-runner and have not moved over to Cucumber.
HTML files are coloured created, however I am unable to save the stack
trace when errors occur
Hi,
If a backslash is put into a story runner scenario
Scenario: Message is sent
Given an order has been created
When I goto the purchased screen
And something with a \ breaks it
then this exception is created
Hi,
, aslak hellesoy wrote (sometime today):
at_exit do
..
end
If I had a number of steps, stories and runners where would I put the
kernal at_exit method?
At the last 'Then' in a step file? At the bottom of that particular
runner file? I assume there would be numerous at_exit methods
Hi,
I think the scenario based way of defining acceptance tests is akin to
scenarios in use-cases.
In use-cases we can have a happy path with extends for error conditions etc.
Should I create extra scenarios for my error conditions (making my
tests less understandable) or should I create a new
Lies here
gem install watir
http://wiki.openqa.org/display/WTR/Example+Frameworks
I will need to port this to Cucumber
Feedback Welcome.
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi David,
Thanks for getting back. I piped it.
system(ruby #{full_path} -fh C:\\rspec_reports\\#{file_name}.htm)
Works fine (in windows)
Aidy
2008/8/20 David Chelimsky [EMAIL PROTECTED]:
On Tue, Aug 19, 2008 at 7:09 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi David,
2008/8/18 David
Hi Aslak
2008/8/20 aslak hellesoy [EMAIL PROTECTED]:
On Wed, Aug 20, 2008 at 2:19 PM, aidy lewis [EMAIL PROTECTED] wrote:
Would you consider storing the code in Cucumber's watir example
directory? examples/watir_gmail. That way it's easier to maintain if
Cucumber changes.'
Yes, will commit
Hi David,
2008/8/18 David Chelimsky [EMAIL PROTECTED]:
Those options don't make it to the runner, which reads the actual
command line (ARGV).
What I typically do is load up runner files that look like this:
# stories/accounting/stories.rb
with_steps_for :accounting do
run
Matt,
Do you want to pair on this? I am writing some stuff for the Watir
site. I sent you some example code as well.
Aidy
On 12/08/2008, Matt Wynne [EMAIL PROTECTED] wrote:
Can I help the project by writing some docs about the plain-text story
runner for the rspec.info website? It would
Hi Aslak
2008/8/18 aslak hellesoy [EMAIL PROTECTED]:
* How to use with Watir
gem sources --add http://gems.github.com/
gem install aslakhellesoy-cucumber
I am unable top find the Watir and Cucumber example
Aidy
___
rspec-users mailing list
Aslak
Look in the examples/watir directory:
http://github.com/aslakhellesoy/cucumber/tree/master/examples/watir
Aslak
OK. Can I expand on this for your example?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
Aslak
2008/8/18 aslak hellesoy [EMAIL PROTECTED]:
What do you mean by expand?
Aslak
I was going to give a more detailed example...
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi,
Can anyone give me some sample syntax of using a command line switch
in the Story Runner run method please?
Thanks
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi,
Bret Pettichord tells me yourself and him worked together on an
improvement to the watir example. Could you commit it and i will
expand on it and wrap it up into an AUT object model.
Aidy.
On 8/18/08, aslak hellesoy [EMAIL PROTECTED] wrote:
On Mon, Aug 18, 2008 at 3:31 PM, aidy lewis [EMAIL
Hi,
I am currently using the story runner HTML
ruby aut.rb -fh:C:\C:\rspec_reports\aut.htm
Is it possible to also produce the traditional Rspec HTML reports
through Story Runner as well
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
Hi David,
2008/8/14 David Chelimsky [EMAIL PROTECTED]:
There is no formatter for that, but you could write one.
OK. Initially I think I will look into a simple dashboard that will
link to each of the Story HTML files.
Aidy
___
rspec-users mailing
Given /a (PROGRAM|PROGRAMMES) title of '$title'/ do |title|
end
Could anyone give me the correct syntax for embedding this variable in a regex?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
Hi,
Would I need to use a license or give credit if I posted on OpenQA an
example of Rspec and Watir (with my own AUT object model)?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 07/07/2008, Ben Mabey [EMAIL PROTECTED] wrote:
Hey Paolo,
This looks look. However, the story runner currently supports colorization.
You just need to pass in a --colour on the command line.
-Ben
Could you give me some sample syntax on how to achieve this please?
Aidy
Hi David,
ruby stories/all.rb -c
Fantastic. Is it possible to create HTML from this?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi,
Post-story HTML creation if a step within a scenario fails
(class=failed) that scenario still passes ( class=passed).
We have added some javascript to rspec.js
var rspec = {
load : function() {
$$(.passed).each (
function (passedElement) {
Hi,
I have a number of scenarios that are virtually the same apart from
one piece of test data
Scenario: The user is returned search links with expected search
text description
Given a logged in xx user
When clicks 'Advanced Search'
And enters 'Aidy' in the Contributors field
on domain specific steps.
Aidy
On 16/06/2008, David Chelimsky [EMAIL PROTECTED] wrote:
On Jun 16, 2008, at 6:27 AM, aidy lewis wrote:
Hi,
I have a number of scenarios that are virtually the same apart from
one piece of test data
Scenario: The user is returned search links with expected
Hi,
Is the Given, When, Then framework, the user story, the acceptance
criteria or both?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi David,
On 14/06/2008, David Chelimsky [EMAIL PROTECTED] wrote:
On Jun 14, 2008, at 12:50 PM, aidy lewis wrote:
Hi,
Is the Given, When, Then framework, the user story, the acceptance
criteria or both?
From my talk at railsconf:
http://en.oreilly.com/rails2008/public/schedule/detail
Hi David,
On 14/06/2008, David Chelimsky [EMAIL PROTECTED] wrote:
What is a negative scenario?
Thanks for getting back.
I have been asked that twice in 2 days!
In the use-case world they have negative or mis-use cases.
These cases desribe forbidden or wrong input into the system
that has
Hi,
At the moment I am using the story runner with success. However, I
would like to log to XML or HTML. Is there an API for this?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi,
I am using the 'spec/story' module with Fire(Watir).
Is there additional logging?
I don't want to do this:
code
Then the resultant links are displayed with the search text in each
description do
browser.links.each do |lnk|
if lnk.id =~ /programmeLink/
lnk.click
85 matches
Mail list logo