![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
dyh@xt
这个作者很懒,什么都没留下…
展开
-
页面UI测试
页面UI测试原创 2022-10-19 16:50:02 · 731 阅读 · 0 评论 -
内存使用占比存储到csv中加上时间
使用占比原创 2022-10-14 11:20:59 · 135 阅读 · 0 评论 -
shell检查Android设备连接状态
shell 检查连接状态原创 2022-10-13 14:52:45 · 604 阅读 · 0 评论 -
查看文件大小是否与预产期值一致
判断文件大小与预期值是否一致转载 2022-09-28 14:45:10 · 59 阅读 · 0 评论 -
shell获取内存使用情况
shell获取内存使用情况原创 2022-09-13 11:42:43 · 1232 阅读 · 0 评论 -
【无标题】
页面UI自动化原创 2022-06-21 16:53:04 · 77 阅读 · 0 评论 -
问卷答题自动化
#!/bin/bash#uiautomator获取页面元素,元素是否在该页,判断进行点击事件测试#mkdir ip132#adb -s $ip134 shell am start -n com.guoming.health.device.voiceskill/com.guoming.health.device.voiceskill.video.ui.ConstactsHomeActivityecho "输入1为刷卡模式"echo "输入2为手机号"echo "输入3为极简模式"read -p原创 2022-01-11 11:40:17 · 122 阅读 · 0 评论 -
问卷点击题目提交答案
#!/bin/bash#uiautomator获取页面元素,元素是否在该页,判断进行点击事件测试ip151=10.66.209.151#mkdir ip132#adb -s $ip134 shell am start -n com.guoming.health.device.voiceskill/com.guoming.health.device.voiceskill.video.ui.ConstactsHomeActivityecho “输入1为刷卡模式”echo “输入2为手机号”echo原创 2022-01-11 11:33:01 · 284 阅读 · 0 评论 -
设备重启测试:
设备重启测试:#!/bin/bash#需usb连接进行测试read -p “输入重启次数:” NUMi=1while [ $i -le $NUM ]doadb rebootlet i++sleep 60sdone原创 2021-12-27 17:53:21 · 255 阅读 · 0 评论 -
查看cup,mem,act,process,temp,bugreport
#!/bin/bash#输入read值来num-i=决定执行多少次echo “1,meminfo”echo “2,cpuinfo”echo “3,activity oom”echo “4,activityprocesses”echo “5,temp”echo “6,bugreport”read -p “请您输入1-6任意字符:” NUMfunction meminfo(){read numread iecho “$num”while [ $i -le KaTeX parse er原创 2021-12-27 17:50:21 · 351 阅读 · 0 评论 -
alias常用命令
$ aliasalias ac=‘adb connect’alias act=‘adb shell dumpsys window windows | findstr “mCurrent”’alias ad=‘adb devices’alias add=‘adb disconnect’alias alog=‘adb logcat -c &&adb logcat -v threadtime’alias am=‘adb shell am monitor’alias as=‘adb s原创 2021-12-27 17:49:31 · 1375 阅读 · 0 评论 -
shell 自动化,判断元素是否在该页面,进行点击测试
#!/bin/bash#uiautomator获取页面元素,元素是否在该页ip151=10.66.209.151#mkdir ip132adb -s $ip134 shell am start -n com.guoming.health.device.voiceskill/com.guoming.health.device.voiceskill.video.ui.ConstactsHomeActivityfunction ip134(){#需要确保没有弹窗出现adb -s $ip132 sh原创 2021-12-27 17:46:38 · 1467 阅读 · 0 评论 -
数据备份shell
#!/bin/bashwhile getopts ":u:p:" OPT;do case $OPT in u) user=$OPTARG ;; p) password=$OPTARG ;; *) echo "Usage: mysqlbackup -u username -p passowrd" ;; ...原创 2020-08-28 10:43:29 · 145 阅读 · 0 评论 -
类Linux,cygwin的安装
cygwin安装地址:https://cygwin.com/install.html下载后安装步骤安装就可以了原创 2020-08-27 13:16:40 · 90 阅读 · 0 评论