关于使用monkey运行脚本测试

关于使用monkey运行脚本测试

ID:34026896

大小:63.29 KB

页数:24页

时间:2019-03-03

关于使用monkey运行脚本测试_第1页
关于使用monkey运行脚本测试_第2页
关于使用monkey运行脚本测试_第3页
关于使用monkey运行脚本测试_第4页
关于使用monkey运行脚本测试_第5页
资源描述:

《关于使用monkey运行脚本测试》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、关于使用Monkey运行脚本测试First,runmonkeyonavirtualmachineTwowaystorunemulatorsonPC(Linux)Youcanruntheemulatorthrougheclipse,inaslightlydifferentway.The1canbedonebythecommandline:root@llin-desktop:#emulator一avdandroid2・2Entertheadbshellpattern,asfollows:Root@rus~desktop:#adbshell#Runthemonkeytooltoo

2、penthespecialport#monkey一port1080一v~v“Monkeyseed=0count=1000:IncludeCategory:android.Int・category.LAUNCHER:IncludeCategory:android.Int.category.MONKEYNote:afteryouexecutethemonkeycommand,youcanusenetstattoseeiftheportisopen,andtheredsectionbelowiswherewewanttofocus.#netstatProtoRecv-QSend-

3、qLocalAddressForeignAddressStateTCP00127.0.0.1:50370.0.0.0:*LISTENTCP000.0.0.0:55550.0.0.0:*LISTENTCP0,0127.0.0.1:10800.0.0.0:*LISTENTCP0,10.0.2.15:5555,10.0.2.2:43064ESTABLISHEDUdp0.0.0.0.0.0:554330.0.0.0:*Udp0.00.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0

4、.0.0.0.0.0.0.0.0.#OpentheforwardportonthePCsideRoot@l-e~desktop:~#adbforwardTCP:1080TCP:1080Note:aftertheadbforward,youcanalsousethenetstatcommandtoseeiftheportisenabled,andthecommandisasfollows:Root@lenovo-desktop:~#Root@l-e~desktop:~#adbforwardTCP:1080TCP:1080Root@netstat-an

5、grep1080TCP0

6、,0127.0.0.1:10800.0.0.0:*LISTENRoot@lenovo-desktop:~#UsetheTelnettooltoconnecttoandroidRoot@ren~desktop:~#Telnet127.0.0.11080Trying127.0.0.1...Connectedto127.0.0.1.TheEscapecharacteris,八]'・Theabovetip,withoutanexceptionexit,indicatesthattheconnectionissuccessful,andthenyoucanusethecontents

7、ofthestepsofexample_script・txttoenterthekeyvalues.Root@ren~desktop:~#Telnet127.0.0.11080Trying127.0.0.1...Connectedto127.0.0.1.TheEscapecharacteris,J'・Keydown3OKThekeyup3OKNote:thekeydown3,keyup3,isthekeyuserinput,okisthereturnvalue,ifyouseethewordsokreturnvalues,showsthekeystoeffectiveval

8、ueofhair,otherwise,asinvalidvalues.Atthisstage,youwouldhavethoughtthat,ifmustaadidn,tenterakeyword,whataboutthemeaningofwhatelsetestautomation,itisbettertoonebyonetopress,infactisanallcommandscanbepipedtomonkey.Enterallofthecontentsofexa.mple_script・txtinaone-

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。