Appium Android 驱动程序第二次卸载,即使完全重置也是错误的

发布于 2025-01-21 03:33:29 字数 973 浏览 0 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

壹場煙雨 2025-01-28 03:33:29

这会工作得很好。因为我猜测 AUT(测试中的应用程序)正在进行全新安装,而且 appium 是通过新会话启动的

** 这里甚至还卸载 fullReset= true 和 noReset=false**

为此

fullReset=true :通过卸载应用程序重置应用程序状态。这也将在会话完成后删除该应用程序。

noReset=false:在您的情况下,这并不重要。因为如果您再次启动您的应用程序。这将是全新安装,因此默认情况下 noReset=true。

** 第三次及下一次以后,不再卸载 ** [仅正确]
为了这

fullReset:false :因此应用程序不会被删除或者会清除其状态

noReset:true :它不会重新安装您的 AUT,但会在此会话之前重置应用程序状态

** 当我更改功能 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

fullReset=true : Reset app state by uninstalling app. This will also remove the app after the session is complete.

noReset=false : In your case it will not matter . Since if you start again your app .It will be a fresh installation so by default noReset=true.

** for third time and next onwards, it is not uninstalling ** [Which is correct only]
For this

fullReset:false : So App will not get removed or its gonna clear its state

noReset:true : It will not re-install your AUT but it will reset app state before this session

** 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文