I would like to implement a function which does the steps below :
Download content from the server using this command :
node ~/Desktop/plugins-dist-1/app/package --config appconfig.js --targetDir package/app --host myhost --port 8888 --https --username myuser --password mypass --force
Create the package for the upload using this command :
node ~/Desktop/plugins-dist-1/app/package --config appconfig.js --targetDir package/app --CouldPoxy myproxy --CloudUser myuser --CloudPassword mypass createpackage
Upload the package to the cloud...
Start the build on the cloud ...
Check the status until the build is not finished ...
Download the result ....
Instead of doing this manually in the shell, I would implement a @test function do it.
I need a way how to implement this, I am using appium 1.4, android, Junit.
Thank you