App do not quit .setNoReset(true)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 752
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 8
Description
Description
Application do not quit, when used .setFullReset(false) and .setNoReset(true). After removing .setNoReset(true) and setting both .setFullReset(false) and .setNoReset(false) are working.
Environment
- Java client build version or git revision if you use some snapshot: v8.5.1
- Appium server version or git revision if you use some snapshot: v2.1.3
- Desktop OS/version used to run Appium if necessary: Window 10
- Node.js version: v18.18.0
- Mobile platform/version under test: Android 13
- Real device or emulator/simulator: Emulator
UiAutomator2Options uiAutomator2Options = new UiAutomator2Options()
.setAutomationName(AutomationName.ANDROID_UIAUTOMATOR2)
.setApp(configurationProperties.extractApkFilePath().getAbsolutePathToMobileApp().toString())
.setFullReset(false)
.setNoReset(false)
.setPlatformName(deviceContext.getPlatformName())
.setPlatformVersion(deviceContext.getPlatformVersion())
.setUdid("emulator-5554")
.setAppPackage(configurationProperties.getApkPackageName())
.setAppActivity(configurationProperties.getApkLaunchableActivityName());
uiAutomator2Options.setCapability(AndroidMobileCapabilityType.UNICODE_KEYBOARD, true);
uiAutomator2Options.setCapability(AndroidMobileCapabilityType.RESET_KEYBOARD, true);
driver = new AndroidDriver(appiumServerManager.getAppiumServerURL(), uiAutomator2Options);
driver.setSetting(Setting.ENABLE_NOTIFICATION_LISTENER, false);
driver.setSetting(Setting.WAIT_FOR_SELECTOR_TIMEOUT, 0);
driver.setSetting(Setting.WAIT_FOR_IDLE_TIMEOUT, 0);
Please find the both the logs link
-
When used .setNoReset(true)
https://gist.github.com/dipakkumar1225/cf4d7b0525dbff5637cbc8cbce2b601a -
When not used .setNoReset(true)
https://gist.github.com/dipakkumar1225/c6c666890c8afb030b29dfef290d601e
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the two linked logs and the UiAutomator2Options configuration, especially the setFullReset(false) and setNoReset(true) combination. Reproduce the behavior on the stated Android 13 emulator and determine why the application does not quit; done means the configuration has consistent quit behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100