Below are the steps through which we can setup Monkeytalk Automation tool on windows and perform automation:-
- Download MonkeyTalk for gorilla logic website and unzip it. Download MonkeyTalk
- Open Eclipse and convert your project on "Aspectj" (need a plugin aspectj - for eclipse)- Once it get downloaded right click on your app,configure,Convert to aspectj.
- Then under your project folder structure search for "libs" folder if it's exist then ok else create it.
- Once it get done go to monkeytalk,agents,android,Monkeytalk jar file. Copy it and paste it under libs folder.
- Once it done click on "jar" file and right click on it,Aspectj tools,Add to aspect path.
- Then go to Androidmanifest.xml file where we have to add some permissions:-
<Uses-permissions android:name="android.Permission.INTERNET/> <Uses-permissions android:name="android.Permission.Get_TASKS/>
- Go to project click on it,Right click,properties,Java Build Path,Check the "Aspectj Runtime Library,Ok.
- Run your application as a Android application.
- Open monkey talk.
- Create new project>>Create new script.
- Then set the android sdk path under prefences; MonkeyTalk,MonketTalk Prefences,Android SDK path,ok.
- Connect to emulator on monkeytalk.
Now you will be able to record and play in MonkeyTalk.
Some start up code for your reference eg; if we have two textfield username and password and one button submit.
app.input("username").entertext("aakash");
app.input("password").entertext("jaiswal");
app.button("submit").tap();
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
Below are the steps through which we can setup Monkeytalk Automation tool on Mac and perform automation
- Download MonkeyTalk and put it on desktop. Download MonkeyTalk
- Double click on Monkeytalk zip file.
- Open your project on xcode.
- Duplicate your project; Right click on Target>>Your project (duplicate only)
- Rename it like (Monkey).
- Go to on the upper side of xcode select the app with a extension of copy; Manage schemes
- Also rename project + copy as (Monkey).
- Go to home Screen>>Add files>>Monkey (not any other app)>>Checkbox.
- Go to MonkeyTalk>>Agent>>iOS>>Lib monkey--- click on add.
- Add some more files
- libs SQL 3.0 file
- Quartz core
- CF Network
- Now go to Build Settings--------------linking>>Other linker flags-- Add
- -all_load -lstdc++
- Run the app and see the output.
How to edit the Accessibility Label
- Search for .xib files in Xcode under your project.
- Open each xib files.
- Once it get open go to 3rd option on left pannel.
- Go on Accessibility (Check the checkbox)
- write some generic name on label textbox.
No comments:
Post a Comment