예제 #1
0
 def test_stores03(self):
     '''根据门店名称查询门店'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '根据门店名称查询门店')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #2
0
 def test_stores04(self):
     '''查看店铺详情'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '查看店铺详情')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #3
0
 def test_04(self):
     '''根据物品类型查询物品'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '根据物品类型查询物品')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #4
0
 def test_department06(self):
     '''查询部门详情'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '查询部门详情')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #5
0
 def test_11(self):
     '''根据时间查询集团待发货订单'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '查询集团待发货物品详情')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #6
0
 def test_04(self):
     '''查询启用状态的供应商分类'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '查询启用状态的供应商分类')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #7
0
 def test_05(self):
     '''根据物品名称查询部门申购汇总表'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '根据物品名称查询部门申购汇总表')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #8
0
 def test_role05(self):
     '''查询角色权限'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '查询角色权限')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #9
0
 def test_06(self):
     '''查询库存'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '根据供应商查询采购物品分析表')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #10
0
 def test_03(self):
     '''根据供应商所属地区查询供应商'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(
         self.data_list, '根据供应商所属地区查询供应商')
     self.res = requests.request(self.method,
                                 self.url,
                                 data=self.data,
                                 headers=self.headers)
예제 #11
0
 def test_departmenttype02(self):
     '''根据部门分类名称查询'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(self.data_list, '根据部门分类名称查询')
     self.res = requests.request(self.method, self.url, data=self.data, headers=self.headers)
예제 #12
0
 def test_05(self):
     '''查询库存'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(self.data_list, '根据门店查询门店的采购单')
     self.res = requests.request(self.method, self.url, data=self.data, headers=self.headers)
예제 #13
0
 def test_employees08(self):
     '''启用员工'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(self.data_list, '查看员工详情')
     self.res = requests.request(self.method, self.url, data=self.data, headers=self.headers)
예제 #14
0
 def test_employees04(self):
     '''根据员工所属门店查询员工'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(self.data_list, '根据员工所属门店查询员工')
     self.res = requests.request(self.method, self.url, data=self.data, headers=self.headers)
예제 #15
0
 def test_normal02(self):
     '''用户名不存在'''
     self.case_name, self.url, self.method, self.data, self.expect_res = get_test_data(self.data_list, '用户名不存在')
     self.res = requests.request(self.method, self.url, data=self.data, headers=self.headers)