Eclipse + Cucumber with Chinese language

70 views
Skip to first unread message

achyuth sastry

unread,
Oct 21, 2015, 8:57:36 AM10/21/15
to Cukes
Hello All,

i working for a Chinese project and need to write cucumber scripts in Chinese language. Cucumber does support chinese by adding below tag at the top

# language: CN

but i am unable to create a sample script and run it. please do help me on configuration part if any

considering below java code, can any help me in setting up chinese language


Cucumber scirpt

<Please help me here>


Step Implementation

public void i_wait_for_given_seconds60() {
        try {
            Thread.sleep(60000);
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


or else if any one has sample chinese cucumber script, please provide me

Thanks a lot

aslak hellesoy

unread,
Oct 21, 2015, 9:01:53 AM10/21/15
to Cucumber Users
On Wed, Oct 21, 2015 at 1:26 PM, achyuth sastry <achyuth...@gmail.com> wrote:
Hello All,

i working for a Chinese project and need to write cucumber scripts in Chinese language. Cucumber does support chinese by adding below tag at the top

# language: CN

 

but i am unable to create a sample script and run it. please do help me on configuration part if any

considering below java code, can any help me in setting up chinese language


Cucumber scirpt


There is no such thing as a "Cucumber script". At least, the Cucumber team doesn't use that term.
 
In Cucumber there are 2 things:

* Gherkin (in .feature files) 
* Step Definitions (in Java/Ruby/JavaScript/Whatever source code)
 
<Please help me here>


Step Implementation

Is this a Step definition? You need an annotation on the step definition method.

Try this project to get started:

Cheers,
Aslak
 

public void i_wait_for_given_seconds60() {
        try {
            Thread.sleep(60000);
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


or else if any one has sample chinese cucumber script, please provide me

Thanks a lot

--
Posting rules: http://cukes.info/posting-rules.html
---
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shiva Tej

unread,
Oct 23, 2015, 6:33:14 AM10/23/15
to Cukes
Thanks Aslak.

We've tried your approach and with  "zh-CN" language option,we are facing errors in the feature file in Eclipse.Please find the attached screenshots.
Could you please guide us more on this.

Regards,
Shivatej k
Screenshots1.png
Screenshot2.png

aslak hellesoy

unread,
Oct 23, 2015, 7:05:06 AM10/23/15
to Cucumber Users
On Fri, Oct 23, 2015 at 11:33 AM, Shiva Tej <shivat...@gmail.com> wrote:
Thanks Aslak.

We've tried your approach and with  "zh-CN" language option,we are facing errors in the feature file in Eclipse.Please find the attached screenshots.
Could you please guide us more on this.


Sounds like a bug in Cucumber-Eclipse. Please create a bug report with that project.

Aslak
 
Regards,
Shivatej k








On Wednesday, October 21, 2015 at 6:27:36 PM UTC+5:30, achyuth sastry wrote:
Hello All,

i working for a Chinese project and need to write cucumber scripts in Chinese language. Cucumber does support chinese by adding below tag at the top

# language: CN

but i am unable to create a sample script and run it. please do help me on configuration part if any

considering below java code, can any help me in setting up chinese language


Cucumber scirpt

<Please help me here>


Step Implementation

public void i_wait_for_given_seconds60() {
        try {
            Thread.sleep(60000);
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


or else if any one has sample chinese cucumber script, please provide me

Thanks a lot

--
Reply all
Reply to author
Forward
0 new messages