ant; MARGIN: 10px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; WORD-BREAK: break-all; PADDING-TOP: 0px"> self.close()
print('获取Case个数失败')
exit()
def get_nrows(self, iSheet):
try:
sht = self.book.Worksheets(iSheet)
return sht.UsedRange.Rows.Count
except:
self.close()
print('获取nrows失败')
exit()
def get_ncols(self, iSheet):
文章来源于领测软件测试网 https://www.ltesting.net/
try:
sht = self.book.Worksheets(iSheet)
return sht.UsedRange.Columns.Count
except:
self.close()
print('获取ncols失败')
exit()
def del_testrecord(self, suiteid):
try:
#为提升性能特别从For循环提取出来
nrows=self.get_nrows(suiteid)+1
ncols=self.get_ncols(suiteid)+1
begincol=self.argbegin+self.argcount
#提升性能
sht = self.book.Worksheets(suiteid)
for row in range(self.casebegin, nrows):
for col in range(begincol, ncols):
str=self.read_data(suiteid, row, col)
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073