Discussion:
[Cucumber] Cucumber JVM Tags with Gradle
Bilal Ejaz
2013-05-16 14:34:25 UTC
Permalink
I am strugling with using tags. I have created a project which
contains @Cucumber.Options(format = {"pretty",
"html:build/cucumber-html-report"}, tags = {"@my", "@first"}). nevertheless
when i try to run via command line using gradle cucumber -Pproject="Sugar"
-Ptags="@first". by inputting this command I am expecting to run only that
particular that scenario, but it runs the whole feature file it doesn't
acknowldge -Ptags ="first" at all.
Please Help.


Kind Regards,

Bilal Ejaz
--
-- 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.
aslak hellesoy
2013-05-16 14:38:14 UTC
Permalink
Post by Bilal Ejaz
I am strugling with using tags. I have created a project which
when i try to run via command line using gradle cucumber -Pproject="Sugar"
particular that scenario, but it runs the whole feature file it doesn't
acknowldge -Ptags ="first" at all.
Where did you read that -Ptags=xx would do anything at all??

Try this:

-Dcucumber.options="--tags @first"

Also make sure you understand how AND and OR works:

https://github.com/cucumber/cucumber/wiki/Tags

Aslak
Post by Bilal Ejaz
Please Help.
Kind Regards,
Bilal Ejaz
--
-- 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
To unsubscribe from this group, send email to
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
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.
Bilal Ejaz
2013-05-17 09:16:58 UTC
Permalink
Hi Aslak,

thank you for you prompt reply, I have input the following in the command
line (gradle cucumber -PPlatform="Android" -PAppName="Mustatrd"
-Dcucumber.options="--tags @my"). it just runs the whole feature without
acknowledging the tags I am specifying.

I have two scenarios which contains tags , below is my gradle.feature
file specifying tags

@ff
Feature:Gradle-Cucumber integration

@my
Scenario: run app non-mustard
Given run simple non-mustard steps

@second
Scenario: run app mustard
Given run simple mustard steps

@Cucumber.Options(format = {"pretty", "html:build/cucumber-html-report"},
tags = {"@my", "@first"}). What I was hopping for it to execute only one
tag (which is scenario with @my tag). Could you please elaborate on this
matter.

Kind Regards,

