hi am feroz . I am not able to solve this issue.please help me to
proceed further


I started Appium Server manually and then ran a build in jenkins. The
program is executed and build success.

Now the problem is *How to execute bat file in @beforesuite through jenkins ?*

Note: this @beforesuite is executed through command prompt. Jenkins is
not able to detect this beforesuite

Please go through attached report below.
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Nov 16, 2016 3:51:45 PM org.openqa.selenium.remote.ProtocolHandshake 
createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the 
remote end
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.075 sec <<< 
FAILURE! - in TestSuite
test(Automation.AppTest)  Time elapsed: 1.867 sec  <<< FAILURE!
org.openqa.selenium.SessionNotCreatedException: 
A new session could not be created. (Original error: Could not find aapt. 
Please set the ANDROID_HOME environment variable with the Android SDK root 
directory path.) (WARNING: The server did not provide any stacktrace 
information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 
-0700'
System info: host: 'Feroz', ip: '192.168.43.244', os.name: 'Windows 10', 
os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: driver.version: AndroidDriver
        at Automation.AppTest.test(AppTest.java:36)


Results :

Failed tests: 
  AppTest.test:36 ยป SessionNotCreated A new session could not be created. 
(Origi...

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

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.205 s
[INFO] Finished at: 2016-11-16T15:51:47+05:30
[INFO] Final Memory: 14M/220M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on 
project testing: There are test failures.
[ERROR] 
[ERROR] Please refer to C:\maven project\testing\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:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to