2015年3月17日 星期二

什麼!!! VMware 可以裝 Mac OS X ???

哈囉!!! 大家好~

今天這一節我們來說明一下,如何在 VMware Player 上安裝最新版的 Mac OS X Yosemite。

為什麼會突然談到在 VMware 上面來安裝一個 Mac 系統呢?
之所以會突然在這一節說明的原因是,還記得我們上一節講到 MonkeyTalk Agent (iOS篇) 嗎? 因為這一篇我們要用到 Mac OSX 的 Xcode 來安裝 MonkeyTalk Agent,但是並不是每一位使用者都有 Mac 系統,所以今天就特別講到這一篇。

那我們現在就直接開始說明今天的主題 - Yosemite 在 VMware 安裝技巧:


Step 1: Should enable Intel VT-X and AMD-V in BIOS.

Step 2: Download VMware Player from official URL or file link as below.
https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/7_0
VMware-player-7.0.0-2305329

Step 3: After download double click the file "VMware-player-7.0.0-2305329.exe" to start installation.

Step 4: Show the window then click "Next".

Step 5: Select "I accept the terms in the license agreement" then click "Next".

Step 6: Want to change installing folder click "Change..." to carry on. If not click "Next".

Step 7: Un-tick "Check for product updates on startup" then click "Next".

Step 8: Un-tick "Help improve VMware Player" then click "Next".

Step 9: Tick "Desktop" & "Start Menu Programs folder" for create shortcuts then click "Next".

Step 10: Click "Continue" to begin the process.

Step 11: Show the process until finish then click "Finish".



Tips 11-1: Check from start show "VMware Player" icon as below in red. Then click the icon show the main window in second picture.


Tips 11-2: Check the version of the VMware Player "7.0.0 build-2305329"
Player | Help | About VMware Player

Step 12: Download & unzip the unlock tools (unlock-all-v130.7z) for VMware to install Mac OSX.


Tips 12-1: Download 7zip from here http://www.developershome.com/7-zip/.

Step 13: Click windows folder then select "install.cmd" and right click run by "Administrator".

Teips 13-1: Make sure close the VMware Player first then can run this unlock tools.

Step 14: After installed the unlock tools then download the OS X Yosemite zip files from the link as below and unzip.
MAC OS X 10.10 YOSEMITE VER 2015.part1.rar
MAC OS X 10.10 YOSEMITE VER 2015.part2.rar
MAC OS X 10.10 YOSEMITE VER 2015.part3.rar
MAC OS X 10.10 YOSEMITE VER 2015.part4.rar




Tips 14-1: Please make sure got 2 files of "MAC OS X 10.10 YOSEMITE VER 2015.vmdk" and "MAC OS X 10.10 YOSEMITE VER 2015.vmx".

Step 15: Open the VMware Player then click "Open a Virtual Machine" and select the vmx file location just now save the folder then click "Open".


Step 16: Select "Edit virtual machine settings" for detail settings.

Step 17: Select "Options" then rename for Virtual machine as "Mac OSX Yosemite" or anyone you want it.

Tips 17-1: Make sure got "Apple Max OS X" option then select "Mac OS X 10.7" for successfully unlock VMware Player otherwise will be failed.

Tips 17-2: If can't show the option of  "Apple Mac OS X", please close VMware Player and open "Task Manager" then kill all of VMware tasks and re-install the unlock tools again. 

Step 18: Double check "Memory for 4GB" and "Processors for quarter core" then click "OK" to finished the settings.


Step 19: Click "Play virtual machine" for first time power on the Mac OSX then click "I Copied It" for continual, may take awhile to finish it.




Step 20: Tick "Show All" then select country "Taiwan".

Step 21: Select the keyboard layout "U.S." then click "Continue".

Step 22: Select "Don't transfer any information now" then click "Continue".

Step 23: Select "Don't sign in" then click "Continue" and "Skip".


Step 24: For conditions agreement, please click "Agree".


