1

NO_RESET flag not working in amazon device farm(Appium). I used the following code in my capabilities.

capabilities.setCapability("noReset", true);

2 Answers 2

1

You can find the answer in this line of official aws-device-farm-appium code sample: https://github.com/awslabs/aws-device-farm-appium-tests-for-sample-app/blob/master/src/test/java/Tests/AbstractBaseTests/TestBase.java#L66

We do not need to and SHOULD NOT set our own DesiredCapabilities

That basically means that your manually provided capability is ignored.

0

Try this one :

capabilities.setCapability(MobileCapabilityType.NO_RESET,"true");

This should work.

1
  • 1
    Hi Thanks for the code, it worked on real device and not on AWS.
    – Hp93
    Commented Oct 25, 2017 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.