Hi ,
I am using appium grid for running iOS and android and currently i am using the following absolute path in code for launching the app from path , its working fine !
capabilities.setCapability(“app”,"/Users/mselvansr/grid/InternationalMountains.app");
My question , i want pass this URL or FTP server like or common path ( NOT FROM MY LOCAL )
capabilities.setCapability(“app”, “http://appium.s3.amazonaws.com/TestApp6.0.app.zip”);
I ran the below example code from URL but its throwing the error
Example Code :
ERROR :
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Bad app: http://appium.s3.amazonaws.com/TestApp6.0.app.zip. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name. cause: Error testing zip archive, are you sure this is a zip file? Error: Command failed: ) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 661 milliseconds
Error in appium node :
info: [debug] Error: Bad app: http://appium.s3.amazonaws.com/TestApp6.0.app.zip. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name. cause: Error testing zip archive, are you sure this is a zip file? Error: Command failed:
at null. (/usr/local/lib/node_modules/appium/lib/devices/ios/ios.js:178:13)
at null. (/usr/local/lib/node_modules/appium/lib/devices/device.js:132:11)
at null. (/usr/local/lib/node_modules/appium/lib/devices/device.js:167:7)
at /usr/local/lib/node_modules/appium/lib/helpers.js:139:11
at /usr/local/lib/node_modules/appium/lib/helpers.js:69:7
at /usr/local/lib/node_modules/appium/lib/helpers.js:104:9
at ChildProcess.exithandler (child_process.js:662:7)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Socket. (child_process.js:979:11)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Bad app: http://appium.s3.amazonaws.com/TestApp6.0.app.zip. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name. cause: Error testing zip archive, are you sure this is a zip file? Error: Command failed: )”,“origValue”:"Bad app: http://appium.s3.amazonaws.com/TestApp6.0.app.zip. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name. cause: Error testing zip archive, are you sure this is a zip file? Error: Command failed: "},“sessionId”:null}
HELP ME PLEASE !
Thanks ,
Muthu Selvan SR