Unable to run cucumber tests via pom frm cmd prmpt | Selenium Forum
M
Posted on 25/11/2016
Please suggest sir...

Am trying to execute my pom.xml with "mvn integration-phase" command
i get BUILD-SUCCESS
But my login test does not run....when i try to execute via pom.xml frm cmd prompt

But i can run it fine if i execute as junit test.

Referred https://sukesh15.gitbooks.io/cucumber-jvm-test-framework-/content/cucumber_-_more_details/running_cucumber_tests_based_on_tags.html

https://groups.google.com/forum/#!topic/cukes/3zG-C2Mo6bQ



Still am unable to figure out ...how to fix this...
I guess my tag is messed up......
Please find my project attached.

M
Replied on 02/12/2016

Sir, please someone suggest me a solution... am searching solution for this issue on net like a lost child....


M
Replied on 22/12/2016

try "mvn test"


M
Replied on 25/12/2016

sir, i ran mvn test

Still BUILD SUCESS.But no test executes sir.

Please suggest sir...

Responsive image

M
Replied on 25/12/2016

why is your project located inside eclipse? are you certain that path is not wrong?


M
Replied on 26/12/2016

ya sir, path is right.

I purposefully created this project there.This project is going to be my [b:1xo8r4dk]4th sem project[/b:1xo8r4dk].
Am struck with this pom.xml issue since days.Could not figure out a solution.

[b:1xo8r4dk]I request you to kindly help me in this issue.[/b:1xo8r4dk]


[b:1xo8r4dk]Sir,settings.xml of maven's config folder has default repository location.Does it have any affect on this ?[/b:1xo8r4dk]


M
Replied on 26/12/2016

did you change settings in maven?

if not try some different pom.xml.


M
Replied on 31/12/2016

Hi sir,

different pom.xml also gives me same issue.

Issue i face has been faced by many & detailed description is across these links:

http://thread.gmane.org/gmane.comp.programming.tools.cucumber/16540
http://grokbase.com/t/gg/cukes/12b7rtzykx/cucumber-tests-not-getting-picked-up-while-running-from-command-line-through-maven
https://groups.google.com/forum/#!topic/cukes/vE_85FW0zks
http://comments.gmane.org/gmane.comp.programming.tools.cucumber/12957

i even tried mvn test -Dcucumber.options="--tags @Bestallhamtning"
mvn test

Still same issue exists...am hitting a dead end...there are many links about my issue online but no solutions i see online.
[b:2h7fo04s]Could you please suggest.[/b:2h7fo04s]

Responsive image