Bilal Ejaz
--
-- 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.
aslak hellesoy
2013-05-17 14:52:00 UTC
Permalink
Post by Bilal Ejaz
Hi Aslak,
thank you for you prompt reply, I have input the following in the command
line (gradle cucumber -PPlatform="Android" -PAppName="Mustatrd"
acknowledging the tags I am specifying.
Hmm, that should work. What's your Cucumber-JVM version?

Aslak
Post by Bilal Ejaz
I have two scenarios which contains tags , below is my gradle.feature
file specifying tags
@ff
Post by Bilal Ejaz
Feature:Gradle-Cucumber integration
@my
Scenario: run app non-mustard
Given run simple non-mustard steps
@second
Scenario: run app mustard
Given run simple mustard steps
@Cucumber.Options(**format = {"pretty", "html:build/cucumber-html-**report"},
matter.
Kind Regards,
Post by Bilal Ejaz
Bilal Ejaz
--
-- 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
To unsubscribe from this group, send email to
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
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.
Bilal
2013-05-17 19:38:51 UTC
Permalink
Hi Aslak,

I am using cucumber 1.1.12, I had to down grade it from 1.1.13 due to some bugs which are due to patch in the new release (Ive read through your previous post to fix that one). Nevertheless, my tags did not work in either of the cucumber JVM version. Thank you for your prompt answer once again.

Kind Regards,
Bilal Ejaz
Post by Bilal Ejaz
Hi Aslak,
Hmm, that should work. What's your Cucumber-JVM version?
Aslak
I have two scenarios which contains tags , below is my gradle.feature file specifying tags
@ff
Feature:Gradle-Cucumber integration
@my
Scenario: run app non-mustard
Given run simple non-mustard steps
@second
Scenario: run app mustard
Given run simple mustard steps
@Cucumber.Options(format = {"pretty", "html:build/cucumber-html-report"}, tags = {"@my", "@first"}). What I was hopping for it to execute only one tag (which is scenario with @my tag). Could you please elaborate on this matter.
Kind Regards,
Bilal Ejaz
--
-- 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.
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 a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
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.
aslak hellesoy
2013-05-17 19:56:57 UTC
Permalink
Post by Bilal Ejaz
Hi Aslak,
I am using cucumber 1.1.12, I had to down grade it from 1.1.13
Neither of those versions exist. Can you check again?
Also see https://github.com/cucumber/cucumber-jvm/blob/master/History.md

Aslak
Post by Bilal Ejaz
due to some bugs which are due to patch in the new release (Ive read
through your previous post to fix that one). Nevertheless, my tags did not
work in either of the cucumber JVM version. Thank you for your prompt
answer once again.
Kind Regards,
Bilal Ejaz
Post by Bilal Ejaz
Hi Aslak,
thank you for you prompt reply, I have input the following in the command
line (gradle cucumber -PPlatform="Android" -PAppName="Mustatrd"
acknowledging the tags I am specifying.
Hmm, that should work. What's your Cucumber-JVM version?
Aslak
Post by Bilal Ejaz
I have two scenarios which contains tags , below is my gradle.feature
file specifying tags
@ff
Post by Bilal Ejaz
Feature:Gradle-Cucumber integration
@my
Scenario: run app non-mustard
Given run simple non-mustard steps
@second
Scenario: run app mustard
Given run simple mustard steps
@Cucumber.Options(**format = {"pretty", "html:build/cucumber-html-**report"},
matter.
Kind Regards,
Post by Bilal Ejaz
Bilal Ejaz
--
-- 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
To unsubscribe from this group, send email to
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
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
To unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to a topic in the
Google Groups "Cukes" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to
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
To unsubscribe from this group, send email to
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
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.
Bilal
2013-05-17 20:13:16 UTC
Permalink
Hi Aslak,

i downloaded the jar file for cucumber-java 1.1.12 and down graded to cucumber-java 1.1.13. I do apologise if my answer is wrong as i am new to this technology. Nevertheless I am keen and enthusiastic on expanding my skills in cucumber.

Kind Regards,

Bilal Ejaz
Post by Bilal Ejaz
Hi Aslak,
Hmm, that should work. What's your Cucumber-JVM version?
Aslak
I have two scenarios which contains tags , below is my gradle.feature file specifying tags
@ff
Feature:Gradle-Cucumber integration
@my
Scenario: run app non-mustard
Given run simple non-mustard steps
@second
Scenario: run app mustard
Given run simple mustard steps
@Cucumber.Options(format = {"pretty", "html:build/cucumber-html-report"}, tags = {"@my", "@first"}). What I was hopping for it to execute only one tag (which is scenario with @my tag). Could you please elaborate on this matter.
Kind Regards,
Bilal Ejaz
--
-- 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.
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 a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
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.
aslak hellesoy
2013-05-17 20:52:28 UTC
Permalink
See rule 2 at the bottom of the mail.
Post by Bilal Ejaz
Hi Aslak,
i downloaded the jar file for cucumber-java 1.1.12 and down graded to
cucumber-java 1.1.13.
Really?? I said these versions don't exist. You meant 1.1.2 and 1.1.3 right.
Post by Bilal Ejaz
I do apologise if my answer is wrong as i am new to this technology.
Nevertheless I am keen and enthusiastic on expanding my skills in
Post by Bilal Ejaz
cucumber.
Kind Regards,
Bilal Ejaz
Hi Aslak,
thank you for you prompt reply, I have input the following in the command
line (gradle cucumber -PPlatform="Android" -PAppName="Mustatrd"
acknowledging the tags I am specifying.
Hmm, that should work. What's your Cucumber-JVM version?
Aslak
I have two scenarios which contains tags , below is my gradle.feature file specifying tags
@ff
Feature:Gradle-Cucumber integration
@my
Scenario: run app non-mustard
Given run simple non-mustard steps
@second
Scenario: run app mustard
Given run simple mustard steps
@Cucumber.Options(**format = {"pretty", "html:build/cucumber-html-**report"},
matter.
Kind Regards,
Bilal Ejaz
--
-- 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
To unsubscribe from this group, send email to
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
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
top You received this message because you are subscribed to a topic in the
Google Groups "Cukes" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to
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
To unsubscribe from this group, send email to
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
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.
Bilal
2013-05-17 20:57:24 UTC
Permalink
Hi Aslak,

I am extremely sorry, yes you are correct, the version i am using is 1.1.2 which is downgraded from 1.1.3. I do apologise for this mistake.

Kind Regards,

Bilal Ejaz
Post by aslak hellesoy
See rule 2 at the bottom of the mail.
Hi Aslak,
i downloaded the jar file for cucumber-java 1.1.12 and down graded to cucumber-java 1.1.13.
Really?? I said these versions don't exist. You meant 1.1.2 and 1.1.3 right.
I do apologise if my answer is wrong as i am new to this technology.
Nevertheless I am keen and enthusiastic on expanding my skills in cucumber.
Kind Regards,
Bilal Ejaz
Post by Bilal Ejaz
Hi Aslak,
Hmm, that should work. What's your Cucumber-JVM version?
Aslak
I have two scenarios which contains tags , below is my gradle.feature file specifying tags
@ff
Feature:Gradle-Cucumber integration
@my
Scenario: run app non-mustard
Given run simple non-mustard steps
@second
Scenario: run app mustard
Given run simple mustard steps
@Cucumber.Options(format = {"pretty", "html:build/cucumber-html-report"}, tags = {"@my", "@first"}). What I was hopping for it to execute only one tag (which is scenario with @my tag). Could you please elaborate on this matter.
Kind Regards,
Bilal Ejaz
--
-- 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.
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 top You received this message because you are subscribed to a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
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.
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 a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
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.
aslak hellesoy
2013-05-17 21:04:01 UTC
Permalink
Post by Bilal Ejaz
Hi Aslak,
I am extremely sorry, yes you are correct, the version i am using is 1.1.2
which is downgraded from 1.1.3. I do apologise for this mistake.
No worries. Now please read rule 2 at the bottom.
Post by Bilal Ejaz
Kind Regards,
Bilal Ejaz
See rule 2 at the bottom of the mail.
Post by Bilal Ejaz
Hi Aslak,
i downloaded the jar file for cucumber-java 1.1.12 and down graded to
cucumber-java 1.1.13.
Really?? I said these versions don't exist. You meant 1.1.2 and 1.1.3 right.
Post by Bilal Ejaz
I do apologise if my answer is wrong as i am new to this technology.
Nevertheless I am keen and enthusiastic on expanding my skills in
Post by Bilal Ejaz
cucumber.
Kind Regards,
Bilal Ejaz
Hi Aslak,
thank you for you prompt reply, I have input the following in the command
line (gradle cucumber -PPlatform="Android" -PAppName="Mustatrd"
acknowledging the tags I am specifying.
Hmm, that should work. What's your Cucumber-JVM version?
Aslak
I have two scenarios which contains tags , below is my gradle.feature
file specifying tags
@ff
Feature:Gradle-Cucumber integration
@my
Scenario: run app non-mustard
Given run simple non-mustard steps
@second
Scenario: run app mustard
Given run simple mustard steps
@Cucumber.Options(**format = {"pretty", "html:build/cucumber-html-**report"},
matter.
Kind Regards,
Bilal Ejaz
--
-- 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
To unsubscribe from this group, send email to
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
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 top You received this message because you are subscribed to a topic in
the Google Groups "Cukes" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to
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
To unsubscribe from this group, send email to
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
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
To unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to a topic in the
Google Groups "Cukes" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to
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
To unsubscribe from this group, send email to
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
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.
Bilal
2013-05-17 20:24:41 UTC
Permalink
Hi Aslak,


I do understand its a weekend and you will be busy but when you are free could you also recommend a book or online material which i can use to practise my skills.

Kind Regards,

Bilal Ejaz
Post by Bilal Ejaz
Hi Aslak,
Hmm, that should work. What's your Cucumber-JVM version?
Aslak
I have two scenarios which contains tags , below is my gradle.feature file specifying tags
@ff
Feature:Gradle-Cucumber integration
@my
Scenario: run app non-mustard
Given run simple non-mustard steps
@second
Scenario: run app mustard
Given run simple mustard steps
@Cucumber.Options(format = {"pretty", "html:build/cucumber-html-report"}, tags = {"@my", "@first"}). What I was hopping for it to execute only one tag (which is scenario with @my tag). Could you please elaborate on this matter.
Kind Regards,
Bilal Ejaz
--
-- 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.
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 a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/diklu9YlCYA/unsubscribe?hl=en.
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.
aslak hellesoy
2013-05-17 21:06:49 UTC
Permalink
Post by Bilal Ejaz
I am strugling with using tags. I have created a project which
when i try to run via command line using gradle cucumber -Pproject="Sugar"
particular that scenario, but it runs the whole feature file it doesn't
acknowldge -Ptags ="first" at all.
Please Help.
Grab a fresh copy of cucumber-jvm from git and cd into
examples/java-helloworld. Then try this:

mvn test
mvn test -Dcucumber.options="--tags @foo"

The second run should only run a single scenario, while the first one
should run them all.

Aslak
Post by Bilal Ejaz
Kind Regards,
Bilal Ejaz
--
-- 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
To unsubscribe from this group, send email to
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
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.
Bilal Ejaz
2013-05-17 23:47:52 UTC
Permalink
HI Aslak,

Thank you for your reply, I will try this example. Also i will be buying
your book to get further inside of cucumber.

Kind Regards,

Bilal Ejaz
Post by aslak hellesoy
Post by Bilal Ejaz
I am strugling with using tags. I have created a project which
when i try to run via command line using gradle cucumber -Pproject="Sugar"
particular that scenario, but it runs the whole feature file it doesn't
acknowldge -Ptags ="first" at all.
Please Help.
Grab a fresh copy of cucumber-jvm from git and cd into
mvn test
The second run should only run a single scenario, while the first one
should run them all.
Aslak
Post by Bilal Ejaz
Kind Regards,
Bilal Ejaz
--
-- 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
To unsubscribe from this group, send email to
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
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.
Loading...