- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
Google 最近发布了 Android Testing Support Library 1.0。看完overview ,我对 Android Test Orchestrator 有点困惑。
它说
Typically, AndroidJUnitRunner runs all tests in the same instrumentation process, which can cause a number of problems.
您能解释一下使用相同的检测过程会导致哪些问题吗?
if one test crashes, it prevents the remainder of the test suite from running
根据我的经验,一次测试崩溃不会阻止其他测试用例的运行。请指出我在这里误解了什么?
来自Android Testing Orchestrator developer guide ,
For completeness, Android Test Orchestrator runs pm clear after each test.
所以 Android Test Orchestrator 会在每次测试后运行pm clear [test_package_name],对吧?
通过我的测试,pm clear [app_package_name]不会在每次测试后执行。也就是说被测应用的数据不会被清除。所以测试用例可能仍然相互依赖。例如:
总的来说,经过一些试用,我没有发现 Android Test Orchestrator 有任何优势。有人可以帮助解决我的困惑吗?谢谢。
最佳答案
稍微研究一下这个问题后,我可以提供以下答案:
Typically, AndroidJUnitRunner runs all tests in the same instrumentation process, which can cause a number of problems.
如前所述,AndroidJUnitRunner 在相同的检测进程上运行,因此基本上您的测试是全状态运行,如果您的测试对进程状态有某种依赖性,这可能会造成严重破坏。在 Android 测试编排器中,每个测试都在其自己的进程中运行,因此依赖性不是问题。
if one test crashes, it prevents the remainder of the test suite from running
这里讨论的崩溃是进程的崩溃,而不是 Activity/应用程序的崩溃。您可以通过在一个测试中插入 System.exit(0);
来测试这一点。通常,这将停止整个测试运行,而在 Android 测试编排器中,测试将按预期继续进行。
For completeness, Android Test Orchestrator runs pm clear after each test.
这是谷歌的疏忽,已从 official documentation 中撤回可以观察到here .
基本上,使用 Android 测试编排器的优势在于每个测试都有单独的过程,这提高了稳定性并确保测试的完整执行。
关于android - 什么是 Android 测试编排器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45992726/
我已经在现有代码库上工作了一段时间,通过浏览我们的崩溃日志服务,我注意到一个异常经常发生,我无法重现这个问题,我也没有上下文尝试深入研究的场景,因为这是一个相当大的项目,因此越来越难以找出此异常的原因
我知道这是一个有点长的问题,但我们将不胜感激。 简而言之,我想让一组容器在多个主机上相互通信,并且可以通过 SSH 访问。我知道有这方面的工具,但我做不到。 长版是: 有一个软件有多个组件,这些组件可
如何在知道业务流程名称的情况下动态调用 BizTalk 业务流程? 调用编排形状需要在设计时知道编排的名称和参数。我试过使用'call' XLang 关键字,但它还需要编排名称作为设计时间,就像表达式
我们可以肯定地说,如果 ESB 提供编排功能,它就有资格成为 BPM 的实现吗? 我知道 BPM 有一个不同的目的,即对某些业务流程进行建模,并且这些业务流程的实现可以由任何简单的 Java/J2EE
背景 我有一个 API 网关端点,它代理 Lambda 函数 (Lambda A),供我的 React 应用程序获取客户数据。 此 lambda 函数调用 API 来获取客户数据,但响应的格式还有很多
我对 SOA 中编排的含义感到困惑,我阅读了很多定义但没有明白这个想法,你能帮我吗? 最佳答案 有两种主要方法可以从更大的类(class)粒度服务、编排和编排中执行所有必要的细粒度服务。 对于管弦乐队
嘿,我正在开发一个包,该包生成用于训练 GPT-2 的 TFX 管道(参见 https://github.com/steven-mi/tfx-gpt2)。 我想知道如何在本地将我的管道部署到 Kube
我有一个由作为服务发布的公共(public)端口启动的编排。每当有人调用此服务时,编排就会开始 我也需要每 30 分钟启动一次编排。 什么是更好的方法?我看过一些 here但我想要更简单的东西 最佳答
我正在运行一个 Windows Azure Web 角色,在大多数情况下,该角色接收的流量非常低,但有一些(可预见的)事件可能会导致必须完成大量后台工作。后台工作由许多数据库调用(Azure SQL)
我们正在考虑将 apache spark 集成到我们的计算过程中,我们最初想使用 apache oozie 和标准 MR 或 MO(仅限 map )作业。 经过一些研究后,仍然存在几个问题: 是否可以
我们是否需要使用诸如 eventuate、camunda 等任何框架来在 Spring Boot 中实现基于 Orchestration 的 SAGA 微服务? 最佳答案 您可以使用 eventuat
我是一名优秀的程序员,十分优秀!