Posts Tagged ‘install’

Steps to install MonkeyTalk Android Agent:

1. Open your android project in eclipse.

2. Convert your android project in AspectJ .

*For this step you have to configure AJDT in Eclipse by following steps:

Open Eclipse >>Go to help  menu >> Install New Software >> Click on Add

Then fill the fields in ‘Add Repository’ window

Name: AJDT

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

Click on ok. *

3. Create a folder in your android project named as “libs”,  if you don’t already have one.

4. Copy the MonkeyTalk-agent.jar file in libs folder.

* MonkeyTalk-agent.jar can be found in the “agents” folder in the MonkeyTalk package you downloaded earlier. The exact name of the jar might vary depending on the version, but it should always start with “MonkeyTalk-agent”.

5. Now add this MonkeyTalk jar file to aspect path:

Right click on MonkeyTalk-agent.jar

Go to  AspectJ Tools

Click on  Add to Aspectpath

6. Update your AndroidManifest.xml to include the following two permissions:

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

<uses-permission android:name=”android.permission.GET_TASKS” />

<uses-permission android:name=”android.permission.INTERNET” />

*You can find Androidmanifest.xml file under res folder of your android project.*

7. Update the project properties (right-click on the project > Properties > Java Build Path), select the Order and Export tab, and check the checkbox next to the AspectJ Runtime Library to export it.

8. Deploy your application to an Android device or emulator.

Right click on Android project

Choose “Run as” option and then “Android Application”

MonkeyTalk:

Monkey Talk is a functional testing tool for mobile applications. It supports android and iOS platforms. It supports iOS 4.0 or greater and Android 2.2 or greater.

Monkey Talk has three components which are as follows:

  • MonkeyTalk IDE – It is used  for record/playback of test scripts
  • MonkeyTalk Agent – It is a library that must be added to enable the testing. There are different agents for different platform i.e. for android and iOS. The agents enable applications to record and play MonkeyTalk Commands.
  • MonkeyTalk scripts – Scripts contains the all the actions. With the help of scripts we can test the overall functionality of an app. MonkeyTalk scripts can be written in three forms that are,
  • o   In JavaScript form
  • o   In tabular form (i.e. in different cells)
  • o   In MonkeyTalk form (In single line format, one line considered as a one command)

Features and benefits:

  • It is open source tool i.e. it is free to download and free to use.
  • It is a powerful complete functional testing tool.
  • Same script can be used on both android and iOS of an app i.e. record on iOS and playback on Android and vice versa.
  • MonkeyTalk is simple and easy to learn.
  • MonkeyTalk scripts can be understood by average person.
  • No expertise required in programming.
  • Both phones and tablets are supported, either tethered or over the network.
  • MonkeyTalk scripts can be easily extended, even by non-programmers, with custom user-defined commands. (Keyword-driven scripts)
  • It supports looping concept. Any command can be looped using csv file. (Data-driven scripts)
  • Both Html and xml reports can be generated with this tool. Generally, test suites output the standard XML report and it captures the screenshot when failure occurs.

Installing MonkeyTalk:

Download MonkeyTalk Zip file from” http://www.gorillalogic.com/testing-tools/monkeytalk/download” and simply unzip the file on your Pc.