INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ test ---
[INFO] Surefire report directory: /Users/rakesh/Work/git/qa/gui_tests/IphoneAutomation/test/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Tests run: 19, Failures: 1, Errors: 0, Skipped: 17, Time elapsed: 25.766 sec <<< FAILURE!
Results :
Failed tests:
setUp on null(com.qnective.qtalksecure.test.ExecLoginTests)(com.qnective.qtalksecure.test.ExecLoginTests): A session is either terminated or not started (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2.84 seconds
Build info: version: '2.31.0', revision: '1bd294d185a80fa4206dfeab80ba773c04ac33c0', time: '2013-02-27 13:51:26'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.4', java.version: '1.6.0_35' Driver info: org.openqa.selenium.remote.RemoteWebDriver
Tests run: 19, Failures: 1, Errors: 0, Skipped: 17
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.654s
[INFO] Finished at: Thu Apr 04 17:03:58 CEST 2013
[INFO] Final Memory: 5M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project test: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/rakesh/Work/git/qa/gui_tests/IphoneAutomation/test/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
PC018:test rakesh$
I have found that whenever driver.quit() is called , next time app is not launched by the driver. So I manually have to kill the instance in iphone and then run the test. Is there any workaround ?
Thanks for any help.