上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 一、定义fixture方法 阅读全文
posted @ 2019-04-18 15:59 jiguanghover 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 在客户端登录或者退出登录的时候会有吐司提示,因此需要抓取来验证用户登录成功或者注销成功; 在获取toast之前需要添加 desired_caps['automationName'] = 'Uiautomator2' , 否则无法获取到toast 调用toast方法一: 阅读全文
posted @ 2019-04-12 14:54 jiguanghover 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 一、首先创建测试套件 # -*- coding:utf-8 -*-from __future__ import print_functionimport pytestimport allure class TestAppSuite(object): pass if __name__ == '__ma 阅读全文
posted @ 2019-03-29 17:15 jiguanghover 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: 问题一、AttributeError: module 'pytest' has no attribute 'allure'解决方法:pip3 uninstall pytest-allure-adaptorpip3 install allure-pytest 阅读全文
posted @ 2019-03-28 15:05 jiguanghover 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 最近难得有时间,整理一下目前常用的自动化测试框架的原理,在搬运工的基础上总结一下,便于理解; 1) Appium原理 Appium是 c/s模式的appium是基于 webdriver 协议添加对移动设备自化api扩展而成的webdriver 是基于 http协议的,第一连接会建立个 session 阅读全文
posted @ 2019-03-22 16:10 jiguanghover 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: 一、 Appium iOS API 1.1) WebDriverWait(self.driver, 10).until( EC.presence_of_element_located((AppiumBy.IOS_PREDICATE, "type == 'XCUIElementTypeStaticTe 阅读全文
posted @ 2019-01-31 17:35 jiguanghover 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1. driver.findElement(MobileBy.AndroidUIAutomator("邀请")).click();2. driver.findElementById("resourceId").click();3. import io.appium.java_client.remot 阅读全文
posted @ 2019-01-30 16:47 jiguanghover 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1.判断按钮状态 if d(resourceId="id",enabled=False): #判断当前按钮是否为未激活状态,为True则为激活状态2.获取toast提示语 d.toast.get_message(5.0, default="")3. 获取元素的属性 ele = d(resourceI 阅读全文
posted @ 2019-01-29 14:43 jiguanghover 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 问题一、java.lang.NoClassDefFoundError: org/openqa/selenium/remote/SessionNotFoundExceptionCaused by: java.lang.ClassNotFoundException: org.openqa.seleniu 阅读全文
posted @ 2019-01-04 09:28 jiguanghover 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: 接口地址: https://m.xxxx.com/api/front/activity/xs/session 打开postman的headers, 然后复制fiddler中接口的cookie,设置cookie的value值为headers中的value; 阅读全文
posted @ 2018-08-09 16:14 jiguanghover 阅读(163) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页