Hello,

I have finally find by myself the solution.
Actually, the command line is correct when i add the extension of my
script file (.txt) :

adb shell monkey -p com.android.calculator2 -v -v -f /sdcard/
scriptfile/ScriptMonkey.txt 1

I'm highly waiting for some documentation about the creation of a
Monkey Script :D

Thanks for your great job.
Julien


On 4 mai, 18:30, julien guichard <[email protected]> wrote:
> Hello everybody.
>
> I am really interested to usemonkeywith my ownscript, and i have
> try to launchmonkeywith the exemple_script.
> I have pushed thescriptin a folder 'scriptefile' on the sdcard, and
> then try to runmonkey:
>
> adb shellmonkey-p com.android.calculator2 -v -v -f /sdcard/
> scriptfile/ScriptMonkey 1
> Unable to chmod /data/nv/FRStatus.txt: Operation not permitted
> Unable to chmod /data/nv/factoryreset_ongoing.txt: Operation not
> permitted
> cannot create /data/reboot_enable_menu/reboot_enable_menu: permission
> denied
> scandir: Permission denied
> cannot create /sys/module/pm2/parameters/hidden_reset: permission
> denied
> :Monkey: seed=0 count=1
> :AllowPackage: com.android.calculator2
> :IncludeCategory: android.intent.category.LAUNCHER
> :IncludeCategory: android.intent.category.MONKEY
> // Selecting main activities from category
> android.intent.category.LAUNCHER
> //   + Using main activity com.android.calculator2.Calculator (from
> package com.android.calculator2)
> // Selecting main activities from category
> android.intent.category.MONKEY
> java.io.FileNotFoundException: /sdcard/scriptfile/ScriptMonkey
> [1]   Killed                  monkey-p com.an...
>
> I don't understand why it doesn't work. ( I have try with some other
> activities)
> Someone can help me ?
>
> Thanks for your support.
>
> Julien
>
> On 13 avr, 12:59, adam kral <[email protected]> wrote:
>
>
>
>
>
> > Dear Kurt,
>
> > the file has to be uploaded to the device/emulator first. You can do
> > it using following command:
> > adb push scriptfile /sdcard/scriptfile
>
> > and then execute it:
> > adb shellmonkey-p com.touchtype -v -v -v -f /sdcard/scriptfile 1
>
> > which is equivalent to obtaining shell using  adb shell and then
> > runningmonkey-p com.touchtype -v -v -v -f /sdcard/scriptfile 1
>
> > adam
>
> > On 31 Mar, 12:11, Kurt Glivos <[email protected]> wrote:
>
> > > Me too trying to use themonkeywith -f <scriptfile>. I used the
> > > samplescriptgiven in source code but not able to make it work. Could
> > > anybody please help?
>
> > > -
> > > KG
>
> > > On Mar 23, 6:06 pm, zafar <[email protected]> wrote:
>
> > > > AndroidMonkeytool can use user suppliedscriptto run,
> > > > but very few information are present in this regarding to writing
> > > > androidmonkeyscript.
>
> > > > one guy only copied the stuff from source code and apart from that no
> > > > information is present.
>
> > > > Can anyone tell abount the sysntax of androidmonkeyscript to launch
> > > > browser using the command fromscriptand to browse particular
> > > > website.
>
> > > > Any suggestion will be appreciated.
>
> > > > MD ZAFAR ZIYA
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to