Step 25: Create a user account for Mac, please fill in the "Full name", "Account name", "Password" and "Hint" then click "Continue".

Step 26: Un-tick "Send diagnostics & usage data to Apple" then click "Continue".

Step 27: Congratulation!!! When show as below means successful installation.


Step 28: Install the VMware tools. Click "Settings...".
Player | Removable Devices | CD/DVD (SATA) | Settings...

Step 29: Click "Browse" then select the unlock tools folder, got "darwin.iso" under tools folder.


Step 30: Tick "Connect" then click "OK".

Step 31: Show the VMware Tools box then double click "Install VMware Tools".

Step 32: Click "Continue" for continue the installation.

Step 33: Click "Continue" for the installing destination.

Step 34: Click "Install" to start installation.

Step 35: Enter root user password then click "Install Software".

Step 36: After install finish should reboot the VM, if agree click "Continue Installation".


Step 37: After the installation was successful then click "Restart".

介紹到這裡,相信各位都已經成功的安裝好 Mac OS X Yosemite 系統。
雖然這篇是額外介紹的,但是能夠將 Mac OS X裝在 VMware Player,對於沒有 Mac 系統的使用者來說,不管是要做測試,還是想多熟悉一下 Mac OS X 系統環境,在使用上真的方便很多,也希望這篇對大家能有所幫助。我們下次見!!!

~ See you ~

參考出處:
Tech Reviews
https://www.facebook.com/Techszoom

2015年3月12日 星期四

MonkeyTalk Agent (iOS篇)

哈囉!!! 大家好~

今天就繼續上次 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/

2015年3月5日 星期四

MonkeyTalk 說什麼?

哈囉~ 大家好!!!

經過漫長的年假與和平紀念日的連假後,不知道大家都收心了沒有?
哈~ 依華人的傳統,只要湯圓還沒吃、元宵節還沒過,其實大家都應該還沉浸在年節的氣氛中吧!

MonkeyTalk = "猴子說" What the...... talking about. 如果照字面上來翻譯,這名字好怪喔!
所以還是用英文比較好,接著就來跟大家聊聊 "MonkeyTalk" !!!


Q1:它是如何工作的?

