Discussion:
[Cucumber] Exception in thread "main" cucumber.runtime.CucumberException: Unknown option: --plugin
(too old to reply)
Mustafa Topçu
2016-03-24 14:23:45 UTC
Permalink
Raw Message
Hi Guys,

I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.


*My CucumberRunner Java:*

package cucumber;

import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

@RunWith(Cucumber.class)

@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)


public class CucumberRunner {

}


*Myfeature.feature*

Feature: I want to use this template for my feature file

Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes

*The exception i got :*

Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+

Options:

-g, --glue PATH Where glue code (step definitions
and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit, html,
pretty, progress, json.
FORMAT can also be a fully qualified
class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with tags
matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names match
REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending steps as
errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.

Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
aslak hellesoy
2016-03-24 14:28:33 UTC
Permalink
Raw Message
You must be using a very old version. Try upgrading to the latest version,
which is 1.2.4.

On Thu, Mar 24, 2016 at 2:23 PM, Mustafa Topçu <
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
*My CucumberRunner Java:*
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
*Myfeature.feature*
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
*The exception i got :*
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+
-g, --glue PATH Where glue code (step definitions
and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit, html,
pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with tags
matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending steps
as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mustafa Topçu
2016-03-24 15:22:46 UTC
Permalink
Raw Message
Which jar did you mean old version Aslak?

Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
*My CucumberRunner Java:*
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
*Myfeature.feature*
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
*The exception i got :*
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+
-g, --glue PATH Where glue code (step definitions
and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit, html,
pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with tags
matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending steps
as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
aslak hellesoy
2016-03-24 15:44:40 UTC
Permalink
Raw Message
All the cucumber-* jars

On Thu, Mar 24, 2016 at 3:22 PM, Mustafa Topçu <
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
*My CucumberRunner Java:*
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
*Myfeature.feature*
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
*The exception i got :*
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+
-g, --glue PATH Where glue code (step definitions
and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending steps
as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2016-03-25 05:22:11 UTC
Permalink
Raw Message
Hi All,

I am also getting the same error. I am using the updated latest jars.

Please advice.

Thanks,
Gaurav Sharma
Post by aslak hellesoy
All the cucumber-* jars
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
*My CucumberRunner Java:*
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
*Myfeature.feature*
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
*The exception i got :*
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+
-g, --glue PATH Where glue code (step definitions
and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending steps
as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mustafa Topçu
2016-03-25 07:08:51 UTC
Permalink
Raw Message
i think the problem is not jars. Please help us.
Post by g***@gmail.com
Hi All,
I am also getting the same error. I am using the updated latest jars.
Please advice.
Thanks,
Gaurav Sharma
Post by aslak hellesoy
All the cucumber-* jars
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
*My CucumberRunner Java:*
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
*Myfeature.feature*
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
*The exception i got :*
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+
-g, --glue PATH Where glue code (step
definitions and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending
steps as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thomas Sundberg
2016-03-25 08:23:01 UTC
Permalink
Raw Message
Post by Mustafa Topçu
i think the problem is not jars. Please help us.
Help us with more details about how you try to run Cucumber.

* Which command are you using to run Cucumber?

* How do you specify your Cucumber libraries?

* Which version of Cucumber are you using?

This is information that may give us enough details so we can help you
with where you should do a change.

You can also try to to download
https://github.com/cucumber/cucumber-java-skeleton and follow the
instructions on how to get cucumber up and running using Maven.

/Thomas
Post by Mustafa Topçu
Post by g***@gmail.com
Hi All,
I am also getting the same error. I am using the updated latest jars.
Please advice.
Thanks,
Gaurav Sharma
Post by aslak hellesoy
All the cucumber-* jars
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
Myfeature.feature
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+
-g, --glue PATH Where glue code (step
definitions and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending
steps as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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
For more options, visit https://groups.google.com/d/optout.
--
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

Better software through faster feedback

Join me for a Selenium kickstart in Timisoara, Romania in April.
http://mozaicworks.com/public-trainings-and-workshops/selenium-webdriver-test-automation-for-web-applications/

Interested in a BDD Kickstart in Stockholm?
https://cucumber.io/events/bdd-kickstart-stockholm-16
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mustafa Topçu
2016-03-25 09:16:00 UTC
Permalink
Raw Message
Hi,

I added a screenshot of my eclipse, jars and all my other codes and
setting.

http://prnt.sc/ajr30x

*My Feature:*

Feature: Title of your feature
I want to use this template for my feature file

Scenario: Title of your scenario
Given first
When second
Then third

Thanks.
Post by Thomas Sundberg
Post by Mustafa Topçu
i think the problem is not jars. Please help us.
Help us with more details about how you try to run Cucumber.
* Which command are you using to run Cucumber?
* How do you specify your Cucumber libraries?
* Which version of Cucumber are you using?
This is information that may give us enough details so we can help you
with where you should do a change.
You can also try to to download
https://github.com/cucumber/cucumber-java-skeleton and follow the
instructions on how to get cucumber up and running using Maven.
/Thomas
Post by Mustafa Topçu
Post by g***@gmail.com
Hi All,
I am also getting the same error. I am using the updated latest jars.
Please advice.
Thanks,
Gaurav Sharma
On Thursday, March 24, 2016 at 9:15:04 PM UTC+5:30, Aslak HellesÞy
Post by aslak hellesoy
All the cucumber-* jars
On Thu, Mar 24, 2016 at 3:22 PM, Mustafa Topçu <
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got
below
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
excepiton. CAn you help me please?
Thanks.
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
Myfeature.feature
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
Usage: java cucumber.api.cli.Main [options] [
[FILE|DIR][:LINE[:LINE]*]
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
]+
-g, --glue PATH Where glue code (step
definitions and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes
to
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged
with
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose
names
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending
steps as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Unknown
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
For more options, visit https://groups.google.com/d/optout.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google
Groups
Post by Mustafa Topçu
"Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by Mustafa Topçu
For more options, visit https://groups.google.com/d/optout.
--
Thomas Sundberg
M. Sc. in Computer Science
Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Better software through faster feedback
Join me for a Selenium kickstart in Timisoara, Romania in April.
http://mozaicworks.com/public-trainings-and-workshops/selenium-webdriver-test-automation-for-web-applications/
Interested in a BDD Kickstart in Stockholm?
https://cucumber.io/events/bdd-kickstart-stockholm-16
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Paolo Ambrosio
2016-03-25 13:04:07 UTC
Permalink
Raw Message
I suspect Cucumber-Eclipse is not compatible with the very old version
of Cucumber you are including (1.1.5 was released in September 2013).
Try with 1.2.4 and see if the errors go away.

Paolo

On Fri, Mar 25, 2016 at 9:16 AM, Mustafa Topçu
Hi,
I added a screenshot of my eclipse, jars and all my other codes and setting.
http://prnt.sc/ajr30x
Feature: Title of your feature
I want to use this template for my feature file
Scenario: Title of your scenario
Given first
When second
Then third
Thanks.
Post by Thomas Sundberg
Post by Mustafa Topçu
i think the problem is not jars. Please help us.
Help us with more details about how you try to run Cucumber.
* Which command are you using to run Cucumber?
* How do you specify your Cucumber libraries?
* Which version of Cucumber are you using?
This is information that may give us enough details so we can help you
with where you should do a change.
You can also try to to download
https://github.com/cucumber/cucumber-java-skeleton and follow the
instructions on how to get cucumber up and running using Maven.
/Thomas
Post by Mustafa Topçu
Post by g***@gmail.com
Hi All,
I am also getting the same error. I am using the updated latest jars.
Please advice.
Thanks,
Gaurav Sharma
Post by aslak hellesoy
All the cucumber-* jars
On Thu, Mar 24, 2016 at 3:22 PM, Mustafa Topçu
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
Myfeature.feature
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
Usage: java cucumber.api.cli.Main [options] [
[FILE|DIR][:LINE[:LINE]*]
]+
-g, --glue PATH Where glue code (step
definitions and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending
steps as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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
For more options, visit https://groups.google.com/d/optout.
--
Thomas Sundberg
M. Sc. in Computer Science
Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Better software through faster feedback
Join me for a Selenium kickstart in Timisoara, Romania in April.
http://mozaicworks.com/public-trainings-and-workshops/selenium-webdriver-test-automation-for-web-applications/
Interested in a BDD Kickstart in Stockholm?
https://cucumber.io/events/bdd-kickstart-stockholm-16
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mustafa Topçu
2016-03-25 15:04:35 UTC
Permalink
Raw Message
I have just updated cucumber jars. Now i got different problem. screenshot
is http://prnt.sc/ajvadz

*Feature*

Feature: Title of your feature
I want to use this template for my feature file

Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then done it


*CucumberRunner.java*

package cucumber;

import org.junit.runner.RunWith;

import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {


}


*Exception:*
Exception in thread "main" java.lang.NoSuchMethodError:
gherkin.formatter.model.Scenario.getId()Ljava/lang/String;
at cucumber.runtime.ScenarioImpl.<init>(ScenarioImpl.java:28)
at cucumber.runtime.Runtime.buildBackendWorlds(Runtime.java:145)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:38)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.runtime.Runtime.run(Runtime.java:121)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
Post by Paolo Ambrosio
I suspect Cucumber-Eclipse is not compatible with the very old version
of Cucumber you are including (1.1.5 was released in September 2013).
Try with 1.2.4 and see if the errors go away.
Paolo
On Fri, Mar 25, 2016 at 9:16 AM, Mustafa Topçu
Post by Mustafa Topçu
Hi,
I added a screenshot of my eclipse, jars and all my other codes and
setting.
Post by Mustafa Topçu
http://prnt.sc/ajr30x
Feature: Title of your feature
I want to use this template for my feature file
Scenario: Title of your scenario
Given first
When second
Then third
Thanks.
Post by Thomas Sundberg
Post by Mustafa Topçu
i think the problem is not jars. Please help us.
Help us with more details about how you try to run Cucumber.
* Which command are you using to run Cucumber?
* How do you specify your Cucumber libraries?
* Which version of Cucumber are you using?
This is information that may give us enough details so we can help you
with where you should do a change.
You can also try to to download
https://github.com/cucumber/cucumber-java-skeleton and follow the
instructions on how to get cucumber up and running using Maven.
/Thomas
Post by Mustafa Topçu
Post by g***@gmail.com
Hi All,
I am also getting the same error. I am using the updated latest
jars.
Post by Mustafa Topçu
Post by Thomas Sundberg
Post by Mustafa Topçu
Post by g***@gmail.com
Please advice.
Thanks,
Gaurav Sharma
Post by aslak hellesoy
All the cucumber-* jars
On Thu, Mar 24, 2016 at 3:22 PM, Mustafa Topçu
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
24 Mart 2016 Perşembe 16:26:46 UTC+2 tarihinde Mustafa Topçu
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
Myfeature.feature
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
Usage: java cucumber.api.cli.Main [options] [
[FILE|DIR][:LINE[:LINE]*]
]+
-g, --glue PATH Where glue code (step
definitions and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results.
Goes
Post by Mustafa Topçu
Post by Thomas Sundberg
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
to
STDOUT unless PATH_OR_URL is specified.
junit,
Post by Mustafa Topçu
Post by Thomas Sundberg
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue
code.
Post by Mustafa Topçu
Post by Thomas Sundberg
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
-m, --[no-]-monochrome Don't colour terminal
output.
Post by Mustafa Topçu
Post by Thomas Sundberg
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
-s, --[no-]-strict Treat undefined and
pending
Post by Mustafa Topçu
Post by Thomas Sundberg
Post by Mustafa Topçu
Post by g***@gmail.com
Post by aslak hellesoy
Post by Mustafa Topçu
Post by Mustafa Topçu
steps as errors.
--snippets Snippet name: underscore,
camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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
Post by Mustafa Topçu
Post by Thomas Sundberg
Post by Mustafa Topçu
an
For more options, visit https://groups.google.com/d/optout.
--
Thomas Sundberg
M. Sc. in Computer Science
Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Better software through faster feedback
Join me for a Selenium kickstart in Timisoara, Romania in April.
http://mozaicworks.com/public-trainings-and-workshops/selenium-webdriver-test-automation-for-web-applications/
Post by Mustafa Topçu
Post by Thomas Sundberg
Interested in a BDD Kickstart in Stockholm?
https://cucumber.io/events/bdd-kickstart-stockholm-16
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google
Groups
Post by Mustafa Topçu
"Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by Mustafa Topçu
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Paolo Ambrosio
2016-03-25 19:13:35 UTC
Permalink
Raw Message
Using tools for dependency management would really help with this. You
forgot to upgrade gherkin to 2.12.2 and cucumber-jvm-deps to 1.0.5.

On Fri, Mar 25, 2016 at 3:04 PM, Mustafa Topçu
Post by Mustafa Topçu
I have just updated cucumber jars. Now i got different problem. screenshot
is http://prnt.sc/ajvadz
Feature
Feature: Title of your feature
I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then done it
CucumberRunner.java
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
gherkin.formatter.model.Scenario.getId()Ljava/lang/String;
at cucumber.runtime.ScenarioImpl.<init>(ScenarioImpl.java:28)
at cucumber.runtime.Runtime.buildBackendWorlds(Runtime.java:145)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:38)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.runtime.Runtime.run(Runtime.java:121)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
Post by Paolo Ambrosio
I suspect Cucumber-Eclipse is not compatible with the very old version
of Cucumber you are including (1.1.5 was released in September 2013).
Try with 1.2.4 and see if the errors go away.
Paolo
On Fri, Mar 25, 2016 at 9:16 AM, Mustafa Topçu
Hi,
I added a screenshot of my eclipse, jars and all my other codes and setting.
http://prnt.sc/ajr30x
Feature: Title of your feature
I want to use this template for my feature file
Scenario: Title of your scenario
Given first
When second
Then third
Thanks.
Post by Thomas Sundberg
Post by Mustafa Topçu
i think the problem is not jars. Please help us.
Help us with more details about how you try to run Cucumber.
* Which command are you using to run Cucumber?
* How do you specify your Cucumber libraries?
* Which version of Cucumber are you using?
This is information that may give us enough details so we can help you
with where you should do a change.
You can also try to to download
https://github.com/cucumber/cucumber-java-skeleton and follow the
instructions on how to get cucumber up and running using Maven.
/Thomas
Post by Mustafa Topçu
Post by g***@gmail.com
Hi All,
I am also getting the same error. I am using the updated latest jars.
Please advice.
Thanks,
Gaurav Sharma
Post by aslak hellesoy
All the cucumber-* jars
On Thu, Mar 24, 2016 at 3:22 PM, Mustafa Topçu
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
Myfeature.feature
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
Usage: java cucumber.api.cli.Main [options] [
[FILE|DIR][:LINE[:LINE]*]
]+
-g, --glue PATH Where glue code (step
definitions and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes
to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending
steps as errors.
--snippets Snippet name: underscore,
camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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
For more options, visit https://groups.google.com/d/optout.
--
Thomas Sundberg
M. Sc. in Computer Science
Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Better software through faster feedback
Join me for a Selenium kickstart in Timisoara, Romania in April.
http://mozaicworks.com/public-trainings-and-workshops/selenium-webdriver-test-automation-for-web-applications/
Interested in a BDD Kickstart in Stockholm?
https://cucumber.io/events/bdd-kickstart-stockholm-16
--
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
For more options, visit https://groups.google.com/d/optout.
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ahmet Mesut Erçıkan
2017-09-21 13:39:21 UTC
Permalink
Raw Message
@Mustafa Topçu sorunu çözebildiniz mi ?
Post by Mustafa Topçu
Which jar did you mean old version Aslak?
Thanks.
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
*My CucumberRunner Java:*
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
*Myfeature.feature*
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
*The exception i got :*
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+
-g, --glue PATH Where glue code (step definitions
and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending steps
as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
George Dinwiddie
2016-03-25 19:11:52 UTC
Permalink
Raw Message
Mustafa,
Post by Mustafa Topçu
Hi Guys,
I was trying to install cucumber/selenium on eclipse but i got below
excepiton. CAn you help me please?
Thanks.
*
*
*My CucumberRunner Java:*
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features={"src/cucumber/"},
format={"pretty","json:target/"}
)
public class CucumberRunner {
}
This class is for running Cucumber under Junit.
Post by Mustafa Topçu
*Myfeature.feature*
Feature: I want to use this template for my feature file
Scenario: Title of your scenario
Given I want to write a step with precondition
And some other precondition
When I complete action
Then I validate the outcomes
*
*
*The exception i got :*
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+
-g, --glue PATH Where glue code (step
definitions and hooks) is loaded from.
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to
STDOUT unless PATH_OR_URL is specified.
Built-in FORMAT types: junit,
html, pretty, progress, json.
FORMAT can also be a fully
qualified class name.
-t, --tags TAG_EXPRESSION Only run scenarios tagged with
tags matching TAG_EXPRESSION.
-n, --name REGEXP Only run scenarios whose names
match REGEXP.
-d, --[no-]-dry-run Skip execution of glue code.
-m, --[no-]-monochrome Don't colour terminal output.
-s, --[no-]-strict Treat undefined and pending
steps as errors.
--snippets Snippet name: underscore, camelcase
--dotcucumber PATH_OR_URL Where to write out runtime
information. PATH_OR_URL can be a file system
path or a URL.
-v, --version Print version.
-h, --help You're looking at it.
Exception in thread "main" cucumber.runtime.CucumberException: Unknown
option: --plugin
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:16)
This stack trace says that you're running the Command Line Interface.
These two ways of running Cucumber take the arguments in different ways.

How are you starting Cucumber?

Also, how are you setting your classpath?

- George
--
----------------------------------------------------------------------
* George Dinwiddie * http://blog.gdinwiddie.com
Software Development http://www.idiacomputing.com
Consultant and Coach http://www.agilemaryland.org
----------------------------------------------------------------------
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...