使用 Sikuli 實現系統級自動化測試(12)

發表于:2017-04-11來源:weixin作者: 馮宇翔點擊數: 標簽:Sikuli
getdata = getdata.decode(UTF-8) print getdata is + getdata reqarr = getdata.split(|) try: resarr = getattr(self.procclass , reqarr[0])(reqarr[1]) except Exception,e: sendstr = 1|run has errors: + str(

getdata = getdata.decode('UTF-8')

print 'getdata is ' + getdata

reqarr = getdata.split('|')

try:

resarr = getattr(self.procclass , reqarr[0])(reqarr[1])

except Exception,e:

sendstr = '1|run has errors:' + str(e)

else:

if resarr[0] == True:

sendstr = '0|' + resarr[1]

else:

sendstr = '1|' + resarr[1]

finally:

if len(sendstr) < 200:

print 'sendstr is ' + sendstr

self.sendresp(sendstr , sock)

except Exception , e:

原文轉自:https://mp.weixin.qq.com/s/XMsmK6kaysG7Y_DUZjnx-Q

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97