05 2021 档案

摘要:1、官网下载链接:https://dev.mysql.com/downloads/mysql/ 选择64位点击,往下滑动,点击免登录下载 2、解压到你安装软件的路径 3、新建my.ini,初始化配置文件,复制粘贴以下内容到my.ini,记得更改安装路径 [mysql] # 设置mysql客户端默认字 阅读全文
posted @ 2021-05-31 18:05 SpriteGirl 阅读(249) 评论(0) 推荐(0)
摘要:1、深网 deep Web 容易采集,网络的一部分 2、暗网 dark Web(Darknet/dark Internet) 它们也建立在已有的网络基础上,但是使用 Tor 客户端,带有运行在 HTTP 之上的新协议,提供了一个信息交换的安全隧道。 3、浅网 surface Web 浅网是互联网上搜 阅读全文
posted @ 2021-05-31 15:12 SpriteGirl 阅读(120) 评论(0) 推荐(0)
摘要:常用符号 * 匹配前面的字符、子表达式或括号里的字符 0 次或多次 + 匹配前面的字符、子表达式或括号里的字符至少1 次 [] 匹配任意一个字符(相当于“任选一个”) () 表达式编组(在正则表达式的规则里编组会优先运行) {m,n} 匹配前面的字符、子表达式或括号里的字符 m 到n 次(包含 m 阅读全文
posted @ 2021-05-28 16:47 SpriteGirl 阅读(163) 评论(0) 推荐(0)
摘要:1、报错内容: GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually 阅读全文
posted @ 2021-05-28 10:55 SpriteGirl 阅读(485) 评论(0) 推荐(0)
摘要:1、appium调用键盘事件 driver.press_keycode() 括号内填入pc端键盘的代号 2、uiautomator2 3、adb shell input keyevent 代号表: 电话键 控制键 基本 组合键 KEYCODE_CALL 拨号键5 KEYCODE_ENTER 回车键 阅读全文
posted @ 2021-05-27 15:52 SpriteGirl 阅读(256) 评论(0) 推荐(0)
摘要:1、SyntaxError异常 报错内容: SyntaxError: Non-UTF-8 code starting with '\xd2' in file *.py on line 24, but no encoding declared; see http://python.org/dev/pe 阅读全文
posted @ 2021-05-27 15:22 SpriteGirl 阅读(203) 评论(0) 推荐(0)
摘要:报错内容: The instrumentation process cannot be initialized. Make sure the application under test does. 前一分钟Pycharm开心编译成功代码,后一分钟优化完代码再编译运行一直报错,心好累,百度所有方法无 阅读全文
posted @ 2021-05-27 15:19 SpriteGirl 阅读(248) 评论(0) 推荐(0)
摘要:1、工具 Python+Appium Pycharm、雷电模拟器 2、代码 # coding:utf-8 import time from appium import webdriver def start_app(): qqlite_caps = { "platformName": "Androi 阅读全文
posted @ 2021-05-27 14:11 SpriteGirl 阅读(148) 评论(0) 推荐(0)
摘要:1、运行脚本所有代码 pytest 01.py 2、只显示执行结果 pytest -q 01.py 若执行全部通过时 若执行有不通过时 阅读全文
posted @ 2021-05-26 11:45 SpriteGirl 阅读(245) 评论(0) 推荐(0)
摘要:1.安装 pip install pytest 2.插件 测试顺序随机 pip install pytest-randomly 分布式测试 pip install pytest-xdist 出错立即返回 pip install pytest-instafail 3.测试报告 计算pytest执行覆盖 阅读全文
posted @ 2021-05-25 15:06 SpriteGirl 阅读(110) 评论(0) 推荐(0)
摘要:1、weditor界面 1、几种元素定位 d(resourceId="com.tencent.qqlite:id/mainlogindropdown").click() d(className='android.widget.TextView').click() d(text='联系人').clic 阅读全文
posted @ 2021-05-20 19:08 SpriteGirl 阅读(506) 评论(0) 推荐(0)
摘要:1、安装uiautomator2 pip install --pre uiautomator2 pip install pillow 2、初始化,部署相关的守护进程 设备上会安装uiautomator-test.apk python -m uiautomator2 init 3、连接手机 (1)wi 阅读全文
posted @ 2021-05-20 18:59 SpriteGirl 阅读(139) 评论(0) 推荐(0)
摘要:报错代码: AttributeError:module “uiautomator2” has no attribute “connect” 4种解决方法: 1、未安装则点击安装,有时需要重启生效 2、检查模块单词,输入是否正确 3、文件夹或包名是否与导入模块相同,导致导入错误 4、Python环境变 阅读全文
posted @ 2021-05-20 17:44 SpriteGirl 阅读(600) 评论(0) 推荐(0)
摘要:1.需求:循环点击首页6个tag 2.找到一组元素相同点 3.实现 1 # -*- coding:utf-8 -* 2 import time 3 from selenium import webdriver 4 5 driver = webdriver.Chrome() 6 driver.get( 阅读全文
posted @ 2021-05-20 15:42 SpriteGirl 阅读(4368) 评论(0) 推荐(0)
摘要:1、启动Appium,启动检查器会话 2、查看应用包名和启动的activity名称,打开cmd输入命令: aapt dump badging <apk绝对路径>appActivity:launchable-activity: name=''appPackage:package: name='' 3、 阅读全文
posted @ 2021-05-19 18:34 SpriteGirl 阅读(197) 评论(0) 推荐(0)
摘要:1 # coding: utf-8 2 import uiautomator2 as u2 3 4 5 def main(): 6 d = u2.connect('127.0.0.1:5555') 7 # 启动app并获取session 8 app = d.session("<package nam 阅读全文
posted @ 2021-05-19 18:30 SpriteGirl 阅读(94) 评论(0) 推荐(0)
摘要:一、元素定位 find_element_by_id find_element_by_name find_element_by_class_name find_element_by_xpath() find_element_by_css_selector() find_element_by_tag_n 阅读全文
posted @ 2021-05-19 12:09 SpriteGirl 阅读(218) 评论(0) 推荐(0)
摘要:1、打开访达,切换至应用程序 2、选择微信,点击复制 3、点击微信副本,点击显示包内容,启动微信,进入以下路径后打开微信,登录小号即可 /Applications/微信的副本.app/Contents 阅读全文
posted @ 2021-05-18 23:07 SpriteGirl 阅读(297) 评论(0) 推荐(0)
摘要:1、安装chrome,检查谷歌版本,输入:chrome://version/ 知道版本:90.0.4430.93 (正式版本) (arm64) 2、安装chromedriver驱动,将驱动放到系统python安装路径和浏览器安装路径 找到与谷歌版本相近的版本,m1芯片的mac建议下载m1版本 htt 阅读全文
posted @ 2021-05-18 23:02 SpriteGirl 阅读(355) 评论(0) 推荐(0)
摘要:1、方式:python+adb命令 2、实现 1 # -*- coding:utf-8 -* 2 import os 3 4 event_intent = { 5 'video': 'video?vid=**' 6 'living': 'live?uid=**' 7 } 8 11 12 # 退出ap 阅读全文
posted @ 2021-05-18 17:55 SpriteGirl 阅读(293) 评论(0) 推荐(0)
摘要:1、指定包 adb logcat | findstr <packagename> >F:\test.log 2、指定时间 adb logcat -v threadtime -t '08-08 08:08:08.000' >F:\test.log 3、打印到cmd adb logcat 4、打印 信息 阅读全文
posted @ 2021-05-15 00:28 SpriteGirl 阅读(73) 评论(0) 推荐(1)
摘要:1、查看进程pid adb shell ps <packagename> 2、退出应用,进程应也停止,若进程未退出则为bug 阅读全文
posted @ 2021-05-15 00:11 SpriteGirl 阅读(69) 评论(0) 推荐(0)
摘要:夜神模拟器:adb connect 127.0.0.1:62001 逍遥安卓模拟器:adb connect 127.0.0.1:21503 天天模拟器:adb connect 127.0.0.1:6555 海马玩模拟器:adb connect 127.0.0.1:53001 网易MUMU模拟器:ad 阅读全文
posted @ 2021-05-14 23:44 SpriteGirl 阅读(121) 评论(0) 推荐(0)
摘要:1、每个命令都执行,成功或失败都互不影响 a;b 2、与,a执行成功,才会执行b,所有命令都会执行成功 a && b 3、或 a执行成功,退出。a执行失败,才会执行b,直到执行成功一条命令为止 a || b a | b 阅读全文
posted @ 2021-05-14 23:15 SpriteGirl 阅读(970) 评论(0) 推荐(0)
摘要:打开百度网址,输入“ip地址查询”,即可获得本机IP 阅读全文
posted @ 2021-05-14 13:09 SpriteGirl 阅读(588) 评论(0) 推荐(0)
摘要:pip install 模块,直接安装失败时,尝试添加国内镜像内,再失败,尝试添加python安装路径(--target=路径) pip install -i <镜像源url> --trusted-host-域名 如:pip install -i https://pypi.doubanio.com/ 阅读全文
posted @ 2021-05-14 13:03 SpriteGirl 阅读(518) 评论(0) 推荐(0)
摘要:1、pip install pillow报错,需指定Python安装路径,语法如下 pip install --target=d:\python\lib\site-packages pillow 阅读全文
posted @ 2021-05-14 12:59 SpriteGirl 阅读(278) 评论(0) 推荐(0)
摘要:解决方式一:静态分析工具-AXMLPrinter2.jar 1、将apk文件后缀“apk”修改成“zip”等压缩文件 2、解压文件 3、下载AXMLPrinter2.jar,将jar包放在解压文件同一路径下 下载链接: https://pan.baidu.com/s/1SHPWuFL3n2d7MFQ 阅读全文
posted @ 2021-05-14 12:43 SpriteGirl 阅读(228) 评论(0) 推荐(0)
摘要:终端已安装的模块,如Python安装模块uiautomator2,默认路径在python系统安装路径下 Pycharm打开项目导入uiautomator2模块,提示未安装,或者安装提示失败 检查项目编译环境的python环境路径是否一致 修改成一致一般问题可解决 阅读全文
posted @ 2021-05-13 14:23 SpriteGirl 阅读(135) 评论(0) 推荐(0)