Discussion:
[Cucumber] Quary-Executing cucumber feature file from command line
Pravesh Prajapati
2018-07-06 08:34:08 UTC
Permalink
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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
2018-07-06 08:42:07 UTC
Permalink
What platform are you on? Java, JavaScript, Ruby or other?

Aslak
Post by Pravesh Prajapati
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
Pravesh Prajapati
2018-07-06 08:48:26 UTC
Permalink
Its Java & windows
Post by aslak hellesoy
What platform are you on? Java, JavaScript, Ruby or other?
Aslak
On Fri, 6 Jul 2018 at 09:34, Pravesh Prajapati <
Post by Pravesh Prajapati
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
Pravesh Prajapati
2018-07-07 23:48:57 UTC
Permalink
Hi Aslak,
Any Suggestion On the above?

Regards,
Pravesh P

On Fri, Jul 6, 2018 at 6:48 PM, Pravesh Prajapati <
Post by Pravesh Prajapati
Its Java & windows
Post by aslak hellesoy
What platform are you on? Java, JavaScript, Ruby or other?
Aslak
On Fri, 6 Jul 2018 at 09:34, Pravesh Prajapati <
Post by Pravesh Prajapati
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
Oleg Manzhos
2018-07-08 03:42:06 UTC
Permalink
Hi. You can create java class that will point to your feature file and run it as -Dit.test=YourJavaClass without an extension.
Post by Pravesh Prajapati
Hi Aslak,
Any Suggestion On the above?
Regards,
Pravesh P
Post by Pravesh Prajapati
Its Java & windows
Post by aslak hellesoy
What platform are you on? Java, JavaScript, Ruby or other?
Aslak
Post by Pravesh Prajapati
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
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.
For more options, visit https://groups.google.com/d/optout.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
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.
Pravesh Prajapati
2018-07-08 05:15:17 UTC
Permalink
Hi Oleg,
You you have any document for reference in above context
Post by Oleg Manzhos
Hi. You can create java class that will point to your feature file and run
it as -Dit.test=YourJavaClass without an extension.
Hi Aslak,
Any Suggestion On the above?
Regards,
Pravesh P
On Fri, Jul 6, 2018 at 6:48 PM, Pravesh Prajapati <
Post by Pravesh Prajapati
Its Java & windows
Post by aslak hellesoy
What platform are you on? Java, JavaScript, Ruby or other?
Aslak
On Fri, 6 Jul 2018 at 09:34, Pravesh Prajapati <
Post by Pravesh Prajapati
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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
For more options, visit https://groups.google.com/d/optout.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
Oleg Manzhos
2018-07-08 13:31:12 UTC
Permalink
Hi, Pravesh

I don't really remember where it is in documentation, but you need to do
something like this. All runners (classes that call mentioned feature
files) should have the last part Test in their naming: SmokeTest,
RegressionTest, LoginTest, NewUserAccountTest.

You should put the following annotation in this class (lets assume that you
have LoginTest):

@RunWith(Cucumber.class)
@CucumberOptions(
plugin = {"pretty", "html:target/cucumber-report/"},
features = {"path to your feature file"},
glue={"path.to.the.package.with.definitions"})

public class LoginTest {
}

Now you can run LoginTest directly from your IDE or if you use maven, you
can run "mvn clean test -Dit.test=LoginTest"
Please mention, that you can run single feature file this way, or you can
point to the whole folder of featue files in your "features = " option.

When you will crack this challenge :) please read about tags in Cucmber. It
is also pretty flexible wat to run youe feaure files.

Happy testing!
Post by Pravesh Prajapati
Hi Oleg,
You you have any document for reference in above context
Post by Oleg Manzhos
Hi. You can create java class that will point to your feature file and
run it as -Dit.test=YourJavaClass without an extension.
Hi Aslak,
Any Suggestion On the above?
Regards,
Pravesh P
On Fri, Jul 6, 2018 at 6:48 PM, Pravesh Prajapati <
Post by Pravesh Prajapati
Its Java & windows
Post by aslak hellesoy
What platform are you on? Java, JavaScript, Ruby or other?
Aslak
On Fri, 6 Jul 2018 at 09:34, Pravesh Prajapati <
Post by Pravesh Prajapati
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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
For more options, visit https://groups.google.com/d/optout.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
aslak hellesoy
2018-07-08 22:34:51 UTC
Permalink
Have you tried the tutorial?

https://docs.cucumber.io/guides/10-minute-tutorial/

If you find anything is hard to follow, please create a ticket at
https://github.com/cucumber/docs.cucumber.io/issues
If you have suggestions about how to improve it, free to edit the page (via
the Edit link at the bottom).

Cheers,
Aslak


On Sun, Jul 8, 2018 at 12:48 AM, Pravesh Prajapati <
Post by Pravesh Prajapati
Hi Aslak,
Any Suggestion On the above?
Regards,
Pravesh P
On Fri, Jul 6, 2018 at 6:48 PM, Pravesh Prajapati <
Post by Pravesh Prajapati
Its Java & windows
Post by aslak hellesoy
What platform are you on? Java, JavaScript, Ruby or other?
Aslak
On Fri, 6 Jul 2018 at 09:34, Pravesh Prajapati <
Post by Pravesh Prajapati
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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
For more options, visit https://groups.google.com/d/optout.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
Pravesh Prajapati
2018-07-08 22:41:33 UTC
Permalink
Thanks Aslak and team.
I will try and update the things as will progress.

Regards.
Pravesh p.
Post by aslak hellesoy
Have you tried the tutorial?
https://docs.cucumber.io/guides/10-minute-tutorial/
If you find anything is hard to follow, please create a ticket at
https://github.com/cucumber/docs.cucumber.io/issues
If you have suggestions about how to improve it, free to edit the page
(via the Edit link at the bottom).
Cheers,
Aslak
On Sun, Jul 8, 2018 at 12:48 AM, Pravesh Prajapati <
Post by Pravesh Prajapati
Hi Aslak,
Any Suggestion On the above?
Regards,
Pravesh P
On Fri, Jul 6, 2018 at 6:48 PM, Pravesh Prajapati <
Post by Pravesh Prajapati
Its Java & windows
Post by aslak hellesoy
What platform are you on? Java, JavaScript, Ruby or other?
Aslak
On Fri, 6 Jul 2018 at 09:34, Pravesh Prajapati <
Post by Pravesh Prajapati
Hi Team,
How can we execute cucumber feature file from command line.
Please help.
Thanks is advance
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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
For more options, visit https://groups.google.com/d/optout.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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.
--
Regards,
Pravesh prajapati.
Mob:-9702600170
--
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...