




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、android自動測 劉云峰2自動化測試思想自動化測試在手機(jī)上的應(yīng)用總結(jié):手機(jī)自動化測試方向自動化測試思想如要達(dá)成AT&T stability test 77-TC要求:57手機(jī)達(dá)成500800h的連續(xù)測試,我們?nèi)绾瓮瓿??手機(jī)自動化測試整理Java TCK自動化測試介紹和運(yùn)用BT profile自動化測試介紹和運(yùn)用WM pocket controller + Hopper測試Android monkey測試介紹和運(yùn)用S客戶AutoMMI測試介紹和運(yùn)用M客戶CPV測試介紹和運(yùn)用PC自動化工具如何測試手機(jī)介紹和運(yùn)用自動化測試延伸自動開關(guān)機(jī)測試介紹和運(yùn)用Browser的性能測試(通過設(shè)計測試
2、數(shù)據(jù))系統(tǒng),儀器輔助測試JAVA TCK自動化測試運(yùn)用 內(nèi)建數(shù)據(jù)庫,可自動,交互,OTA測試,可完整呈現(xiàn)報告并能得到Sun公司認(rèn)可 CLDC1.0:4690pcs. CLDC1.1:11590pcs. MIDP2.0:856pcs. JTWI:181pcs MMAPI1.1:124pcs WMA1.1:49BT自動化測試應(yīng)用 BT自動和交互測試環(huán)境 SIG(Special Interest Group)每季更新PTS工具(最新版v32 )DUT with BTBT + DongleProfileIntegrated TC AmountGeneral370A2DP78AVRCP54BIP37BP
3、P28DUN28FAX4FTP146HID28HSP/HFP369OPP281PAN35PBAP15SAP13SPP18SYP31Total1535 WM平臺自動化測試應(yīng)用Hopper test為MTTF TestMean Time To Failure Test,即平均失敗時間測試,或稱平均無故障時間測試,hopper就是一個測試系統(tǒng)的穩(wěn)定性和可靠性的一個自動化測試工具標(biāo)準(zhǔn):手機(jī)端執(zhí)行 Hopper.exe, 不對手機(jī)做任何干擾動作,檢查手機(jī)在運(yùn)行25個小時之后是否出現(xiàn)異常情況?PC Pocket controller control WM product testWM pocket con
4、troller測試環(huán)境通過PC達(dá)到控制手機(jī)操作的工具Pocket controller測試環(huán)境 DUTPCActiveSyncPocket controllerUSB cableAndroid平臺monkey自動化測試應(yīng)用Monkey Test運(yùn)行在模擬器或設(shè)備上的一個程序。用來偽隨機(jī)地模擬點擊和觸摸等用戶事件??梢杂糜趯ξ覀冮_發(fā)的應(yīng)用程序進(jìn)行隨機(jī)和重復(fù)的壓力測試。還可以看到其執(zhí)行過程報告和生成的事件。Monkey的基本語法格式$ adb shell monkey options 例如:monkey -s seed -throttle 3000 p com.android.browser -v
5、 400. Android 自動化測試應(yīng)用Software requirementsUSBNET driver BelcarraAndroid SDKPrepareInstall USBNET driver according to “readme” file in Belcarra packageDevice is switch to USBLAN mode. After connecting phone to PC, there would be a new local area connection. Configure its static IP address: 192.168.10
6、0.n(1255)/注意:需要設(shè)置靜態(tài)IP和PC的IP在同一局域網(wǎng)下;需要從C命令符進(jìn)入SDK的ADB目錄下啟動ADB工具Android-monkey測試環(huán)境 Android SDKDebugboardDUTUSB cableUSB cableRS232 cableAndroid auto runner Android Runner Android Recorder Approach of Android AutomationM客戶CPV測試介紹和運(yùn)用CPV- Customer Programmable Verifier測試目的設(shè)置數(shù)據(jù)自動測試測試各個網(wǎng)絡(luò)運(yùn)營商對手機(jī)
7、設(shè)定值是否正確?如MMS連接的設(shè)定,網(wǎng)絡(luò)鏈接的設(shè)定標(biāo)準(zhǔn)在一個Excel文件中,機(jī)制讀手機(jī)Flag的狀況而后跟Excel文件中自動比較。DUTPCUSB- cableS客戶AutoMMI測試介紹和運(yùn)用Script: PressKey S, KEYSEND, /* 12 */ P, KEYEND, /* 13, defined in SEMC specification */ , KEYUP, /* 15 */ V, KEYDOWN, /* 16 */ , KEYRIGHT, /* 18 */ U, KEYVOLUP, /* 19 */ D, KEYVOLDOWN,/* 20 */ , KEYSO
8、FT1, /* 21 */ , KEYSOFT2, /* 22 */ :J, KEYACTION, /* 24 */ :), KEYOPEN, /* 30, NP_PS_CR#76 */ :(, KEYCLOSE, /* 31, NP_PS_CR#76 */ :O, KEYWAP, /* 34 */ C, KEYCLEAR, /* 35 */ :G, KEYMUSIC, /* 40 */CycleSetCount=1Set Cycle=nWhileCount=Cycle (the number of cycle)Test casessetCount=Count+1endwhileDUTUSB-
9、COM cablePC自動化測試工具 Rational, MT, WinRunner,Loadrunner手機(jī)如果能用PC控制自動化開關(guān)機(jī)測試特殊cable要求此Cable增加DTR信號的連接,增加了R8,R9,Q1三顆器件。其中:DTR_OUT和VBAT以及GND這三個NET接線頭在Cable線之外以備我們后面測試使用。PC串口工具標(biāo)準(zhǔn):測試10000次或依據(jù)APR/MTBF測試要求 DUTSpecial cable數(shù)據(jù)提升自動化測試簡單一個HTML標(biāo)簽語言,則可幫助自動有效測試Browser的內(nèi)存和穩(wěn)定性測試htmlAndroid平臺的自動開關(guān)機(jī)已經(jīng)實現(xiàn)20test
10、data上海第一研發(fā)中心-測試部學(xué)習(xí)文檔自動開關(guān)機(jī)上海第一研發(fā)中心-測試部學(xué)習(xí)文檔自動開關(guān)機(jī)系統(tǒng)提升自動化測試TC development General TC in System Copy TC to project with same categoryOccasional PR General TC caused總結(jié)通訊測試方向節(jié)省費用考慮KPI(5-member, one day) per weekSpeed up occasional PR reproduceHelp RD debug with efficientReach software stability test requir
11、ementsStable software quality Android Runner Android Recorder Approach of Android AutomationAGENDA General PurposeAndroid RunnerAndroidRunner is designed for automation for test, it can help tester to do function test, regression test, Limit/Stress test and so on. AndroidRunner contains 3 parts. Fir
12、st part is script, it includes all scripts that you want to run. Second part is result, this folder includes logs and case results. Third part is img folder, this folder includes all your captured image.Android RunnerHandsetADB InterfaceAndroid interpreterTest CasesAndroidRunner Architecture of Andr
13、oidRunner ScriptAndroid RunnerBeginIt means script starting; it should used with End command.E.g. Begin ts_0001Touch(25,200)Trigger a touch event. (X= 25, Y=200)KeypadTrigger a keypad event, if you want to input any characters, please use it.Sleep(5000)The script will sleep 5 seconds. I
14、t uses million-second. ScriptAndroid RunnerTakeSnapShot(Dial_10086_2)Capture your current LCM then save to img folder as Dial_10086_2.png.Drag(56,192,56,10)Drag LCM from start point to end point. Start: 56,192 End: 56,10.SetLoop 1Set a loop for your script. You should use it match with EndLoop.EndLo
15、opYou should use it match with SetLoop.Assert(0:00)Verify your LCM information. ScriptAndroid RunnerLongPress(160,110)Long press touch.MenuTouch handsets menu button.BackTouch handsets Back buttonHomeTouch handsets Home button.UpNavigation key. ScriptAndroid RunnerDownNavigation key.LeftNavigation k
16、ey.RightNavigation key.ConnectServer(32,10000)Connect a socket server.SendMessage(HELLO_WORLD)Send a message to socket server. ScriptAndroid RunnerDissServer()Disconnect socket. SampleAndroid RunnerBegin ts_0001SetLoop 10Touch(44,179)Sleep(2000)Touch(67,135)Touch(169,315)Touch(163,315)To
17、uch(184,263)Touch(241,198)Touch(182,380)Sleep(9000)Touch(157,448)EndLoopEnd UsageAndroid Recorder Export ActionsAndroid Recorder MonkeyRunnerAndroid AutomationThe monkeyrunner tool provides an API for writing programs that control an Android device or emulator from outside of Android code. With monk
18、eyrunner, you can write a Python program that installs an Android application or test package, runs it, sends keystrokes to it, takes screenshots of its user interface, and stores screenshots on the workstation. The monkeyrunner tool is primarily designed to test applications and devices at the func
19、tional/framework level and for running unit test suites, but you are free to use it for other purposes.http:/ RobotiumAndroid AutomationRobotium is a test framework created to make it easy to write powerful and robust automatic black-box test cases for Android applications. With the support of Robotium, test case developers can write function, system and acceptance test scena
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 個人優(yōu)點總結(jié)20篇
- 下半年個人工作計劃
- 中醫(yī)康復(fù)治療技術(shù)模擬練習(xí)題(含參考答案)
- 游泳救生員初級題庫與參考答案
- 推拿治療學(xué)試題含答案
- 一通三防工作總結(jié)
- 買房同中介合同范本
- 口罩購銷合同范本模板
- 出售混凝土檁條合同范本
- 住宅小區(qū)車位轉(zhuǎn)讓合同范本
- 2025年棗莊科技職業(yè)學(xué)院高職單招語文2018-2024歷年參考題庫頻考點含答案解析
- 護(hù)苗行動安全教育課件
- 2024年山西同文職業(yè)技術(shù)學(xué)院高職單招職業(yè)適應(yīng)性測試歷年參考題庫含答案解析
- 油品庫房管理規(guī)定(2篇)
- 礦山工程安全培訓(xùn)課件
- 2025年月度工作日歷含農(nóng)歷節(jié)假日電子表格版
- 2024年長沙民政職業(yè)技術(shù)學(xué)院單招職業(yè)技能測試題庫及答案解析
- 2024年精對苯二甲酸市場分析報告
- 成人手術(shù)后疼痛評估與護(hù)理團(tuán)體標(biāo)準(zhǔn)
- 2025年中考數(shù)學(xué)二輪專題復(fù)習(xí) 題型四-二次函數(shù)圖象與性質(zhì)綜合題
- 【數(shù)學(xué)】一元一次方程的應(yīng)用第2課時盈不足問題課件-2024-2025學(xué)年北師大版數(shù)學(xué)七年級上冊
評論
0/150
提交評論