0

我是 python/jython 的 -i 开关的忠实粉丝,如

$ jython -i set_up_my_stuff.py
..
..sets up object1
..sets up object2
>>> object1.do_stuff()

我想知道是否有猴子跑步者的等价物?似乎不是 ./monkeyrunner -i 选项。

这样,我可以使用脚本设置我的测试,然后通过交互式提示使用手机进行探索。

谢谢!!

4

1 回答 1

1

If you invoke monkeyrunner without any arguments, it itself present you an interactive environment, and you can enter your monkeyrunner commands manually and work with it. Up/down keys are working, so having something is better than nothing.

But if this is not what you meant, and you want to debug monkeyrunner scripts interactively, you can setup Eclipse to work with monkeyrunner, where you can step through the script, watch variables etc. It is documented here

And to answer to your question, there is no way to interactively run a script by using monkey runner (As far as I know)

于 2012-10-17T04:43:20.990 回答