Tests not running from maven command line | Selenium Forum
M
Posted on 20/09/2015
Hi Ashish,

I am trying to run test using maven command line but tests are not running showing passed:0 falied: 0 and skipped :0 ;)

I have tried many times but its not running, Can you please check the code and advice?

M
Replied on 20/09/2015

what are the errors/warnings you are getting.


M
Replied on 21/09/2015

Hi Ashish,
there are no error but warnings are there , please find attached screenshot of warning and logs


M
Replied on 22/09/2015

[quote:1zidouvc]there are no error but warnings are there[/quote:1zidouvc]

but there is a compilation error. Responsive image


[code:1zidouvc][ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/ashwini.more/Mavenluna/MYMAVENPROEJCT/src/test/java/com/testin
g/AppTest.java:[3,23] package junit.framework does not exist
[ERROR] /C:/Users/ashwini.more/Mavenluna/MYMAVENPROEJCT/src/test/java/com/testin
g/AppTest.java:[4,23] package junit.framework does not exist
[ERROR] /C:/Users/ashwini.more/Mavenluna/MYMAVENPROEJCT/src/test/java/com/testin
g/AppTest.java:[5,23] package junit.framework does not exist
[ERROR] /C:/Users/ashwini.more/Mavenluna/MYMAVENPROEJCT/src/test/java/com/testin
g/AppTest.java:[11,13] cannot find symbol
symbol: class TestCase
[ERROR] /C:/Users/ashwini.more/Mavenluna/MYMAVENPROEJCT/src/test/java/com/testin
g/AppTest.java:[26,19] cannot find symbol
symbol: class Test
location: class com.testing.AppTest
[ERROR] /C:/Users/ashwini.more/Mavenluna/MYMAVENPROEJCT/src/test/java/com/testin
g/AppTest.java:[28,20] cannot find symbol
symbol: class TestSuite
location: class com.testing.AppTest
[ERROR] /C:/Users/ashwini.more/Mavenluna/MYMAVENPROEJCT/src/test/java/com/testin
g/AppTest.java:[36,9] cannot find symbol
symbol: method assertTrue(boolean)
location: class com.testing.AppTest[/code:1zidouvc]

I would suggest the location of jars is the problem.