当前位置:网站首页>Camera continuous shooting automatic test shell script
Camera continuous shooting automatic test shell script
2022-07-28 15:43:00 【Liu Yiyi】
One :Camera Automatic test of continuous shooting shell Script
touch_X=360touch_X_2=370touch_Y=1111touch_Y_2=1120
The coordinate position of the screen is modified according to the actual situation , Open the pointer position in the developer option to obtain the screen focus coordinates .
sleepTime=5.5 Represents sleep time max_click_count=5000 Maximum hits
The above can be adjusted according to the actual situation !
#start camera
am start com.android.camera2/com.android.camera.CameraLauncher
sleepTime=5.5 #every photo time 1000ms
#x
touch_X=360
touch_X_2=370
#y
touch_Y=1111
touch_Y_2=1120
num=1
#max count
max_click_count=5000
while [ $num -le $max_click_count ]
do
time=$(date +%m-%d--%H:%M:%S)
# input tap $touch_X $touch_Y
input swipe $touch_X $touch_Y $touch_X_2 $touch_Y_2 5000
echo "time:$time take $num photo"
num=$(($num + 1))
sleep $sleepTime
done
num=$(($num - 1))
echo "test end. count $num photos."
Articles you may be interested in :
Android Source code analysis ( One )----- How to quickly master Android Compile the file
Android Source code analysis ( Two )----- How to compile the modified framework Resource file
Android Source code analysis ( 3、 ... and )----- System framework design idea
Android Source code analysis ( Four )-----Android Source code compilation and brushing steps
Android Source code analysis ( 5、 ... and )----- How to design from the perspective of architects Framework frame
边栏推荐
- Easyexcel complex header export (one to many)
- QT refresh UI interface problem
- shell编程规范与变量
- 已拿下华为85亿元屏幕订单?维信诺回应:客户要求保密,无法回复!
- 2. Self narration of open source GPS project hd-gr GNSS
- Stateflow逻辑系统建模
- How many tips do you know about using mock technology to help improve test efficiency?
- PXE网络装机
- 4、主程序和累积中断处理例程实现代码
- Explain the difference set, intersection set and union set of complex type set in detail.Net
猜你喜欢

Tencent interview -- please design a thread pool to implement sequential execution

Self cultivation of programmers

Explain the difference set, intersection set and union set of complex type set in detail.Net

How many of the top ten test tools in 2022 do you master

最小堆提升每次排序的效率

Editor in ArcGIS Pro

FTP文件传输协议

关于word文档中插入的图片只显示下面一部分

ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching

Heap operation
随机推荐
Sharing of award-winning activities: you can get up to iphone13 after using WordPress to build your own blog
Editor in ArcGIS Pro
给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。
PXE network installation
一篇文章了解RSocket协议
全国211院校考研信息汇总整理
1、开源GPS项目HD-GR GNSS的著作者
一波骚操作解决Laya场景编辑器报错问题
Nftscan and nftplay have reached strategic cooperation in the field of NFT data
有奖活动分享:使用WordPress搭建一个专属自己的博客后最高可领取iPhone13
关于word文档中插入的图片只显示下面一部分
Easy start, swagger
8. Realization of real-time data backup and real-time clock function
堆操作
Heap operation
为赴美上市做准备?Arm宣布将剥离物联网服务业务:未来将聚焦芯片底层设计
软件架构与设计(八)-----分布式架构
取组合数问题
华为全球员工总数创新高:19.4万人,研发人员占比近50%
7、实时数据备份和实时时钟相关定义