摘要: 使用identifier按照index查询元素: 假设identifier都是back 在identifier对应多个元素时,按照index点击identifier app.images是所有identifier为back的图片,可以替换成任何element type let app = XCUIA 阅读全文
posted @ 2021-07-13 17:19 Teapot- 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 做UI自动化测试的时候可能需要判断当前页面是否有浮层,如果有的话可能需要针对浮层页面作一些特殊的处理 首先,通过app.debugdescription()观察有浮层和没有浮层的ui树有什么特点 由于不方便把UI树直接展示在博客里,用lookin里的层级图简单表示一下,有兴趣的可以自己再lldb或者 阅读全文
posted @ 2021-02-17 23:47 Teapot- 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 先定义点击函数tapCoordinate extension XCUIApplication { func tapCoordinate(at point: CGPoint) { let normalized = coordinate(withNormalizedOffset: .zero) let 阅读全文
posted @ 2021-02-08 21:09 Teapot- 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 记录一下使用Jmeter在一次线程里需要多次调用同一个参数时的拼接方法 在对创建、编辑等接口使用Jmeter进行性能、稳定性测试时,需要造多个名称相同,编号不同的参数。 例如:productName参数,对应字段分别为testCreate001、testCreate002、testCreate003 阅读全文
posted @ 2020-01-10 11:26 Teapot- 阅读(1316) 评论(1) 推荐(0) 编辑