This Blog details the set up of Monkey Talk for IOs, to automate the IOs application.
You need to install MonkeyTalk IOs Agent into the application which you want to automate. For this, please follow below steps:
1. Open your application’s project in Xcode.
2. 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.
3. Rename YourApp copy to something like YourAppMonkey.
4. Add the downloaded MonkeyTalk lib to your project File > Add to “YourApp”… from the menu.
5. 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.
6. Recursively create groups for any added folders option. Note: It is up to you whether or not you want to Copy items into destination group’s folder. 7. In the Add to Targets box, deselect YourApp and select YourAppMonkey.
8. Click Add. The MonkeyTalk lib should now be visible in your project.
Configuring Libraries and Build Settings:
9. Right-click on the YourAppMonkey build target, and select the Build Phases tab.
10. On the Link Binaries with Libraries tab, you will need to add libsqlite3.dylib CFNetwork.framework and QuartzCore.framework if your application is not already using them. (These frameworks are required by the MonkeyTalk).
11. XCode will have added references to the libMonkeyTalk.a
12. On the Build Settings tab, scroll down to the Linking section and add to your Other Linker Flags: -all_load -lstdc++
13. Choose your duplicated test target from the Scheme menu in Xcode and Run on the Simulator or Device.
14. Goto New>>MonkeyTalkProject, New Project window should appear. Provide project name and click in “Finish” button.
15. Right-click on the project folder and select New > Test. Provide File name and click on “Finish” button.
16. Launch Android emulator and open your MonkeyTalk enabled application on the emulator.
17. Click on the connection dropdown button on the tool bar and select “Android Emulator/Tethered Device”.
18. If connection was successful, a message should appear in the console.
29. Click “Record” on the MonkeyTalk IDE.
Please feel free to post queries or share your views related to above.