Indeed, i tried with count 300,events happened in both packages, looks
like i set less count before

Thank you very much!

On 3月19日, 下午4时13分, Dianne Hackborn <[email protected]> wrote:
> It definitely works.  You may need to have it run more events to give it a
> chance to switch packages.
>
> If you are wanting to understand how it works, you also probably want to
> look at the monkey source code.  It's relatively straight-forward.
>
>
>
>
>
> On Thu, Mar 19, 2009 at 12:22 AM, z2cat <[email protected]> wrote:
>
> > Hi,everyone
> > I am using Andriod Emulator and Monkey command to research how to
> > execute automation test on Android Platform
> > According tohttp://d.android.com/guide/developing/tools/monkey.html,there
> > are words"To specify multiple packages, use the -p option multiple
> > times -- one -p option per package." I think that means i can input
> > multiple parameters of package names in one command,the result should
> > be execute monkey test in both packages.
> > But i input multiple  "-p",only the first one executed.
> > such as "adb shell monkey -p com.android.camera -p
> > com.android.contacts 50",the result is only 50 events in camera,no one
> > in contacts
>
> > Could someone tell what the problem is?and how to execute monkey in
> > multiple packages?
>
> > BTW,there is a mistake in
> >http://d.android.com/guide/developing/tools/monkey.html,
> > about help parameter.actually should one"-"before it,not "--"
> > the correct one is "adb shell monkey -help"
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to