Precise Testing Solution
MonkeyTalk Android & iOS Test Tool
Table of Contents:
1. Introduction (Monkey Talk)
2. Set up process for eclipse and monkeytalk
2.2 Downloaded URL
3. Android SDK setup
3.1 Download URL
3.2 SDK Manager
3.3 AVD Manager
3.4 ADT Plugin for eclipse and its URL
4. Monkey Talk setup
4.1 Download URL
4.2 Conversion to AspectJ
4.3 Configration of AJDT
1 ) Introduction :
Monkey Talk is a free, open source, simple to use instrument with amazing power, monkey Talk automates actual, functional interactive tests for native, & hybrid iOS and Android apps, mobile. It creates the proven profit of automated functional testing ease to available for each project.
- Mobile Web, Native, & Hybrid iOS or Android Apps
- Machines & Real Devices no Jail breaking needed
- Robust cross platform Recording and Playback that actual works!
- Executes your tests interactively & from continuous integration atmosphere.
- Free & Open Source!
2) Setup Processes for Eclipse & Monkey Talk:
• Eclipse sdk
• Android SDK setup
• ADT Plug-in for Eclipse
• Monkey Talk Tool (Testing creature for Mobile Applications Testing)
• AJDT (for AspectJ conversion)
Eclipse sdk from URL: http://archive.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/winPlatform.php#EclipseSDK
Not required to install Eclipse, just un-archive the downloaded folder anyplace in local drive. That will render the “eclipse.exe” which will open up the Eclipse architecture. An opening the Eclipse framework, it will ask for the place of ‘workspace’ folder (“Workspace “is the place where the whole Eclipse project will be saved). Make any space folder anywhere in your computer and give the place.
At that Eclipse has successfully assembled. Now we can open Eclipse; write any program & can save the program to workplace folder.
3) Android SDK launch setup:
We required to setup & configure Android with Eclipse. Essentially it is for development activity but in case if we want to check how is the application behaved we can have a look on such the app in eclipse.
Download the URL:
Android sdk from the following URL:
Not required to install the Android; just un-archive the previous downloaded folder (android sdk_r18-window) any location in local drive. That will render the “SDK Manager.exe” (which will open the Android SDK Manager) & “AVD Manager.exe” (which will open the AVD Manager).
a) SDK Manager: used for installation of the Android packages.
· Executes the “SDK Manager.exe”(can be found inside the “android-sdk-windows” folder)
Android SDK manager will furnish the list of package to be installed.
Install any of packages you need to install by checking corresponding checkbox:
Connected Android SDK with the Eclipse IDE:
Click on the “Eclipse” menu (next to the apple logotype for OSX) & choose “Preferences”
Click on “Android” head in the menu tree to open our Android Eclipse predilections
Click the “Browse” button to the right side of the “SDK place” box
Entering the location of your Android SDK (the humanoid path from Step 1)
b) AVD Manager: used for making the Practical Device (imitator)
• Run the ‘AVD Manager.exe’ (can be found in “android-sdk-windows” folder)
• Android Virtual Device Manager’s Window will open.
• Click on New> and follow the stairs as shown in below screen shot:
Name: name of Practical device (or emulator)
Target: versioning of Android imitator which you are going to use.
CPU/ABI: for Android, use ARM
SD Card ‘Size’: it could be 1024 MB
Skin ‘Built-in’ : HVGA (for the Android)
Click “Create AVD”. It will create AVD which will be viewed in “Android Practical Device Manager” under “AVD Name” level.
Select the AVD name & click on “Start”. “Launch Option” pop up will open. Then click on “Launch”. It will open the Android imitator.
If you are getting failed to launch the emulator or getting the error:
Fail to allocated memory spaces:
Please contact to the application's support team for more data.
Then try to reduce the ram size and can use resolution of:
1) Resolution 1280x800, Ram-1024mb and Heap size-48
2) Ram-512mb and Heap size-32
720 X 1280
Ram-128mb and Heap size-16
ADT plug in for Eclipses:
ADT plug-in extends the power of Eclipse to let you repidely set up new Android projects; build an application UI; debug your app; & export signed (and unsigned) application packages (APKs) for dispersion.
To setup ADT plug-in:
• Begins Eclipse> Help > Install New Software….
• Click Add; in the top right area.
• In the Add Repository dialogue that looks, enter “ADT Plug-in” for the Name and the
Following URL for the Location: https://dl-ssl.google.com/android/eclipse/
• Click Ok
Restart the Eclipse , it will ask for the Android SDK which we have already installed on our pc
So just give the location of the Android SDK path
4. Monkey Talk:
Monkey Talk can be downloaded from the given address: http://www.gorillalogic.com/testing-tools/monkey talk/download
Pre-requirement: AJDT Plugin
For installation the Monkey Talk Android Agent; first we want to change Android project into “AspectJ”.
For doing we want to configure AJDT in Eclipse by following points:
Eclipse> Help> Install New Software > Click on Add
In “Add Repository” pop-up:
Name : AJDT
Location : http://download.eclipse.org/tools/ajdt/37/update
Click Ok. ( It will configure the AJDT with Eclipse. )
Adding the MonkeyTalk Android Agent
Open your Android project in Eclipse : (Convert your Android project to AspectJ)
1. Right click on your project
2. Click on Configure and select convert to AspectJ Project
Add the monkeytalk-agent.jar to your Android project.
The agent 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 (for example, monkeytalk-agent-1.0.30.jar).
Create a libs/ folder in your Android project (if you don't already have one), and copy the agent jar into it.
Include the monkeytalk-agent.jar in the AspectJ build path (right-click on monkeyTalk-agent.jar > AspectJ Tools > Add to Aspectpath).
Update your AndroidManifest.xml to include the following two permissions:
Select your AndroidManifest.xml file, copy these two permissions from any of the existing android app’s manifest.xml and paste it in your AndroidManifest.xml as shown below:
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:You should also export the monkeytalk-agent.jar file you added to the project. (Note: in some older versions of Android Development Tools, this export may create a "Dexification Error" - if you get this problem just uncheck this).