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)
文章来源于领测软件测试网 https://www.ltesting.net/