mercredi 26 août 2015

How to set Appium --no-reset flag programmatically for AWS-Device Farm

I want to set Appium Flag --no-reset programmatically.


This Flag is used when we don't want to reset app state between sessions (IOS: don’t delete app plist files; Android: don’t uninstall app before new session). Its default Value is False, I want to make it true because I have written my Test scripts by making --no-reset=true on my local env..


Why I want to do this

I'm using AWS-Device Farm (which runs Test cases on multiple real devices using cloud service) to test my Android App and I don't have control over Appium server running on AWS, and by default its --no-reset flag is false ,Hence It resets my App during each run, Which results in Test Case Fail.


Logs from AWS-Device Farm

Starting testBBB
Pre-launching app
Starting android appium
Java version is: 1.7.0_75
Retrieving device
Found device 06db10920b305807
Device API level is: 21
App is already installed, resetting app
Starting App


Note:- I'm using Appium V1.4.6, Intellij Idea (Java), Junit Framework. Please Help And suggest some solution. Thanking You.




Aucun commentaire:

Enregistrer un commentaire