Thursday, 19 June 2014

How to configure the monkey talk for Android Mobile Automation


STEP -1: Import your targeted automation project into Eclipse:

a) Open the Eclipse Project.
b) You must have source code of your targeted  automation apps. 
c) Then we will go the File>Import>Existing Project into Workplace>Select your project location and import it.


STEP -2: Configure your project with Aspect J Plug-in:

a) Right click on your project 
b) And go the Configure>Convert To Aspect J Plug-in.

STEP -3 : Add Monkey Talk library info your project:

a) First of all  open your Monkey Talk unzip folder.
b) And we will go the agent\android\monkeytalk-agent-2.0.4 . 
c) Copy monkeytalk-agent-2.0.4  jar file.
d) Then paste into your project lib folder
e)  We will add to Aspect path into your monkey talk library so right click on monkey talk library and choose the path Aspect Tool>Add To Aspect  path.


STEP -4: Configure Java Build Path:
a) Open the eclipse.
b) Right click on your project and go the Properties>Java Build Path>Select Aspect J Run time library
c) Click on ok.


STEP -5: Configure the permission with your Eclipse Project:


a) We will give the permission for GET_TASK and INTERNET to eclipse project.
b) We will open the eclipse project and open the Manifest.xml file
c) Then we will go to the permission tab and click on add .
d) Select user permission  and give the permission for
android.permission.GET_TASKS
android.permission.INTERNET

Write a first UI Monkey Talk Script for Sign In Form : 

Label enterEmailPsw verify "Please enter your credentials"
Input Username verify
Input Password verify
Button #1 verify " SIGN IN"
Button #2 verify CANCEL





No comments:

Post a Comment