#-*- 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']='...
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"...
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...
#-*- 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()
...
#-*- 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...
#-*- 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...
#-*- 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...
#-*- 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...