In module 20 I'm unable to run add stock test with mvn test | Selenium Forum
M
Posted on 10/02/2016
Pls find attached my project.. When I'm running through mvn test command the AddStock test is not getting executed. I have made run mode for other tests to No and I'm only running AddStock test through mvn test command it is not getting executed but when I run through right click and do run as testng suite it is getting run. Can u pls help me.

Note: Other test leastperasset are getting run.

M
Replied on 11/02/2016

this is giving error.

Responsive image

M
Replied on 12/02/2016

here is the attached StockSuite.xlsx file.. pls check it and suggest how can I run through mvn test command?


M
Replied on 12/02/2016

use this. i made changes to pom.xml


M
Replied on 13/02/2016

Again getting failed through mvn test command ... I updated POM.xml as well .... Please suggest a solution which should work

Responsive image

M
Replied on 13/02/2016

in project.properties change the xlsx file path.


M
Replied on 13/02/2016

also keep 2 those file in same folder.

Responsive image

M
Replied on 13/02/2016

yes I did same ...testng.xml and POM.xml are in project folder as in screenshot and updated POM.xml. The path of xlsx are as per my directory structure.
It is not working still.... Responsive image


M
Replied on 13/02/2016

you can see screenshot as well ... I have updated my existing project ...POM.xml and kept testng.xml as per you. but still it is not working mvn test??

Responsive image

M
Replied on 13/02/2016

its working for me. please check testng.xml

Responsive image

M
Replied on 13/02/2016

You are running as testng suite by right clicking on testng.xml file ..it also works for me. but problem is when I run through mvn test command it is getting failed. you have attached the testng reports... i want to run through mvn test command.


M
Replied on 14/02/2016

i ran your test through maven test.