Discussion:
[Cucumber] Exception in thread "main" cucumber.runtime.CucumberException: Unknown option: --plugin
Mustafa Topçu
2016-03-24 14:23:45 UTC
Permalink
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
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
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
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
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
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
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
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
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
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
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
@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
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.
sree m
2018-03-19 03:56:32 UTC
Permalink
hi


this is sirisha i have this error i create feature file , runner class and
step definition, but when i executed my feature file having below error .
please help me how to solve this
Feature: Test Automation of amazon
Exception in thread "main" java.lang.AbstractMethodError:
cucumber.runtime.java.JavaStepDefinition.matchedArguments(Lgherkin/formatter/model/Step;)Ljava/util/List;
at cucumber.runtime.RuntimeGlue.stepDefinitionMatches(RuntimeGlue.java:81)
at cucumber.runtime.RuntimeGlue.stepDefinitionMatch(RuntimeGlue.java:62)
at cucumber.runtime.Runtime.runStep(Runtime.java:267)
at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.runtime.Runtime.run(Runtime.java:122)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)

Feature: Test Automation of amazon
Exception in thread "main" java.lang.AbstractMethodError:
cucumber.runtime.java.JavaStepDefinition.matchedArguments(Lgherkin/formatter/model/Step;)Ljava/util/List;
at cucumber.runtime.RuntimeGlue.stepDefinitionMatches(RuntimeGlue.java:81)
at cucumber.runtime.RuntimeGlue.stepDefinitionMatch(RuntimeGlue.java:62)
at cucumber.runtime.Runtime.runStep(Runtime.java:267)
at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.runtime.Runtime.run(Runtime.java:122)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
Feature: Test Automation of amazon

Scenario: Open site valid credentials
Given User open chromeBrowser and start application
Then Enter Valid "username" and "password"
Then User open amzon user account successfully
Then Close site
And Close chrome browser

package runnerpack;




import org.junit.runner.RunWith;

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


@RunWith(Cucumber.class)
@CucumberOptions(features="feature", glue = "stepdefination")



public class Runnerclass {

}
package stepdefination;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;

public class Stepamazon {
WebDriver driver;
@Given("^User open chromeBrowser and start application$")
public void user_open_chromeBrowser_and_start_application() throws
Exception {
System.setProperty("webdriver.chrome.driver","F:\\SELENIUM
INSTALLS\\WEBDRIVERS\\chromedriver.exe");
driver=new ChromeDriver();
driver.get("https://www.amazon.com");
driver.manage().window().maximize();
Thread.sleep(1000);
//click sign button:
driver.findElement(By.xpath(".//*[text() = 'Hello. Sign in']")).click();
Thread.sleep(600);
}
@Then("^Enter Valid \"([^\"]*)\" and \"([^\"]*)\"$")
public void enter_Valid_and(String username, String password) throws
Exception {
driver.findElement(By.name("email")).sendKeys(username);
driver.findElement(By.id("continue")).click();
driver.findElement(By.name("password")).sendKeys(password);
driver.findElement(By.id("signInSubmit")).click();
Thread.sleep(600);
}

@Then("^User open amzon user account successfully$")
public void user_open_amzon_user_account_successfully() throws Exception {
driver.findElement(By.xpath(".//*[text()='Hello, Sirisha']")) ;
Thread.sleep(1000);
}
@Then("^Close site$")
public void close_site() throws Exception {
WebElement e =
driver.findElement(By.xpath(".//*[@id='nav-item-signout-sa']/span[class =
'nav-text' or text() ='Sign Out']"));
Actions a = new Actions(driver);
a.moveToElement(e).build().perform();
Thread.sleep(1000);
}

@Then("^Close chrome browser$")
public void close_chrome_browser() throws Exception {
driver.close();
}


}
--
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.
Koen Prins
2018-03-25 06:17:07 UTC
Permalink
It seems your runner is in a strange place compared to the classpath and it
thus has some issues locating the glue code.
Move stuff around and try some solutions to that. The error is pretty
clear: "Where is my glue?"
Post by sree m
hi
this is sirisha i have this error i create feature file , runner class and
step definition, but when i executed my feature file having below error .
please help me how to solve this
Feature: Test Automation of amazon
cucumber.runtime.java.JavaStepDefinition.matchedArguments(Lgherkin/
formatter/model/Step;)Ljava/util/List;
at cucumber.runtime.RuntimeGlue.stepDefinitionMatches(RuntimeGlue.java:81)
at cucumber.runtime.RuntimeGlue.stepDefinitionMatch(RuntimeGlue.java:62)
at cucumber.runtime.Runtime.runStep(Runtime.java:267)
at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.runtime.Runtime.run(Runtime.java:122)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
Feature: Test Automation of amazon
cucumber.runtime.java.JavaStepDefinition.matchedArguments(Lgherkin/
formatter/model/Step;)Ljava/util/List;
at cucumber.runtime.RuntimeGlue.stepDefinitionMatches(RuntimeGlue.java:81)
at cucumber.runtime.RuntimeGlue.stepDefinitionMatch(RuntimeGlue.java:62)
at cucumber.runtime.Runtime.runStep(Runtime.java:267)
at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.runtime.Runtime.run(Runtime.java:122)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
Feature: Test Automation of amazon
Scenario: Open site valid credentials
Given User open chromeBrowser and start application
Then Enter Valid "username" and "password"
Then User open amzon user account successfully
Then Close site
And Close chrome browser
package runnerpack;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features="feature", glue = "stepdefination")
public class Runnerclass {
}
package stepdefination;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
public class Stepamazon {
WebDriver driver;
@Given("^User open chromeBrowser and start application$")
public void user_open_chromeBrowser_and_start_application() throws
Exception {
System.setProperty("webdriver.chrome.driver","F:\\SELENIUM
INSTALLS\\WEBDRIVERS\\chromedriver.exe");
driver=new ChromeDriver();
driver.get("https://www.amazon.com");
driver.manage().window().maximize();
Thread.sleep(1000);
driver.findElement(By.xpath(".//*[text() = 'Hello. Sign in']")).click();
Thread.sleep(600);
}
@Then("^Enter Valid \"([^\"]*)\" and \"([^\"]*)\"$")
public void enter_Valid_and(String username, String password) throws
Exception {
driver.findElement(By.name("email")).sendKeys(username);
driver.findElement(By.id("continue")).click();
driver.findElement(By.name("password")).sendKeys(password);
driver.findElement(By.id("signInSubmit")).click();
Thread.sleep(600);
}
@Then("^User open amzon user account successfully$")
public void user_open_amzon_user_account_successfully() throws Exception {
driver.findElement(By.xpath(".//*[text()='Hello, Sirisha']")) ;
Thread.sleep(1000);
}
@Then("^Close site$")
public void close_site() throws Exception {
WebElement e = driver.findElement(By.xpath(".
Out']"));
Actions a = new Actions(driver);
a.moveToElement(e).build().perform();
Thread.sleep(1000);
}
@Then("^Close chrome browser$")
public void close_chrome_browser() throws Exception {
driver.close();
}
}
--
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.
Loading...