今天就繼續上次 MonkeyTalk 的專題說下去。
雖然安裝 MonkeyTalk 的 Agent 有點小複雜不過不用太擔心,只要照著下面的步驟,一步一步的做就應該沒有什麼太大的問題了。
現在就開始接著說明安裝 iOS 的 Agent 部份。按照慣例我們先來看一下 "圖解" 的部份:
Step 1: Download and unzip the MonkeyTalk file for your OS from official URL as below.
https://www.cloudmonkeymobile.com/download/monkeytalk-community
Tips 1-1: Double click in red to download "Agents Only", or download the zip file as below link.
monkeytalk-2.0.10-agents.zip
Step 2: Open your application's project in Xcode with your MacOS system.
Finder | Applications | Xcode
Tips 2-1: If can't find the "Xcode" please install from "App Store"
Step 3: After double click "Xcode" then click "Create a new Xcode project"
Step 4: Select a iOS Application at left side then double click the "Page-Based Application".
Step 5: Naming a "New Project" as below each column in red then click "Next" after that click "Create".
Step 6: Show a window as below then right click "DemoMonkeyTalk" then click "Duplicate"
Step 7: Show a new duplicate targets "DemoMonkeyTalk copy" then hold left click to rename like "DemoMonkeyTalkAgent"
Step 8: Rename the Scheme from the Manger Schemes.
Product | Scheme | Manage Schemes...
Tips 8-1: After click "Manage Schemes..." show "DemoMonkeyTalk copy" hold left click to rename "DemoMonkeyTalkAgent" then click "close"
Step 9: Add the downloaded "MonkeyTalk lib" to your project from the menu.
File | Add Files to "DemoMonkeyTalk"...
Step 10: Show as below select the file "libMonkeyTalk-2.0.10.a" in red then untick "DemoMonkeyTalk" in yellow and tick "DemoMonkeyTalkAgent" then click "Add"
Tips 10-1: Show the MonkeyTalk lib should now add the file "libMonkeyTalk-2.0.10.a" in red as below for your project.
Step 11: Configuring Libraries to add others are required by MonkeyTalk.
DemoMonkeyTalkAgent | Build Phases | Link Binary With Libraries | +
Tips 11-1: Need to add "libstdc++.6.0.9.dylib", "libsqlite3.dylib", "CFNetwork.framework" and "QuartzCore.framework". After click "+" use "Search" to find the items then click add.
Step 12: For Build Setting need to scroll and add "-all_load" in "Other Linker Flags"
DemoMonkeyTalkAgent | Build Settings | All | Combined | Linking | Other Linker Flags
Step 13: Select your test to run on the Simulator.
DemoMonkeyTalkAgent | iPhone5
Step 14: Click "Play icon" to run on the Simulator for Agent plugin in red as below then waiting awhile until activated the simulator.
Step 15: When show the "Gorilla" picture as below in yellow. Congratulation!!! We are success to plugin MonkeyTalk Agent into the iOS project.
Tips 15-1: Adjust the line to check the gorilla picture in red as below.
恭喜你!!!
經過這一節漫長的安裝程序,終於完成的 iOS Agent 的植入。之後我們在後續的章節還會陸續講到 Android Agent 的安裝和透過 IDE 錄製腳本與測試方法。那就下次見囉! 掰掰 ~
~ See you ~
參考出處:
http://www.cloudmonkeymobile.com/
https://www.cloudmonkeymobile.com/download/monkeytalk-community
monkeytalk-2.0.10-agents.zip
Step 2: Open your application's project in Xcode with your MacOS system.
Finder | Applications | Xcode
Step 3: After double click "Xcode" then click "Create a new Xcode project"
Product | Scheme | Manage Schemes...
File | Add Files to "DemoMonkeyTalk"...
DemoMonkeyTalkAgent | Build Phases | Link Binary With Libraries | +
DemoMonkeyTalkAgent | Build Settings | All | Combined | Linking | Other Linker Flags
DemoMonkeyTalkAgent | iPhone5
Tips 15-1: Adjust the line to check the gorilla picture in red as below.
經過這一節漫長的安裝程序,終於完成的 iOS Agent 的植入。之後我們在後續的章節還會陸續講到 Android Agent 的安裝和透過 IDE 錄製腳本與測試方法。那就下次見囉! 掰掰 ~
~ See you ~
參考出處:
http://www.cloudmonkeymobile.com/
目前我找不到Monkeytal 的原始碼可供測試,是不是可以提供一份讓我測試看看,謝謝!
回覆刪除Hi Elson, 您是需要本篇的 monkeytalk-2.0.10-agents 嗎? 可以在本文 Tips 1-1 處點選 monkeytalk-2.0.10-agents.zip 直接下載即可。
回覆刪除