I have Maven Project and all the configuration is correct, recently i configured the project with GIT and Jenkins,Created Jenkin job.
Earlier i was able to run the complete project by Right click on project and Run **--> **Run --> Maven test and test execution use to start but now its not throwing any error but not launching the browser for execution.
But if i run the java file [Single test case] separately using TestNG its working as expected[launching the browser and starts the execution]
As i have configured with Jenkins i cannot run every test case separately. I will have to run the project with Maven test
I have tried the possible solutions :
- Clean Project + delete m2 folder + Maven Run [just to make sure its not pointing to any old jar files] --> Did not work for me
Please find the code snippet that i have used in pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</build>
Thanks in advance for all the suggestions :)