当前位置:网站首页>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
边栏推荐
- Summary and arrangement of postgraduate entrance examination information of 211 colleges and universities nationwide
- Huawei has a record number of employees worldwide: 194000, with research and development personnel accounting for nearly 50%
- 爬虫入门(1)——requests(1)
- 跟我学Rx编程——Concat
- 最小堆提升每次排序的效率
- Tencent interview -- please design a thread pool to implement sequential execution
- Five connection modes of QT signal and slot
- 关闭独立窗口对其他窗口同时关闭的问题
- 2022年最火的十大测试工具,你掌握了几个
- 1200 times faster! MIT develops a new generation of drug research and development AI, and suspends the old model
猜你喜欢

shell编程规范与变量

Vs dynamic library debugging

Getting started with crawlers (1) -- requests (1)

Self cultivation of programmers

Easyexcel complex header export (one to many)

How to obtain and embed go binary execution package information

MIT pointed out that the public pre training model should not be used indiscriminately

Flowable workflow all business concepts

About how Simulink generates model coverage reports

PXE network installation
随机推荐
Flowable workflow all business concepts
Close independent windows and close other windows at the same time
Pytorch - sequential and modulelist
软件架构与设计(四)-----数据流架构
关闭独立窗口对其他窗口同时关闭的问题
How many tips do you know about using mock technology to help improve test efficiency?
[delete specified number leetcode]
Set structure byte alignment
VS使用技巧
爬虫入门(1)——requests(1)
21、电文处理任务定义
Tencent interview -- please design a thread pool to implement sequential execution
Framework定制系列(一)-----SystemUI NavigationBar导航栏上滑返回Launcher
Try... Except exception handling statement (6)
Vs dynamic library debugging
Baidu proposes a dynamic self distillation method to realize dense paragraph retrieval by combining interactive model and double tower model
About how Simulink generates model coverage reports
在OBS上进行H265推流
1. Author of the open source GPS project hd-gr GNSS
Return the two subscripts of the array according to the input target.