如何实现多次执行device.startActivity(component=runComponent)

新手上路,请多包涵
from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice, MonkeyImage
package = 'com.ds365.order.test'
activity = 'com.ds365.order.boot_page.activity.SplashActivity'
runComponent = package + '/' + activity
#class test:
 #   countoftest = 0
  #  _run = []
#def def __init__(action,run):
 #   action._run = run
device = MonkeyRunner.waitForConnection()
device.startActivity(component=runComponent

 
阅读 3.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题