Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noReset/fullReset ignored when using appActivity/appPackage #157

Closed
tiagoshibata opened this issue Jun 25, 2016 · 0 comments
Closed

noReset/fullReset ignored when using appActivity/appPackage #157

tiagoshibata opened this issue Jun 25, 2016 · 0 comments

Comments

@tiagoshibata
Copy link
Contributor

The problem

When the appActivity and appPackage capabilities are used instead of app, noReset and fullReset are ignored. This is due to the reset logic being contained in function installApkRemotely, which is not called when not using the app capability.

Environment

  • Git revision that exhibits the issue: 53fa62e
  • Desktop OS/version used to run Appium: Linux
  • Node.js version: v6.2.1
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe: CLI

Link to Appium logs

Gist log

Code To Reproduce Issue

In the following example, the app data remains on the phone instead of being erased.

#!/usr/bin/env python3
import appium
import time

capabilities = {
    'appActivity': "com.ansca.corona.CoronaActivity",
    'appPackage': "br.com.tapps.vloggergoviral",
    'deviceName': "Android",
    'platformName': "Android",
    'noReset': False
}

webdriver = appium.webdriver.Remote("http://localhost:4723/wd/hub", capabilities)
time.sleep(15)
webdriver.quit()

Expected behavior: app is reset when noReset = false and an error is raised then fullReset = true and no app capability is provided.

I will create a pull request for this soon.

tiagoshibata added a commit to tiagoshibata/appium-android-driver that referenced this issue Jun 25, 2016
tiagoshibata added a commit to tiagoshibata/appium-android-driver that referenced this issue Jun 25, 2016
tiagoshibata added a commit to tiagoshibata/appium-android-driver that referenced this issue Jun 26, 2016
tiagoshibata added a commit to tiagoshibata/appium-android-driver that referenced this issue Jun 26, 2016
tiagoshibata added a commit to tiagoshibata/appium-android-driver that referenced this issue Jul 1, 2016
tiagoshibata added a commit to tiagoshibata/appium-android-driver that referenced this issue Jul 1, 2016
spearminty added a commit to spearminty/appium-android-driver that referenced this issue Jul 1, 2016
* Add eslint and fix problems

* Add androidInstallTimeout capability.

Replace REMOTE_INSTALL_TIMEOUT with androidInstallTimeout capability.

* 1.10.11

* Use correct capability arguments

installApkRemotely to parse correct capabilities from opts

* Honor reset without the app capability

Fixes appium#157

* 1.10.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant