Skip to main content

MonkeyTalk Android & iOS Test Tool





Precise Testing Solution
+91-9555814488 /+1-7183128801


Specification Documentation
on
  MonkeyTalk Android & iOS Test Tool


Table of Contents:
 1.     Introduction (Monkey Talk)
1.1   Features
 2.    Set up process for eclipse and monkeytalk
2.1    Pre-requisites:
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.

          Features:
  • Mobile Web, Native, & Hybrid iOS or Android Apps
  • Machines & Real Devices no Jail breaking needed
  • Robust cross platform Recording and Playback that actual works!
  • Use the simple monkey Talk command language and powerful JavaScript (Application        programming Interface) API
  • Executes your tests interactively & from continuous integration atmosphere.
  • Free & Open Source!

2)   Setup Processes for Eclipse & Monkey Talk:
  Pre-requisites:
   Eclipse sdk
   Android SDK setup
   ADT Plug-in for Eclipse
   Monkey Talk Tool (Testing creature for Mobile Applications Testing)
   AJDT (for AspectJ conversion)

 Download URL:
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:
http://dl.google.com/android/android-sdk_r22.2.1-windows.zip
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:
This app has requested to the Runtime to terminate it in an un-expected way.
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
3)    Resolution
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:
   Download Url:
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:
android.permission.INTERNET
android.permission.GET_TASKS
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).

Comments

  1. Thanks for sharing those details
    There are so many things which i learn and increase my knowledge.

    Thanks Buddy
    Time Tracking Software

    ReplyDelete

Post a Comment

Popular posts from this blog

Steps To Hunt the Bugs Successfully

The testers should catch the bugs in software that they’re testing. Testers should try to catch as several vital bugs as soon as possible. Catching the crucial bug earlier on Product-Life-Cycle can save the Projects from financial losses & mitigate the risks as compared for catching the same at a later stage in SDLC. Steps to hunt the bugs: Sometimes it’s useful to break the rules: The following test cases, which were predefined a tester can miss the bugs so it makes it impossible’s to provide the product i.e. 100 percent bug free. If you-follow pre-determined test cases you risks becoming blind to outside the bugs. A first secret is to check the functionality under the test. It’ll be an effective channel to discover the more bugs, because functionality is not generally covered by the test cases. Examine the patterns: You might have noticed that the bugs can be often met in the groups, one can call them-gregarious. The testing a new but the similar functionality...

Cross browser testing Tools

Cross Browser testing It is a process to test the web apps across multiple browsers. It involves the checking compatibility of the app across multiple web browsers & ensures that your web app’s works correctly across different web browsers. Tools for Cross Browser Testing Browser shots: The browser shots might be most exhaustive cross browser-testing tool that exists. Browser Shots includes all of most popular-browsers, like Firefox, Chrome, & Safari, along with the tons of another browser’s that might sound unfamiliar, like Sea Monkey, Flock, & Iceape. You can adjust the resolution, color-settings, & even Flash and JavaScript settings. Cross Browser Testing: It allows users to test their websites with over the hundred resolution or browser and Operating System combinations. This also has support to mobile web-browsers, which is crucial because the web traffic is making shift from the primarily desktop computer users to primarily mobile ...

Mobile Application Testing: Strategy for Development

There are a huge number of demands and lots of competitions in the mobile application industries. In that demands and competitions, the mobile application testing has become more important. The testing phase of the mobile application testing looks like evil between the creative process and excitement of new products in the market. According to the survey, “In US, on an average 2-3 hours per day people spends their time on smartphones and tablets. On that time, they spent 80% on mobile application and remaining 20% on web applications.” Few list of key factors for successful mobile application testing strategies are: Selection of Device for Testing : Before introducing the mobile application test activities, first select the devices for testing the application. Selection decision is very important because only devices can help to targets maximum numbers of the customers for accessing the application. There are two parts for device selection: §   Device Model ...