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
Message from discussion Dynamic data in Cucumber tables
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
 
Chetan Parmar  
View profile  
 More options May 23 2012, 8:21 am
From: Chetan Parmar <chetanparm...@gmail.com>
Date: Wed, 23 May 2012 17:51:48 +0530
Local: Wed, May 23 2012 8:21 am
Subject: Re: [Cucumber] Dynamic data in Cucumber tables

Hi

could anybody please provide me how to iterate this table in my statement

On Wed, May 23, 2012 at 5:38 PM, Josh Chisholm <joshuachish...@gmail.com>wrote:

> On 23 May 2012, at 11:41, Rahul Sharma wrote:

> Hi Guys,

> It might have been asked many times before but I can't seem to find a good
> answer.

> I am trying to do the following:

> When I block a member on the site for "some reason" for 6 months
> Then I should see the following record:
> |Active|Time Limit|      Start Date            | End Date
>  |
> |true   | 6 months | 23-May-2012 12:37:29| 23-Nov-2012 12:37:29|

> I am using to compare the above table with a similar table on the page.

> Now , since the test blocks a member in the given step, the start date
> would be todays date. How can I replace the start date in the table above
> with something like Time.now('some_formatting') so that i can then match it
> against what's on the page?

> I have seen some people suggesting using an extra step to assign current
> time to a an instance variable and then using it in the table. Is there any
> simpler way to do this?

> You could use natural language in your scenarios, then parse the date in
> your step definition with a gem like chronic:

> https://github.com/mojombo/chronic

> ...so you can use terms like "today" or "in 6 months" as your table values.

> Josh

> -- There are two rules:

> 1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
> people to filter messages.
> 2) Please use interleaved answers
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

> You received this message because you are subscribed to the Google Groups
> Cukes group. To post to this group, send email to cukes@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes+unsubscribe@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/cukes?hl=en

>  -- There are two rules:

> 1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
> people to filter messages.
> 2) Please use interleaved answers
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

> You received this message because you are subscribed to the Google Groups
> Cukes group. To post to this group, send email to cukes@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes+unsubscribe@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/cukes?hl=en


 
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.