简体   繁体   English

如何使用Robotium从其他进程运行活动

[英]How to get the activity running from other process using Robotium

我有一个主要活动,当点击主要活动中的按钮时,它移动到另一个活动,而不是在另一个进程上运行..是否有机会使用robotium /通过其他代码跟踪/获取该活动以与robotium集成

Unfortunately no. 很不幸的是,不行。 Robotium builds upon Android's instrumentation objects which are limited to work only within the process of the instrumentation for the given target Activity (as you define a target process in the test-manifest file). Robotium建立在Android的检测对象之上,这些对象仅限于在给定目标活动的检测过程中工作(当您在test-manifest文件中定义目标进程时)。

I don't know how it behaves in cases where the target process has a defined shared user id, though... 我不知道在目标进程具有已定义的共享用户ID的情况下它的行为如何......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM