Set up an environment for running Monkeyrunner scripts in Eclipse, see Lynnli's blog monkeyrunner environment for running Monkeyrunner scripts in Eclipse (iv)
But in practice, the situation is really endless, first I set up a good environment, run a simple script, did not expect to throw a mistake.
IOError: (2, ' File not found-d:\\workspace\\monkeyrunner_test01, stating that the corresponding script was not found in the path we configured.
We click Run-external tools-external Tools configurations to view our path configuration:
Just forget to add the script name, the above program will be error. In fact, and the command line run the same reason, generally run like this: Monkeyrunner D:\workspace\monkeyrunner_test01\test01.py. If you run this way: Monkeyrunner d:\\workspace\\monekyrunner_test01 is wrong.
Let's change it:
The mistake of making an error with a wrong letter is now reproduced:
So must be careful!!!
Once corrected, we can successfully run:
FIX: Run Monkeyrunner in Eclipse: IOError: (2, ' File not found-d:\\workspace\\monkeyrunner_test01 (\u62d2\u7edd\u8bbf\ u95ee\u3002) ')