1 Sep 2011 02:26
Re: [Cucumber:8918] Scenarios for foreign languages
Google's translate API can detect the language of a text. Perhaps you could use this in your step definition. See the "Detect source language" section here: http://code.google.com/apis/language/translate/v2/getting_started.html. Richard On Wed, Aug 31, 2011 at 3:52 PM, Andy Waite <andywaite@...> wrote: > I trying to implement tests for behaviour which goes something like > this: > > Scenario: Viewing the home page in Spanish > > Given that my browser's language is set to Spanish > When I view the home page > Then all the content should be in Spanish > > But I'm at a loss about how best to implement the 'Then' step > definition. Checking for particular strings in Spanish (or any other > language) would likely make the tests very fragile. > > Andy > > -- > You received this message because you are subscribed to the Google Groups "Cukes" group. > To post to this group, send email to cukes@... > To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. > For more options, visit this group at http://groups.google.com/group/cukes?hl=en. > >(Continue reading)
RSS Feed