上一页 1 ··· 4 5 6 7 8
摘要: 最近难得有时间,整理一下目前常用的自动化测试框架的原理,在搬运工的基础上总结一下,便于理解; 1) Appium原理 Appium是 c/s模式的appium是基于 webdriver 协议添加对移动设备自化api扩展而成的webdriver 是基于 http协议的,第一连接会建立个 session 阅读全文
posted @ 2019-03-22 16:10 jiguanghover 阅读(1538) 评论(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 阅读(183) 评论(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 阅读(169) 评论(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 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 问题一、java.lang.NoClassDefFoundError: org/openqa/selenium/remote/SessionNotFoundExceptionCaused by: java.lang.ClassNotFoundException: org.openqa.seleniu 阅读全文
posted @ 2019-01-04 09:28 jiguanghover 阅读(1071) 评论(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 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 今天安装Ubuntu 14.0.4,因为需要使用python3,所以就直接配置如下:sudo rm /usr/bin/pythonsudo ln -s /usr/bin/python3.5 /usr/bin/python因为把默认的环境配置成了python3.5,导致软件中心无法打开,因此需要使用以 阅读全文
posted @ 2017-12-03 23:29 jiguanghover 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8import os,sysimport unittestfrom appium import webdriverimport timefrom selenium.webdriver.common.by import Byfrom selenium.webdriver.sup... 阅读全文
posted @ 2015-11-15 16:03 jiguanghover 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: 有段时间没有使用python编写测试用例了,很长时间以来,感觉appium这个测试工具确实不错,今天又重新拿起来,分享一下自己学习的一些用例,欢迎大家一起交流、学习!1.登录客户端#coding=utf-8import osimport unittestfrom appium import w... 阅读全文
posted @ 2015-11-14 22:07 jiguanghover 阅读(2368) 评论(2) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8