How to run the Background section in Spanish?

13 views
Skip to first unread message

Carmen Díaz Echauri

unread,
May 24, 2011, 3:12:00 PM5/24/11
to Cucumber Users
Hi All

If I have a Background section and a Scenario Outline, the Background runs once before each example in the scenario outline.  I'm writing my tests in Spanish, actually translating a workshop from English to Spanish. Tests are written in English, and in the Background section there is a creation "some object" flow, which is used in each Scenario.
What's the Spanish version of Background? I've tried many translations but none of them worked. I haven't used cucumber so much, so I am not very good at it. 
Is there a hook that before the Scenario Outline. I also tried before block..

Thanks a lot

--
Carmen

David Chelimsky

unread,
May 24, 2011, 3:20:29 PM5/24/11
to cu...@googlegroups.com
background: Antecedentes

This is from https://github.com/cucumber/gherkin/blob/master/lib/gherkin/i18n.yml, which shows all the translations. Not the easiest thing to track down if you don't know it exists or where to look, but now you have it.

Cheers,
David

Mike Sassak

unread,
May 24, 2011, 3:22:42 PM5/24/11
to cu...@googlegroups.com

You can also run: 'cucumber --i18n es' to see all the Spanish translations. :-)

Mike


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

David Chelimsky

unread,
May 24, 2011, 3:32:19 PM5/24/11
to cu...@googlegroups.com
On May 24, 2011, at 2:22 PM, Mike Sassak wrote:

> On Tue, May 24, 2011 at 2:20 PM, David Chelimsky <dchel...@gmail.com> wrote:
>> On May 24, 2011, at 2:12 PM, Carmen Díaz Echauri wrote:
>>
>> Hi All
>>
>> If I have a Background section and a Scenario Outline, the Background runs
>> once before each example in the scenario outline. I'm writing my tests in
>> Spanish, actually translating a workshop from English to Spanish. Tests are
>> written in English, and in the Background section there is a creation "some
>> object" flow, which is used in each Scenario.
>> What's the Spanish version of Background? I've tried many translations but
>> none of them worked. I haven't used cucumber so much, so I am not very good
>> at it.
>> Is there a hook that before the Scenario Outline. I also tried before
>> block..
>>
>> Thanks a lot
>>
>> --
>> Carmen
>>
>> background: Antecedentes
>> This is from
>> https://github.com/cucumber/gherkin/blob/master/lib/gherkin/i18n.yml, which
>> shows all the translations. Not the easiest thing to track down if you don't
>> know it exists or where to look, but now you have it.
>
> You can also run: 'cucumber --i18n es' to see all the Spanish translations. :-)
>
> Mike

That's way better :)

Mike Sassak

unread,
May 24, 2011, 4:15:11 PM5/24/11
to cu...@googlegroups.com

Hi Carmen,

I forgot the most important part: what did you expect the translation
of Background to be? Were you surprised when you found out what it
was? Should we add an alias in addition to "Antecedentes"?

Thanks!
Mike

>
> --
> Carmen

Reply all
Reply to author
Forward
0 new messages