Monkey Talk
Installation :
1.
Download the zip file here. This download contains the IDE, the
Agents (which you will need for the next step), and sample
applications.
2.
Unzip it wherever you want, but remember where you put it because
you'll need it later.
3.
On OS X, move the entire MonkeyTalkIDE folder into your applications
folder and double click on MonkeyTalk.app to run.
4.
On Windows, move the entire MonkeyTalkIDE folder into your Program
Files folder and double click on MonkeyTalk.exe to run. (Note: If
you choose to put MonkeyTalkIDE in your Program Files folder, you
will have to choose a different location for your workspace.)
For
Android Applications:
Open
your Android Project in Eclipse and follow these instructions.
1.
Convert your Android project to AspectJ
2.
MonkeyTalk-agent.jar
can
be found in the "agents" folder in the MonkeyTalk package
you downloaded earlier, and can be downloaded here. The exact name of
the jar might vary depending on the version, but it should always
start with "MonkeyTalk-agent".
3.
Create a "libs" folder in your Android project, if you
don't already have one.
4.
Copy the .jar into the libs folder
5.
Right click on MonkeyTalk-agent.jar
>
AspectJ Tools > Add to Aspectpath.
6.
Update your AndroidManifest.xml to include the following two
permissions:
android.permission.INTERNET
,
android.permission.GET_TASKS
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.
Copy the ant jar file from monkey talk folder in to “Apache-ant/lib” folder
Configure Xcode (Iphone App):
- Download and unzip the MonkeyTalk zip file for your OS.
- Open your application's project in Xcode.
- Duplicate your application's build target by right-clicking on it and selecting Duplicate from the menu. A new target will be created called YourApp copy.Rename YourApp copy to something like YourAppMonkeyYou may also want to rename the Scheme from the Manage Schemes window
4.Add
the downloaded MonkeyTalk lib to your project File > Add to
“YourApp”... from the menu.
(When
the dialog box appears, navigate to the directory where you unzipped
the MonkeyTalk zip file, and select the MonkeyTalk
iOS lib from pathToMonkeyTalkFolder/agents/iOS.
)
5. In
the Add to Targets box, deselect YourApp and
select YourAppMonkey.
And click add
6.
Configuring Libraries and Build Settings
Right-click
on the YourAppMonkey
build
target, and select the Build Phases tab.
On
the Link Binaries With Libraries tab, you will need to add
libsqlite3.dylib CFNetwork.framework and
QuartzCore.framework and libstdc++.6.0.9.dylib
(Xcode5 only)
if
your application is not already using them. (These frameworks
are required by the MonkeyTalk).
7.
On the Build Settings tab, scroll down to the Linking section and add
to your Other Linker Flags:
-all_load
-lstdc++
8.
Choose your duplicated test target from the Scheme menu in Xcode and
Run on the Simulator or Device.
No comments:
Post a Comment