Hello All,
I want some help for How to setup & execute Appium with sauce Labs.
Thank you
Hello All,
I want some help for How to setup & execute Appium with sauce Labs.
Thank you
If you have sauce lab account, you will have sauce lab access key with you. If you do not have it , generate it.
follow this link Sample Sauce Lab Test for sample test with sauce labs.
Follow this link Desired capabilitties to understand what capabilities are required for your selenium/Appium Test.
Hope this will help.
Thanks
Ravi Kumar
Hello @ravikr42
Thanks for reply.
I have already done that.
But i am stuck over there. What i needs to do after that?
I am little bit confuse about App path. What it should be?
Upload the app to drop box and provide the link under app value.
for instance:
cap.setCapability(“app”,“https://www.dropbox.com/s/pbhrvfjhasvkjx55/UICatalog-2.app.zip?dl=1”);
Make sure that dl value is set to 1 at the end of the link, only then the file gets downloaded automatically.
Cheers,
Dev
Hello @navneedhdev
Thanks for help.
now the error is different
Your test errored. Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“sessionId”,“id”]} and you sent [“requiredCapabilities”,“capabilities”,“desiredCapabilities”]
What to do next? Is it any sacelabs restriction with trial version?
Hi @dushyant.patare , Could you please share your code?
Cheers,
Dev
DesiredCapabilities caps = DesiredCapabilities.android();
caps.setCapability(“appiumVersion”, “1.5.3”);
caps.setCapability(“deviceName”,“Android Emulator”);
caps.setCapability(“deviceOrientation”, “portrait”);
caps.setCapability(“browserName”, “”);
caps.setCapability(“platformVersion”,“6.0”);
caps.setCapability(“platformName”,“Android”);
caps.setCapability(“appPackage”, “appPackage”);
caps.setCapability(“appPackage”, “appActivity");
caps.setCapability(“app”,“sauce-storage:https://saucelabs.com/rest/v1/storage/XXX:XXXXX.apk”);
AndroidDriver driver = new AndroidDriver( new URL(“http://"+USERNAME+":"+ACCESS_KEY+"@ondemand.saucelabs.com:80/wd/hub”), caps);