On Wed, Feb 20, 2013 at 12:16 AM, Trevor Harmon <trevor-ebqu8CYYB8DQT0dZR+***@public.gmane.org> wrote:
> I think you're using tables for the wrong thing. You should be using
> Scenario Outlines instead.
>
> Also, you can make the description (e.g. "Tall JPEG") a column in the
> table. It doesn't need to be a comment outside of the table.
>
> | URL |
> Description |
> | https://upload.wikimedia.org/wikipedia... | PNG at HTTPS |
> ...
>
>
Yes, I can use column instead of comment but comments feel more natural as
Descriptions won't be used in step definitions.
Trevor
>
> On Feb 19, 2013, at 1:04 PM, Andrey Botalov <botalov.andrey-***@public.gmane.org>
> wrote:
>
> On Sunday, November 25, 2012 8:54:14 PM UTC+3, George Dinwiddie wrote:
>
>> Trevor,
>>
>> On 11/25/12 9:22 AM, Trevor Harmon wrote:
>> > On Nov 25, 2012, at 6:12 AM, Andrey Botalov <botalov...-***@public.gmane.org
>> > <mailto:***@gmail.**com>> wrote:
>> >
>> >> Just because its technically possible, doesn't mean it should be
>> >> done.
>> >>
>> >>
>> >> Why do you think so? Are there non-technical drawbacks of end of line
>> >> comments?
>> >
>> > A comment is a plain-English description of something, but Cucumber
>> > steps are already in plain English. If you need plain English to
>> > describe plain English, something is probably wrong.
>>
>> Well said! Perhaps the current step should be replaced with the comment.
>>
>>
> I consider Cucumber a tool for communicating not only between developers
> and customers but for communicating between all technical and non-technical
> people. At company where I work we use Cucumber for system testing and
> communicating between not enough technical testers (that aren't able to
> read/write code) and people that actually write step definitions for those
> tests.
>
> I wish I could do something like this:
>
> Scenario: Upload profile photo from url
> Given I am logged in
> When I upload photo from:
> | https://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
> | # PNG at HTTPS
> | http://wvs.topleftpixel.com/photos/scotia_plaza_tall_stitched.jpg
> | # Tall JPEG
> |
> https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQZztyvv826mbBdiJYFzvFEcxGio8Uz03Fx49shHDutOuklYL6A| # Without extension
> | http://chwww1.confidesk.com/img/confidesk_logo_03.png
> | # Redirect from HTTP to HTTPS
> |
> https://static.adzerk.net/Advertisers/fdec4733b4814d9e958b7f86c25020b5.jpg| # untrusted HTTPS
>
> Those example urls represent issues that were found previously in our
> application. I think testers want to see both things:
> - example url
> - explanation of this test url was chosen
>
> Changing table to something like this:
> | utl to PNG at HTTPS |
> | url to tall JPEG |
> | Url without extension |
> | url with redirect from HTTP to HTTPS |
> | untrusted HTTPS |
>
> will hide urls with which issues previously occured.
>
> Writing 5 scenarios instead of one outline is unnecessary as all those
> examples represent the same use case from business logic point of view.
>
> So currently I do:
>
> Scenario: Upload profile photo from url
> # Random url is read from assets/image_urls.yml
> Given I am logged in
> When I upload photo from random url
>
> But it will be more nicely to put end of line comments to rows in table
> instead of using separate file.
>
> - George
>>
>> --
>> ------------------------------**------------------------------**----------
>>
>> * George Dinwiddie * http://blog.gdinwiddie.com
>> Software Development http://www.idiacomputing.com
>> Consultant and Coach http://www.agilemaryland.org
>> ------------------------------**------------------------------**----------
>>
>>
>>
> --
> -- Rules --
>
> 1) Please prefix the subject with [Ruby], [JVM] or [JS].
> 2) Please use interleaved answers
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> 3) If you have a question, don't reply to an existing message. Start a new
> topic instead.
>
> 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
> https://groups.google.com/d/forum/cukes?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> --
> -- Rules --
>
> 1) Please prefix the subject with [Ruby], [JVM] or [JS].
> 2) Please use interleaved answers
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> 3) If you have a question, don't reply to an existing message. Start a new
> topic instead.
>
> 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
> https://groups.google.com/d/forum/cukes?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
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 https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.