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 PrajapatiHi Oleg,
You you have any document for reference in above context
Post by Oleg ManzhosHi. 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 PrajapatiIts Java & windows
Post by aslak hellesoyWhat platform are you on? Java, JavaScript, Ruby or other?
Aslak
On Fri, 6 Jul 2018 at 09:34, Pravesh Prajapati <
Post by Pravesh PrajapatiHi 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.