Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven not running my testfile in Selenium in command line

 
linda russel
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is the error trace i get


-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.tutorvista.tvautomation.TestTVHomePageLogin
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.361 sec

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.415s
[INFO] Finished at: Tue Jan 31 16:25:50 IST 2012
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------


Everything is running fine from eclipse but the problem is from command line only.
 
linda russel
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why did not it run my tests??
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is in TestTVHomePageLogin? If JUnit 3.8, does it extend Test case and have testXXX methods? If JUnit 4, does it have @Test annotations?
 
linda russel
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Jeanne ,

I am using junit4 and i have a @Test Annotation

something might be wrong in pom.xml?


Thanks
 
linda russel
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my class

public class TestTVHomePageLogin {


and

@Test
public void testLogin() throws InterruptedException {


this is the method declaration


Thanks
 
linda russel
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any clue??
 
linda russel
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using juni4

so any annotation other then Test is necessary?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
linda dinda wrote:i am using juni4

so any annotation other then Test is necessary?

No. That looks good. And Maven is picking up on the class' existance since it is in your output. Moving to our Maven forum in case it is a Maven problem.
 
linda russel
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne


Its working fine now.

I did a Maven clean and maven generate-sources once from eclipse and after that everything is working fine even from command line.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic