Appium Android 驱动程序第二次卸载,即使完全重置也是错误的
Appium Android驱动程序是联合国第二次安装,即使完全重置也是错误的。以下是我附上的情况。
**第一次按预期安装**
capabilities.setCapability("noReset", false);
capabilities.setCapability("fullReset", true);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
**在这里也可以卸载fullReset = true = true and noreSet = false **
capabilities.setCapability("noReset", true);
capabilities.setCapability("fullReset", false);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
,它不会卸载** ** **
capabilities.setCapability("noReset", true);
capabilities.setCapability("fullReset", false);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
**第三次和第二次,当我更改功能FullRest = true时 **正如预期的
capabilities.setCapability("noReset", false);
capabilities.setCapability("fullReset", true);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
。这只发生在Android中。在iOS中,它正常工作,请提供帮助。提前TQ。
Appium Android driver is un installing for second time even full reset is false. Below are cases i am attaching.
** First time installing as expected **
capabilities.setCapability("noReset", false);
capabilities.setCapability("fullReset", true);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
** Here also uninstalling even fullReset= true and noReset=false**
capabilities.setCapability("noReset", true);
capabilities.setCapability("fullReset", false);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
** for third time and next onwards, it is not uninstalling **
capabilities.setCapability("noReset", true);
capabilities.setCapability("fullReset", false);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
** When i change capabilities fullrest=true then reinstalling as expected.but again same as above scenarios **
capabilities.setCapability("noReset", false);
capabilities.setCapability("fullReset", true);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
The problem here AndroidDrviver not initializing second time properlly after fullRset=false. This one is happening only in android. In IOS its is working properlly Please help. Tq in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这会工作得很好。因为我猜测 AUT(测试中的应用程序)正在进行全新安装,而且 appium 是通过新会话启动的
** 这里甚至还卸载 fullReset= true 和 noReset=false**
为此
** 第三次及下一次以后,不再卸载 ** [仅正确]
为了这
** 当我更改功能 fullrest=true 时,然后按预期重新安装。但再次与上述情况相同 **
为此:无法识别你的问题。
有关此功能的更多信息。请去访问一下appium java docs。
Appium 功能文档
官方 Appium 文档链接
重置 ANDROID 和 Android 上的策略iOS
This will work fine . Since I am guessing that AUT(Application Under Test) is getting fresh installation and moreover appium is started with new session
** Here also uninstalling even fullReset= true and noReset=false**
For this
** for third time and next onwards, it is not uninstalling ** [Which is correct only]
For this
** When i change capabilities fullrest=true then reinstalling as expected.but again same as above scenarios **
For this: Not able to identify your issue .
For more info on this capabilities . Please go and visit once appium java docs .
Appium Capabilities Docs
Official-Appium Docs Link
Reset Statergies on ANDROID & iOS