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

#-*- 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']='...
appium | 2016-04-14 13:20 | 阅读 8939 次 | 评论 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"...
appium | 2016-04-12 15:39 | 阅读 9343 次 | 评论 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...
appium | 2016-04-12 11:54 | 阅读 10061 次 | 评论 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() ...
appium | 2016-04-12 11:53 | 阅读 9733 次 | 评论 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...
appium | 2016-04-08 21:17 | 阅读 10960 次 | 评论 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...
appium | 2016-04-08 20:22 | 阅读 10485 次 | 评论 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...
appium | 2016-04-08 20:04 | 阅读 10983 次 | 评论 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...
appium | 2016-04-08 18:46 | 阅读 10602 次 | 评论 0 条

mysql

----------------------------------- create table biao1( stid smallint(4) zerofill primary key auto_increment, stname varchar(20), sex char(5), area char(50) )charset utf8 insert into stubase(stid,stname,sex,area) values (0001,"李小龙","男","中国香港"); insert into biao1(stid,s...
mysql | 2016-04-02 15:29 | 阅读 10999 次 | 评论 0 条
浏览2354300次