Steups for Mobile testing

Setup the Device Emulator

1.       Install the Windows Mobile 6 Professional & Standard SDK first, then install 6.1, 6.1.4 and 6.5 SDK from //172.25.232.7/q/SDK.

2.       Device Emulator is available if you have Visual Studio 2005/2008 installed, .exe file is available at C:/Program Files/Microsoft Device Emulator/1.0 and the file name: dvcemumanager.exe. If not, install Device Emulator from //172.25.232.7/q/SDK/Device Emulator.msi”. 

3.       Install Virtual PC from //172.25.232.7/q/SDK/Virtual PC 2007.exe”.

4.       Open a emulator, Go to File->Configure…->Network->Select “Enable NE2000 PCMCIA network adapter and bind to:”-> Select your network adapter in the dropdown box->Click OK button.

5.       After step 3, it will appear a notification, Please open it and select internet option, then click connect button. If you forget to do this, Go to Start->Settings->Connections->Network Cards->Select “The internet”.

6.       In the emulator, Go to Start->Settings->Connections->Connections->Advanced-> Click on "Select Networks->Select "My Work Network"->Click “Edit…”->Proxy Settings->Select “This network connects to the internet”-> Click OK button->Click OK button.

7.       Open Mobile IE and browse to RWW.

8.       If you get Network Access Exception Message,

                o     For Pocket PC: Go to Settings->Connections->Connections->Advanced->Exceptions Tab and include https://serverIP/*. For Instance if the server IP is 172.23.133.17 please add https://172.*  in the Exception and click OK

                o    For Smartphone: Go to Settings->Connections->Proxy->HTTP and delete the proxy if you have any. Repeat this for Settings->Connections->Proxy->Socks

9.       Open the IE Mobile and Browse to RWW.

 

Connect to Windows Mobile Device Center

1.       In order to sync up your mobile with the desktop download the Microsoft Windows Mobile Device Center 6.1 from //172.25.232.7/q/SDK/Mobile Device Center x64.exe or

 “//172.25.232.7/q/SDK/Mobile Device Center x86.exe”.

2.       Open Windows Mobile Device Center,  Go to Mobile Device Settings->Connection Settings->Select DMA option in the dropdown box->Click OK button.

3.       Open the Device Emulator Manager and right click on the device you want to connect(Windows Mobile 6.1.4 and 6.5), click "Start" and then click "Cradle".

4.       Open the Mobile Device Center and click on "Setup Your Device" in order for the device to get the internet access. Choose "Files" for enabling sharing of files with the mobile and the desktop.

 

Copy binaries and run automation

1.       Install Windows Mobile Power Toys from //172.25.232.7/q/SDK/WindowsMobilePowerToys.msi.

2.       Copy cecopy.exe from C:/Program Files (x86)/Windows Mobile Developer Power Toys/CECopy to the special folder, eg: D:/Script.

3.       Copy rapistart.exe from C:/Program Files (x86)/Windows Mobile Developer Power Toys/RAPI_Start to the D:/Script.

4.       Copy all files from //depot/Dev.wssg_common/ram/test/Mobile/MobileFVT/Test/Scripts to the D:/Script.

5.       Open Razzle and run bcz on root folder.

6.       Go to D:/Script, Update CopyEssentialBinary.bat. change the value of mobileFVTBinfolder to your local path. Eg: set mobileFVTBinfolder=D:/Code/dev.wssg_common.binaries.amd64fre/ram/TEST/TestBin.

7.       Run CopyEssentialbinary.bat.

8.       Go to C:/Program Files (x86)/Windows Mobile 6 SDK/Tools/Windows Mobile Test Framework, extract the file “Windows Mobile Test Framework.zip”, then you can see “CommandWindow”, open it and run command “SetupDevice”.(Copy test framework binaries to Mobile)

9.       Go to D:/Script and run RunOnDevice.bat. wait for automation test finish, then click “Enter” to copy results to C:/MobileLog.

 

<Update>

 

Copy binaries and run automation

1.       Go to C:/Program Files (x86)/Windows Mobile 6 SDK/Tools/Windows Mobile Test Framework, extract the file “Windows Mobile Test Framework.zip”, then you can see “CommandWindow”, open it and run command “SetupDevice”.(Copy test framework binaries to Mobile)

2.       Install Windows Mobile Power Toys from //172.25.232.7/q/SDK/WindowsMobilePowerToys.msi.

3.       Set Environment variables(Do once). Right Click “My Computer”->properties->Advanced system settings->Environment Variables…-> Add the paths of the cecopy.exe and rapistart.exe to the “Path” variable. Eg: the path are “C:/Program Files (x86)/Windows Mobile Developer Power Toys/CECopy” and “C:/Program Files (x86)/Windows Mobile Developer Power Toys/RAPI_Start”.

4.       Open Razzle and run sync & bcz on root folder. (If you have opened the Razzle, please reopen it.)

5.       Run CopyEssentialBinary.bat and RunOnDevice.bat in the Razzle. wait for automation test finish, then click “Enter”, the results automatically copy to C:/MobileLog. The scripts path: //depot/Dev.wssg_common/ram/test/Mobile/MobileFVT/Test/Scripts

 

 

 

Experience

1.       If you cannot open RWW, pleae try “OK” button or “Enter” to open it.

2.       Mobile cannot connect to windows mobile device center in TS session. You can connect first and then TS.

3.       Current test binaries only support windows mobile 6 Classic and standard emulator.

4.       About Mobile test Freamwork you can see http://softtest.chinaitlab.com/zdh/755012.html.

5.       If you want to update ServerInfo.xml, Copy it to PC, update it and then copy back to mobile.

6.       If you want to use Visual studio 2008 in mobile test solution, install .NET Compact Freamwork 2.0 from //172.25.232.7/q/SDK/NETCFSetupv2.msi.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章