当前位置: 首页 > news >正文

上海 企业网站建设网站建设的技术有哪些

上海 企业网站建设,网站建设的技术有哪些,微信营销系统,做电锯电音的网站目录 1. 介绍2. 安装3. Monkey的使用4. money常用命令5. 常用事件类型参数6. Monkey使用参考 1. 介绍 Monkey是一个在模拟器或设备上运行的程序#xff0c;用于生成用户事件的伪随机流。 为什么要使用Monkey这个自动化遍历工具#xff1f; Monkey解决了一个测试痛点#xff… 目录 1. 介绍2. 安装3. Monkey的使用4. money常用命令5. 常用事件类型参数6. Monkey使用参考 1. 介绍 Monkey是一个在模拟器或设备上运行的程序用于生成用户事件的伪随机流。 为什么要使用Monkey这个自动化遍历工具 Monkey解决了一个测试痛点当手工测试过程中一个页面存在非常多的元素比如雪球APP可能一个面中有10万支股每支股中又包含非常多的小数据如果我们正向的自动化测试的话编写自动化测试用例就会耗时很久如果我们使用手工测试的话工作量也会非常庞大。使用Monkey的话可以在不用编程或者编写很少的代码和参数的情况下完成随机点的效果从而节省人力和物力。 Monkey优点速度最快编码少甚至不要编码 Monkey缺点随机发生不收控制 2. 安装 Android SDK自带了Monkey工具 配置Android SDK环境变量后即可使用Monkey在真机或移动设备中同样可以使用Monkey 3. Monkey的使用 adb shell monkey [options] [事件计数] 基本配置选项例如设置事件数量操作约束例如对指定App进行测试事件类型和频率例如提高点击事件发生频率调试选项包括一些其他参数 4. money常用命令 对所有包进行随机操作adb shell monkey [事件次数]对指定包进行随机操作adb shell monkey -p [包名] [事件次数] -p指定包名参数 随机种子adb shell monkey -p [包名] -s [种子值] [事件次数] -s时间种子参数参数说明随机种子可以让每次生成的随机事件都一样的。比如说我上一次生成了80个点击事件那么下一次很有可能生成了80个滑动事件如果想让每次生成随机的事件都是一样的那么可以加上随机种子参数。Monkey内部有一个算法可以根据20计算出固定的随机时间比如说我第一次 -s 20 80可能生成了80个点击事件那么下一次再使用 -s 20 80他还会生成和之前一样的80个点击事件。 详细日志adb shell monkey -p [com.xueqiu.android] -vv -s [20] [100] -vv详细monkey日志 时间延迟adb shell monkey -p [com.xueqiu.android] -vv --throttle [延迟时间毫秒] [事件次数] --throttle延迟时间参数 事件百分比adb shell monkey -p [com.xueqiu.android] -vv [options:事件类型] [百分比:1~100] [总事件次数] 说明例如 --pct-touch 10 将触摸事件的百分比提高到10% 5. 常用事件类型参数 触摸事件例如点击--pct-touch动作事件例如直线滑动--pct-motion轨迹时间例如移动点击曲线滑动--pct-trackball主要导航事件例如退回按键菜单按键--pct-majornav 6. Monkey使用参考 monkey -h usage: monkey [-p ALLOWED_PACKAGE [-p ALLOWED_PACKAGE] ...][-c MAIN_CATEGORY [-c MAIN_CATEGORY] ...][--ignore-crashes] [--ignore-timeouts][--ignore-security-exceptions][--monitor-native-crashes] [--ignore-native-crashes][--kill-process-after-error] [--hprof][--pct-touch PERCENT] [--pct-motion PERCENT][--pct-trackball PERCENT] [--pct-syskeys PERCENT][--pct-nav PERCENT] [--pct-majornav PERCENT][--pct-appswitch PERCENT] [--pct-flip PERCENT][--pct-anyevent PERCENT] [--pct-pinchzoom PERCENT][--pct-permission PERCENT][--pkg-blacklist-file PACKAGE_BLACKLIST_FILE][--pkg-whitelist-file PACKAGE_WHITELIST_FILE][--wait-dbg] [--dbg-no-events][--setup scriptfile] [-f scriptfile [-f scriptfile] ...][--port port][-s SEED] [-v [-v] ...][--throttle MILLISEC] [--randomize-throttle][--profile-wait MILLISEC][--device-sleep-time MILLISEC][--randomize-script][--script-log][--bugreport][--periodic-bugreport][--permission-target-system]android studio 官方文档 CategoryOptionOptionGeneral--helpPrints a simple usage guide.-vEach -v on the command line will increment the verbosity level. Level 0 (the default) provides little information beyond startup notification, test completion, andfinal results. Level 1 provides more details about the test as it runs, such as individual events being sent to your activities. Level 2 provides more detailed setup information such as activities selected or not selected for testing.Events-s seedSeed value for pseudo-random number generator. If you re-run the Monkey with the same seed value, it will generate the same sequence of events.--throttle millisecondsInserts a fixed delay between events. You can use this option to slow down the Monkey. If not specified, there is no delay and the events are generated as rapidly as possible.--pct-touch percentAdjust percentage of touch events. (Touch events are a down-up event in a single place on the screen.)--pct-motion percentAdjust percentage of motion events.(Motion events consist of a down event somewhere on the screen, a series of pseudo-randommovements, and an up event.)--pct-trackball percentAdjust percentage of trackball events.(Trackball events consist of one or more random movements, sometimes followed by a click.)--pct-nav percentAdjust percentage of “basic” navigation events.(Navigation events consist of up/down/left/right, as input from a directional input device.)--pct-majornav percentAdjust percentage of “major” navigation events.(These are navigation events that will typically cause actions within your UI, such asthe center button in a 5-way pad, the back key, or the menu key.)--pct-syskeys percentAdjust percentage of “system” key events.(These are keys that are generally reserved for use by the system, such as Home, Back, Start Call,End Call, or Volume controls.)--pct-appswitch percentAdjust percentage of activity launches. At random intervals, the Monkey will issue a startActivity() call, as a way of maximizingcoverage of all activities within your package.--pct-anyevent percentAdjust percentage of other types of events. This is a catch-all for all other types of events such as keypresses, other less-usedbuttons on the device, and so forth.Constraints-p allowed-package-nameIf you specify one or more packages this way, the Monkey willonlyallow the systemto visit activities within those packages. If your application requires access to activities inother packages (e.g. to select a contact) you’ll need to specify those packages as well.If you don’t specify any packages, the Monkey will allow the system to launch activitiesin all packages. To specify multiple packages, use the -p option multiple times — one -p option per package.-c main-categoryIf you specify one or more categories this way, the Monkey willonlyallow the system to visit activities that are listed with one of the specified categories. If you don’t specify any categories, the Monkey will select activities listed with the categoryIntent.CATEGORY_LAUNCHER or Intent.CATEGORY_MONKEY. To specify multiple categories, use the -coption multiple times — one -c option per category.Debug--dbg-no-eventsWhen specified, the Monkey will perform the initial launch into a test activity, butwill not generate any further events.For best results, combine with -v, one or more package constraints, and a non-zero throttle to keep the Monkeyrunning for 30 seconds or more. This provides an environment in which you can monitor packagetransitions invoked by your application.--hprofIf set, this option will generate profiling reports immediately before and afterthe Monkey event sequence.This will generate large (~5Mb) files in data/misc, so use with care. SeeTraceviewfor more informationon trace files.--ignore-crashesNormally, the Monkey will stop when the application crashes or experiences any type of unhandled exception. If you specify this option, the Monkey will continue to send events tothe system, until the count is completed.--ignore-timeoutsNormally, the Monkey will stop when the application experiences any type of timeout error suchas a “Application Not Responding” dialog. If you specify this option, the Monkey will continue to send events to the system, until the count is completed.--ignore-security-exceptionsNormally, the Monkey will stop when the application experiences any type of permissions error,for example if it attempts to launch an activity that requires certain permissions. If you specifythis option, the Monkey will continue to send events to the system, until the count is completed.--kill-process-after-errorNormally, when the Monkey stops due to an error, the application that failed will be leftrunning. When this option is set, it will signal the system to stop the process in which the erroroccurred.Note, under a normal (successful) completion, the launched process(es) are not stopped, andthe device is simply left in the last state after the final event.--monitor-native-crashesWatches for and reports crashes occurring in the Android system native code. If --kill-process-after-error is set, the system will stop.--wait-dbgStops the Monkey from executing until a debugger is attached to it.
http://www.dnsts.com.cn/news/250137.html