MonkeyTalk 其實是一套專門測試行動裝置的測試工具,不管是 iOS 或 Android apps 都有支援。它的平台主要是由3個部分所主成:MonkeyTalk IDE、MonkeyTalk Agent 還有 MonkeyTalk Scripts。


  • MonkeyTalk IDE - 系統應用程式,用來錄製、播放和開發測試程式。
  • MonkeyTalk Agent - 程式庫需加入在 "被測試 app" 以驅動測試。
  • MonkeyTalk Script - 美觀、可理解、可被維護的測試程式。

  • 第一步需要先將 Agent 植入在 iOS (MonkeyTalk Agent for iOS Installation Guide) 或 Android (MonkeyTalk Agent for Android Installation Guide) 的 app 中,接著用 IDE 錄製和播放測試腳本。也可以參考原始文件 MonkeyTalk Getting Started 就可以順利的完成測試,之後還會有較詳細的說明。

    Q2:它可以在實體主機上測試嗎? 或是只能在虛擬器 Simulator or Emulator 上執行而已?

    Both! 兩者都可以。MonkeyTalk 可以在任何 iOS 或 Android 的實體主機和虛擬器上執行測試。除此之外,還可以在有線和無線的網路環境上測試。

    Q3:需要將 iPhone 越獄 Jailbreak 或是 Root Android 系統嗎?

    Absolutely not. 當然不用啦!用MonkeyTalk測試 app,只需要將 Agent 安裝植入到 "被測試app" 即可。

    Q4:是免費的嗎? Free???

    Yes. MonkeyTalk 在開放原碼的架構下,是免費下載和使用的。

    Q5:是開放原碼嗎? Open Source???

    Yes. MonkeyTalk 是在開放原碼的框架下 under GNU Affero General Public License v3 (AGPL v3) open source license。

    Q6:是跨平台嗎? 可以在 iOS錄製 Android播放,或是 Android錄製 iOS播放腳本嗎?

    Yes. 如果在 iOS 或是 Android 是用相同的邏輯來設計 apps,就可以用不同的 OS 做錄製或撥放腳本。 因為 MonkeyTalk 是使用高階的錄製方法,所以跨平台錄製和播放腳本,只要用相同邏輯並不需要用相同的 UI 設計。例如使用相同的 tabs,將 iOS 的UI 設計在頁頭,Android 的 UI 設計在頁尾,當用不同 OS 錄製相同 tabs 時是會錄到 TabBar 和 Select,所以在不同 OS 測試時就會正確的對應到。 

    Q7:可以測試 app 不需要用到程式碼嗎?

    No. 因為要安裝 MonkeyTalk Agent 就必需植入程式碼才能測試。一旦由程式設計師或是整合工具植入套件後,以後在做測試時都不再需要接觸到任何的程式碼。

    Q8:可以測試第3方 apps 像是攝影機 app、瀏覽器等等...?

    No. 因為用 MonkeyTalk 測試需要植入 Agent 的程式碼做驅動,所以無法測試第3方 apps。

    Q9:可以測試 HTML5 的 web apps 嗎?

    Yes. MonkeyTalk 1.0.40 的 Agents 有支援原生的 iOS 和 Android、混合型與 mobile web 包含 HTML5 的 apps,可以使用官方所提供的 MTBrowser 做應用測試。

    Q10:可以測試桌上系統的 apps 嗎? Windows Phone7? BlackBerry? Flex Mobile?

    No. MonkeyTalk 1.0.10 才支援 iOS 和 Android 的 Agent。據官方說法以後會慢慢加其他的 Agents 進來。

    Q11:可以測試移動裝置的遊戲嗎?

    It depends. 視情況而定。因為大部份的遊戲都是使用亂數產生器,這將對固定的功能性測試會產生些難度。不過官方表示,會在未來整合一些較主流的 game engines 和亂數產生器以達到較完善的測試。目前還是可以進行非亂數產生的標準 UI 元件做測試的。

    Q12:可以測試平板電腦嗎? 還是只能測試手機而已?

    Both! MonkeyTalk 可以在全部 iOS 的裝置上 (iPhone, iPad, iPod Touch) 執行 apps 測試,及大部分的 Android 裝置也沒問題。

    Q13:可以全自動化測試嗎? 可以在 CI 上執行嗎? 可以在 IDE 以外執行測試嗎? 可以在命令列用指令執行測試嗎?

    Yes. MonkeyTalk 可以用 Ant (MonkeyTalk Ant) 或是 Java Commandline Runner (MonkeyTalk Runner) 執行指令做測試。也可以成功的運用 Hudson/Jenkins 當 CI server 做內部測試。幾乎全部的全自動化測試都是使用 Simulator/Emulator 做的,因為這可以保證每次的測試都是從頭開始執行。

    Q14:可以 app store 發佈 MonkeyTalk-enabled app 嗎?

    Maybe. 或許可以,但是官方並不建議發佈到 app store。但是官方建議可以製造開發用的 MonkeyTalk-enabled app 安裝在 Agent上做使用。

    Q15:可以測試嵌入式的網頁嗎? 像是 iOS 的 UIWebView 或是 Android 的 WebView?

    Yes. MonkeyTalk Beta4版,就可以支援嵌入式網頁 WebView 的測試。不過目前 Beta5版,就只能撥放,還不能錄製 WebView 的測試腳本。

    相信經過上面15個 Q&A 的說明,對於 MonkeyTalk 應該會有比較初步的認識,以後我們再針對實作部份做較詳細的介紹。

    就先介紹到這裡了,也祝福大家今天 "元宵節快樂" ~掰掰囉!!!

    ~ See you ~

    參考出處: