手机自动化找对象的简要方法(未完待续)

#-*- coding:UTF-8 -*- ''' ''' import time from appium import webdriver descried_caps={} descried_caps["unicodeKeyboard"] = "True" descried_caps["resetKeyboard"] = "True" descried_caps['device']='2014813' descried_caps['platformName']='Android' descried_caps['deviceName']='...
2016-04-14 13:20 | 阅读 8865 次 | 评论 0 条

python 发送邮件

import smtplib from email.mime.text import MIMEText from email.MIMEMultipart import MIMEMultipart class SendEmailReporter(object): def SendMail(self,filename): sender = 'mobile@139.com' receiver = ['554646@qq.com','554646@qq.com'] subject = "test report"...
2016-04-12 15:39 | 阅读 9272 次 | 评论 0 条

appium 手机app测试数据分离(2)

import unittest,time from publicfunction import sendEmail n = sendEmail.SendEmailReporter() from publicfunction import PublicFunClass m = PublicFunClass.PublicFunClass() from publicfunction import readXml yang = readXml.denglu1() from publicfunction import sendReport k = sendReport.sendR...
2016-04-12 11:54 | 阅读 9986 次 | 评论 0 条

appium 手机app测试数据分离(1)

#-*- coding:UTF-8 -*- # ''' Created on 2016-4-8 @author: poptest ''' import time from appium import webdriver class PublicFunClass(object): def clickAct(self,getType,getValue): if getType == "id": return lee.find_element_by_id(getValue).click() ...
2016-04-12 11:53 | 阅读 9653 次 | 评论 0 条

appium class代码(封装click动作)

#-*- coding:UTF-8 -*- # ''' Created on 2016-4-8 @author: poptest ''' import time from appium import webdriver class PublicFunClass(object): def clickAct(self,getType,getValue): #将点击动作封装成def if getType == "id": return lee.find_element_by_id(getValue).click...
2016-04-08 21:17 | 阅读 10874 次 | 评论 0 条

appium class代码(参数为变量)

#-*- coding:UTF-8 -*- # ''' Created on 2016-4-8 @author: poptest ''' import time from appium import webdriver class PublicFunClass(object): def addgoodsaddress(self,userName,userTel,userAddr): time.sleep(3) #登陆进去,点击头像、 lee.fin...
2016-04-08 20:22 | 阅读 10408 次 | 评论 0 条

appium class代码(参数为固定值)

#-*- coding:UTF-8 -*- # ''' Created on 2016-4-8 @author: poptest ''' import time from appium import webdriver class PublicFunClass(object): def addgoodsaddress(self): time.sleep(3) #登陆进去,点击头像、 lee.find_element_by_id("com.subje...
2016-04-08 20:04 | 阅读 10853 次 | 评论 0 条

appium 线性代码

#-*- coding:UTF-8 -*- # ''' Created on 2016-4-8 @author: poptest ''' import time from appium import webdriver def addgoodsaddress(): time.sleep(3) #登陆进去,点击头像、 lee.find_element_by_id("com.subject.zhongchou:id/avatar_img").click() time.sleep(2) #点击地址 lee.f...
2016-04-08 18:46 | 阅读 10532 次 | 评论 0 条
浏览2343080次