How to configure MonkeyTalk Android agent in Eclipse

How to configure MonkeyTalk Android agent in Eclipse
COMMENTS ()
Tweet

Hey Guys,
In this post I’m going to show you how to configure the MonkeyTalk Android Agent in Eclipse. Users who are new to MonkeyTalk will find this tutorial very useful. Also check our other tutorial on how to configure the MonkeyTalk iOS Agent in Xcode. So let’s get to it.

First open your Android app project in Eclipse and follow the instructions.

Step 1

To install the Monkey Talk Android Agent, you’ll first need to convert your Android project into AspectJ. To do so, you need to configure AJDT in Eclipse by performing the following steps:

  • Click on Help in the top menu and click on the Install New Software option

monkeytalk

 

  • Now click the Add button and in the ‘Add Repository’ popup enter the following values (as shown below):

Name: AspectJ

Location: http://download.eclipse.org/tools/ajdt/43/update

monkeytalk android

 

  • Click the Ok button. When you do that, it will configure AspectJ with Eclipse

Step 2

Now, right click on your project select the Configure option. Then select Convert to AspectJ Project option

monkeytalk android agent

Step 3

Next, add the monkeytalk-agent.jar file to your Android project. This file can be found in the agents/android/ folder in the main MonkeyTalk zip package you downloaded earlier. The exact name of the android agent jar will include the version number as well (for example, monkeytalk-agent-2.0.8.jar)

Now, create a libs/ folder in your Android project (if you don’t already have one), and copy the above agent.jar file in it.

Step 4

Add the monkeytalk-agent.jar in the AspectJ build path. To do so, right-click on the monkeyTalk-agent.jar file, select the AspectJ Tools option and then select the Add to Aspectpath option (as shown below).

monkeytalk configuration in eclipse

Step 5

Next, update your AndroidManifest.xml file to include the following two permissions:

      • android.permission.INTERNET
      • android.permission.GET_TASKS

monkeytalk

Step 6

Now, update the project properties by right-clicking on the project > Properties > Java Build Path option, selecting the Order and Export tab and checking the checkbox next to the AspectJ Runtime Library to export it (as depicted below).

monkeytalk configuration in android

Step 7

Now deploy your app to an Android device or emulator. After deploying the app, you can generate the MonkeyTalk automation scripts through the MonkeyTalk IDE

Explore our blog

ABOUT FOLIO3

As a leading mobile app development company (iPhone, Android, Windows Phone, HTML5 app development), Folio3 specializes in native app development services and cross platform mobile app development services for the iPhone and iPad. We also offer extensive mobile app testing and QA services. If you have a mobile app idea that you’d like to discuss please or would like to know more about our iPhone app development services, please Contact Us. Learn more about our iPhone, Android and Windows Phone app development services.

CALL

USA408 365 4638

VISIT

1301 Shoreway Road, Suite 160,

Belmont, CA 94002

Contact us

Whether you are a large enterprise looking to augment your teams with experts resources or an SME looking to scale your business or a startup looking to build something.
We are your digital growth partner.

Tel: +1 408 365 4638
Support: +1 (408) 512 1812