当前位置:网站首页>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
边栏推荐
- Vs usage skills
- File and directory operations (5)
- monkey压力测试
- 华为全球员工总数创新高:19.4万人,研发人员占比近50%
- PXE network installation
- Tencent interview -- please design a thread pool to implement sequential execution
- Regular expression (4)
- Pytorch - autograd automatic differentiation
- Give you a linked list, delete the penultimate node of the linked list, and return the head node of the linked list.
- Easy start, swagger
猜你喜欢
随机推荐
如何通过adb打开和关闭飞行模式
NFTScan 与 NFTPlay 在 NFT 数据领域达成战略合作
Getting started with crawlers (1) -- requests (1)
8、实时数据备份和实时时钟功能实现
软件架构与设计(五)-----以数据为中心的架构
Editor in ArcGIS Pro
Stateflow logic system modeling
Give you a linked list, delete the penultimate node of the linked list, and return the head node of the linked list.
Vs usage skills
The difference between character array and string
ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching
2022年最火的十大测试工具,你掌握了几个
Summary and arrangement of postgraduate entrance examination information of 211 colleges and universities nationwide
4. Main program and cumulative interrupt processing routine implementation code
3. Basic constants and macro definitions
22. Realization of message processing task
Explain the difference set, intersection set and union set of complex type set in detail.Net
已拿下华为85亿元屏幕订单?维信诺回应:客户要求保密,无法回复!
try...except异常处理语句(6)
给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。









