title: Android: Monkey vs Monkeyrunner for event simulation
body: <p>I want to simulate events generated by a typical user to collect network traffic traces using the network monitor.</p>
  
  <p>I went through the Info. given in <a href="https://developer.android.com/studio/test/monkeyrunner/index.html" rel="nofollow">https://developer.android.com/studio/test/monkeyrunner/index.html</a>
  and
  <a href="https://developer.android.com/studio/test/monkey.html" rel="nofollow">https://developer.android.com/studio/test/monkey.html</a></p>
  
  <p>And i can see that monkey is used to generate a random distribution of events using command line options, whereas monkeyrunner is used to generate specific events using Jython API.</p>
  
  <p>Can anyone suggest which of the tools would be a better fit to simulate a typical user session on an application for the purpose of collecting network traces?</p>
  
  <p>Any suggestions to use a better tool than these two suitable for this task is also welcome.</p>