android monkey runner scripts

前端 未结 6 1273
终归单人心
终归单人心 2021-02-14 11:05

i am tryig to execute a sample python program through monkey runner command prompt and it is throwing an error

Can\'t open specified script file
Usage: monkeyrun         


        
6条回答
  •  盖世英雄少女心
    2021-02-14 11:59

    Under all unix/linux families OS the sha bang syntax can be used.

    Edit the first line of your script with the results of the following command:

    which monkeyrunner
    

    for example, if monkeyrunner (usually provided with android sdk) has been installed under /usr/local/bin/sdk write:

    #!/usr/local/bin/sdk/tools/monkeyrunner
    

    or even use "env"

    #!/usr/bin/env monkeyrunner
    

    then set you script file as executable

    chmod +x 
    
                                     
                  
提交回复
热议问题