Linux运行UI自动化,Linux平台UI自动化测试-环境搭建

1 # 镜像环境:UOS

2

3 # 安装pip3

4 sudo apt-get install python3-pip

5 # 安装pyautogui和依赖包

6

7 sudo pip3 install pillow

8 sudo pip3 install python3-xlib

9 sudo apt-get install scrot

10 sudo apt-get install python3-tk

11 sudo apt-get install python3-dev

12 sudo pip3 install pyautogui -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

13

14 # 安装dogtail依赖包

15 sudo apt-get install python3-pyatspi

16 # 安装dogtail

17 sudo pip3 install dogtail

18

19 # 安装其他依赖包

20 sudo pip3 install ddt

21 sudo pip3 install BeautifulReport

22 sudo pip3 install xlrd

23 sudo pip3 install PyYAML

24 sudo pip3 install paramiko

25

26 # 安装图像识别的库

27 sudo pip3 install pyscreenshot

28 sudo pip3 install pytesseract

29 sudo pip3 install opencv-python==4.2.0.34 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

30 sudo apt-get install tesseract-ocr

31 sudo apt-get install tesseract-ocr-eng

32 sudo apt-get install tesseract-ocr-chi-sim

来源:https://www.cnblogs.com/mikigo/p/13226174.html

表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页