上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: 1. pc端安装chrome浏览器 2.安装adb扩展 3.pc端通过adb能识别出手机 4.使用adb扩展, 点击View inspection Targets进入chrome://inspect/#devices 5. 点击inspect 点击后出现如下页面 阅读全文
posted @ 2020-05-15 21:37 ilovetesting 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1、如何处理 android 权限弹窗 # 处理 android 权限弹窗 while True: for i in range(6): if '允许' in driver.page_source: driver.switch_to.alert.accept() time.sleep(1) brea 阅读全文
posted @ 2020-05-15 14:38 ilovetesting 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1. 安装Node.js 2.使用npm安装appium,npm install -g appium 3. 安装appium client 端, pip install Appium-Python-Client ( python 版) 4. 命令行启动 appium https://www.cnbl 阅读全文
posted @ 2020-05-14 22:37 ilovetesting 阅读(112) 评论(0) 推荐(0) 编辑
摘要: class Node: def __init__(self, value=None, next=None): self.value = value self.next = next class LinkedList(object): def __init__(self): # 初始化链表时, 创建一 阅读全文
posted @ 2020-04-28 08:46 ilovetesting 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 归并排序 归并 假设现在有一个列表分两段有序, 如何将其合成为一个有序列 思路: 双指针i, j 1.分别从两段从左到右进行比较, 谁小则移动指针, 并把这个较小的数存入一个临时list中 2.遍历完成后可能存在有个有序段未到末端, 需要再使用一个while 3.将排好序的temp写后原list中 阅读全文
posted @ 2020-04-19 21:41 ilovetesting 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 字典的本质: 其内部是一个数组 将 key 通过一个hash function 计算出一个整数, 让后将计算出一个整数%数组长度求余 得出index, 将value存入该index对应的地址中 set 只有key, 没有value的dict. 对于dict, 所有的操作的时间复杂度都是O(1), 但 阅读全文
posted @ 2020-04-12 22:42 ilovetesting 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1. 偶数字串的数量 给定一串0-9的数字字符串, 计算在将整数转换为偶数时的字串数量 input: str = ‘1234’ output:6 有2 12 34 234 1234 这6个字符串,他们是偶数 题解: 找出偶数所在的位置, 则之前的字符都能和字符可以构成偶数, 有 i + 1 个 注意 阅读全文
posted @ 2020-04-08 09:09 ilovetesting 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 以sentos为例 安装chrome yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm -y 安装chromedriver https://npm.taobao.org/mir 阅读全文
posted @ 2020-03-29 22:17 ilovetesting 阅读(1210) 评论(0) 推荐(0) 编辑
摘要: import unittest # 用猴子补丁的方式解决 testcase 按定义的顺序执行用例 from unittest.loader import TestLoader # 自定义一个getTestCaseNames方法, 替换TestLoader中的getTestCaseNames方法 de 阅读全文
posted @ 2020-03-24 20:16 ilovetesting 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 命令行格式: adb shell am instrument -w -r [-e ] 执行器 获取instrumentation执行器 在命令行执行adb shell pm list instrumentation, 获取自己需要执行的instrumentation执行器 执行全部用例 adb sh 阅读全文
posted @ 2020-03-23 19:55 ilovetesting 阅读(2599) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页