摘要:
转自 https://www.cnblogs.com/liudinglong/p/12846986.html 主要从用例编写规则、用例的前置和后置、参数化、断言、用例执行、失败重运行和报告这几个方面比较unittest和pytest的区别: 阅读全文
摘要:
class A(object): # 属性默认为类属性(可以给直接被类本身调用) num = "类属性" # 实例化方法(必须实例化类之后才能被调用) def func1(self): # self : 表示实例化类后的地址id print("func1") print(self) # 类方法(不需 阅读全文
摘要:
1.首先看app中怎么划分横纵坐标 2.swipe函数 def swipe(self, start_x, start_y, end_x, end_y, duration=None): """Swipe from one point to another point, for an optional 阅读全文