if expect_step!= None:
print("获取的预期步骤是: ",expect_step)
expect_result=getattr(action_method,expect_step)
print("获取的预期元素是: ",expect_key)
result=expect_result(expect_key,expect_module)
print("result 的值是: ",result)
if result:
print("i 的值是: ",i)
data.get_write_value(i,"pass")
else:
data.get_write_value(i,"fail")
def get_write_value(self,row,value):
write_value=self.opera_excel.write_value(row,value)
return write_value
`
def write_value(self,row,value):
read_value=self.excel
write_data=copy(read_value)
write_save=write_data.get_sheet(0)
write_save.write(row,8,value)
print(self.file_path)
write_data.save(self.file_path)