51Testing软件测试论坛
标题:
执行monkeyrunner脚本时,出现如下错误,请问大家该如何解决?
[打印本页]
作者:
人之初
时间:
2014-7-23 11:44
标题:
执行monkeyrunner脚本时,出现如下错误,请问大家该如何解决?
D:\android sdk\sdk\tools>monkeyrunner 7sanity.py
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] Scri
pt terminated due to an exception
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]Synta
xError: ("no viable alternative at character '\uff08'", ('D:\\android sdk\\sdk\\
tools\\7sanity.py', 67, 11, 'device.type\xef\xbc\x88"1"\xef\xbc\x89\n'))
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92)
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
at org.python.core.ParserFacade.parse(ParserFacade.java:184)
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
at org.python.core.Py.compile_flags(Py.java:1731)
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
at org.python.core.__builtin__.execfile_flags(__builtin__.java:514)
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
at com.android.monkeyrunner.ScriptRunner.run(ScriptRunner.java:116)
140723 11:37:24.086:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
at com.android.monkeyrunner.MonkeyRunnerStarter.run(MonkeyRunnerStarter.java:77)
作者:
人之初
时间:
2014-7-24 10:18
升级了一下python,从2.7到3.3,还是一样的问题。
作者:
人之初
时间:
2014-7-24 11:19
哈哈,问题解决,脚本里的括号用成了中文的
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2