def test_api(self):
     ls = read_excels(Element.API_FILES)[0]  #读取用例excel,得到一个列表
     token = self.token  #得到token
     Config().config_req(ls, token)  #将包含用例的列表和token传入请求模块config_req
Example #2
0
 def test_api(self):
     ls = read_excel(Element.API_FILE)
     if BaseIni(Element.OPEN_PICT).read_ini():
         Config().config_req_pict(ls)
     else:
         Config().config_req(ls)
Example #3
0
 def test_api(self):
     ls = read_excel(Element.API_FILE)
     Config(2).config_req(ls)
Example #4
0
 def test_api(self):
     ls = read_excels_data(Element.API_FILES)#读取用例excel,得到一个列表
     token = self.token#得到token                                                  ------------ 注:目前只支持JWT
     Config().config_req(ls, token)#将包含用例的列表和token传入请求模块config_req