相关文章:

  • 自已能做网站建设吗东莞网站建设优化推广
  • 哈尔滨网站设计公司最新营销模式有哪些
  • 用python做网站的多吗客户管理系统服务
  • 做的网站怎么上传到网上运行沈阳做网站公司有哪些
  • 郑州网站制作郑州网站制作站长工具国产2022
  • 泰州高端网站建设如何收费软件公司简介模板100字
  • 新闻聚合网站怎么做太平洋建设集团有限公司网站
  • 诚讯通网站兼职小时工
  • 个人 邮箱 含网站 域名怎么自己制作微信小程序
  • 建网站安全高端大气的网络公司名称
  • 网站建设业务怎么做甘肃省seo关键词优化
  • 福建省城市建设厅网站做的最好的视频网站
  • 做游戏网站赚钱吗北京网站开发哪家好
  • 如何优化网站内部链接seo网站内部优化方案
  • 兰溪做网站哪家好全屋定制设计培训哪里有
  • 有域名了怎么建设网站关键词优化的价格查询
  • 如何让网站显示404seo的内容有哪些
  • 网站建设安全规范基于vue的开源cms
  • 大连网站哪家做的好?西安行业网站建设
  • 做企业宣传片的网站网站建设网络推广代理公司
  • 江苏省建设考试网站做全网营销型网站建设
  • 网站推广如何做的电子商务网站建设教程试卷
  • 网站建设用到的算法鞍山网站设计制作
  • 微信商城怎么开商城网站的优化是什么
  • 怎么建设一个人自己网站做网站记者的出路是什么
  • cms建站系统免费广东网站设计公司电话
  • 网站百度指数分析做博客网站怎么赚钱吗
  • 中交建设集团网站新闻品牌建设完整版
  • 无锡网站建设咨询做宣传网站需要多少钱
  • 局域网内网站建设wordpress noinput