[rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aidy lewis
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

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aidy lewis
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

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread Joseph Wilk
aidy lewis wrote: 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'? There are currently no before/after feature hooks. http://github.com/aslakhellesoy/cucumber/wikis/hooks Also if you want something to happen

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aidy lewis
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 like the browser to close: If the browser closes on each scenario - they I have to

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread Joseph Wilk
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 like the browser to close: So you are using scenarios to get

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aslak hellesoy
On Mon, Jan 5, 2009 at 3:12 PM, aidy lewis aidy.le...@googlemail.comwrote: 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

[rspec-users] cucumber, finding a row in a table

2009-01-05 Thread James Byrne
I generate the following html on the page in question tr id=entity_id_1 tdJust An Entity/td td/td tdCORP/td td01/td tda href=/entities/1Show Entity/a/td tda href=/entities/1/editEdit Entity/a/td tda href=/entities/1 onclick=if (confirm('Are you sure?')) \ {

Re: [rspec-users] cucumber, finding a row in a table

2009-01-05 Thread Zach Dennis
On Mon, Jan 5, 2009 at 4:18 PM, James Byrne li...@ruby-forum.com wrote: I generate the following html on the page in question tr id=entity_id_1 tdJust An Entity/td td/td tdCORP/td td01/td tda href=/entities/1Show Entity/a/td tda href=/entities/1/editEdit Entity/a/td

Re: [rspec-users] Rspec Rails high overhead

2009-01-05 Thread Reza Primardiansyah
Aslak, The best time I get is 6.3 seconds. I'm using time script/server command and hitting Ctrl-C immediately after I see ** Use CTRL-C to stop. On Sun, Jan 4, 2009 at 9:43 PM, aslak hellesoy aslak.helle...@gmail.comwrote: On Sun, Jan 4, 2009 at 3:58 AM, Reza Primardiansyah

Re: [rspec-users] Cucumber speed tips

2009-01-05 Thread Luke Melia
On Jan 4, 2009, at 7:08 PM, Ben Mabey wrote: I'm by no means a Selenium expert so I may be making some incorrect assumptions. I thought that it was possible with Selenium to have different sessions open concurrently for the same selenium server. (i.e. have more than one

Re: [rspec-users] Cucumber speed tips

2009-01-05 Thread Mischa Fierer
Josh, Ben Luke -- This is great stuff, thanks a bunch. Over at CaptainU we are probably going to get into the thousands in the next few weeks or so, so speed is a serious issue. I'm going to work on a longer blog post about this, will let you guys know when finished. Best, M On Mon, Jan 5,