如何通过Google Play通过calabash-android进行购买?

时间:2016-09-28 13:56:48

标签: android automation automated-tests calabash calabash-android

我对ruby进行了测试 - 使用calabash-android,我希望在我的应用中购买VIP - 通过Google Play框架。 在irb控制台中没有显示这个谷歌框架。我不想点击协调。

calabash-android console apk

start_test_server_in_background

query("*") =未显示Google Play框架

monitor - 它命令我可以在应用中查看id元素并出现Google Play fraym

也许sambody知道怎么做?

1 个答案:

答案 0 :(得分:0)

使用calabash-android我们无法自动化其他应用。由于它为您的应用程序提供了检测功能,因此calabash命令仅适用于您的应用,而不适用于其他应用。

在这种情况下,您可以使用python android UI Automator或adb命令在代码中编写python包装器

你实现了两种方式

  1. Python uiautomator - https://github.com/xiaocong/uiautomator
  2. Adb命令 - https://developer.android.com/studio/command-line/shell.html