import sys
sys.path.append("E:/LLX/demo1")
from base.runmethod import RunMethod
from dataaa.get_data import GetData
class RunTest:
def __init__(self):
self.run_method = RunMethod()
self.data = GetData()
#程序执行的入口
def go_on_run(self):
res = None
rows_count = self.data.get_case_lines()
for i in range(1,rows_count):
url = self.data.get_request_url(i)
method = self.data.get_request_method(i)
is_run = self.data.get_is_run(i)
data = self.data.get_data_for_json(i)
heard = self.data.is_header(i)
if is_run:
#method,url,data=None,header=None,
res = self.run_method.run_main(method,url,data,heard)
print(res)
if __name__ == '__main__':
run = RunTest()
去除了retuen,直接print
print(res)打印出来的全都是None呢