ant; MARGIN: 10px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; WORD-BREAK: break-all; PADDING-TOP: 0px"> #清除實際結果[]
startpos = str.find('[')
if startpos>0:
str = str[0:startpos].strip()
self.write_data(suiteid, row, col, str, OK_COLOR)
else:
#提升性能
sht.Cells(row, col).Interior.Color = OK_COLOR
#清除TestResul列中的測試結果,設置為NT
self.write_data(suiteid, row, self.argbegin+self.argcount+1, ' ', OK_COLOR)
self.write_data(suiteid, row, self.resultCol, 'NT', NT_COLOR)
except:
self.close()
print('清除數據失敗')
exit()
#執行調用
def HTTPInvoke(IPPort, url):
conn = httplib.HTTPConnection(IPPort)
conn.request("GET", url)
rsps = conn.getresponse()
data = rsps.read()
conn.close()
return data
#獲取用例基本信息[Interface,argcount,[ArgNameList]]
def get_caseinfo(Data, SuiteID):
caseinfolist=[]
sInterface=Data.read_data(SuiteID, 1, 2)
argcount=int(Data.read_data(SuiteID, 2, 2))
#獲取參數名存入ArgNameList
ArgNameList=[]
for i in range(0, argcount):
ArgNameList.append(Data.read_data(SuiteID, Data.titleindex, Data.argbegin+i))
caseinfolist.append(sInterface)
文章來源于領測軟件測試網 http://www.kjueaiud.com/