Can you please look into the error below, which occured while executing a very basic test from cmd prompt.
D:\KavishKavin\DataDrivenFramework_TestNG>mvn test [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Spring Boot GAE Blank Project (from https://github.com/making/sp ring-boot-gae-blank) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ DataDriven Framework_TestNG --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ DataDrivenFrame work_TestNG --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Da taDrivenFramework_TestNG --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ DataDri venFramework_TestNG --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ DataDrivenFramework_ TestNG --- [INFO] Surefire report directory: D:\KavishKavin\DataDrivenFramework_TestNG\targ et\surefire-reports
------------------------------------------------------- T E S T S -------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.368 s [INFO] Finished at: 2016-02-08T19:11:19+11:00 [INFO] Final Memory: 11M/162M [INFO] ------------------------------------------------------------------------ [b][i][ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2. 17:test (default-test) on project DataDrivenFramework_TestNG: Execution default- test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: Th ere was an error in the forked process [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: Suite file D:\ KavishKavin\DataDrivenFramework_TestNG\src\test\resources\testng.xml is not a va lid file [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(Te stNGXmlTestSuite.java:116) [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider .java:84) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameCla ssLoader(ForkedBooter.java:200) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork edBooter.java:153) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java: 103) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutio nException[/color]
D:\KavishKavin\DataDrivenFramework_TestNG>
M
Replied on 08/02/2016
it cannot find testng.xml
fix the path to where the testng.xml file is
Suite file D:\ KavishKavin\DataDrivenFramework_TestNG\src\test\resources\testng.xml