【问题标题】:how to use the IntentSpy to spy on intents如何使用 IntentSpy 监视意图
【发布时间】:2014-06-04 23:33:47
【问题描述】:

这听起来很不错: https://code.google.com/p/android-test-kit/source/browse/testrunner/src/main/java/com/google/android/apps/common/testing/intento/IntentSpy.java

但我没有找到有关如何使用它的文档 - 有人可以提供一些示例吗?

【问题讨论】:

    标签: android testing android-intent


    【解决方案1】:

    来自 Google 员工 Stephan Linzner 的信息(通过 G+):

    +mister ligi Intento 最初是 espresso 的一部分,但在预览版中被剥离。显然还有一些 代码中不易删除的引用。所以基本上 如果您查看 GIT,您可以看到 Intento 如何拦截 Intents 和 使用 IntentSpy 记录它们。但缺少的是实际 实施,即将发布。

    【讨论】:

    • 让我补充一点,根据 Stephan Linzner 在 2014 年柏林 Droidcon 上的演讲,Google 很快将发布 Intento,作为其 android-test-kit 的一部分。
    猜你喜欢
    • 1970-01-01
    • 2023-03-10
    • 1970-01-01
    • 2015-12-03
    • 2013-01-21
    • 2019-09-14
    • 2016-01-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多