51Testing软件测试论坛

标题: 请教device.startActivity(component) 模拟器没有反应? [打印本页]

作者: c_harline    时间: 2016-3-14 12:51
标题: 请教device.startActivity(component) 模拟器没有反应?
代码如下:
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
import sys

device = MonkeyRunner.waitForConnection()
MonkeyRunner.sleep(2)

package ='com.android.settings'
activity = '.Settings'
component = package + '/' + activity

device.startActivity(component)

但是android模拟器没有反应,没有打开设置主界面




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2