Commit 7e5da2040fd813a0f6b1fda4c975c8b5b2cc8a6f
1 parent
378b7645
时间查询
Showing
1 changed file
with
19 additions
and
24 deletions
testcase/test_listPage/test_searchByAttrName.py
@@ -40,9 +40,9 @@ class test_listPage(unittest.TestCase): | @@ -40,9 +40,9 @@ class test_listPage(unittest.TestCase): | ||
40 | 40 | ||
41 | def test_searchByNumber(self): | 41 | def test_searchByNumber(self): |
42 | """进门单列表-查询:收费单号查询测试""" | 42 | """进门单列表-查询:收费单号查询测试""" |
43 | - cre_res = zcA.create_jmsf(host=self.gatewayHost,carTypeName="板车",plate="川B00001",keyword="雪莲果", | ||
44 | - userName="ty_test",transactionName="沈阳2号",newWeight=20, | ||
45 | - depName="接车部",goodsTagName="货物标签测试",proveName="绿色蔬菜") | 43 | + plate = f"川A{random.randint(10000, 99999)}" |
44 | + goods = "雪莲果" | ||
45 | + cre_res = zcA.create_jmsf(host=self.gatewayHost,plate=plate,keyword=goods) | ||
46 | number = cre_res.json()["data"]["number"] | 46 | number = cre_res.json()["data"]["number"] |
47 | resListPage = eFBL.listPage(host=self.jmsfHost,attrValue=number) | 47 | resListPage = eFBL.listPage(host=self.jmsfHost,attrValue=number) |
48 | print(resListPage.json()) | 48 | print(resListPage.json()) |
@@ -51,11 +51,9 @@ class test_listPage(unittest.TestCase): | @@ -51,11 +51,9 @@ class test_listPage(unittest.TestCase): | ||
51 | 51 | ||
52 | def test_searchByPlate(self): | 52 | def test_searchByPlate(self): |
53 | """进门单列表-查询:车牌号查询测试""" | 53 | """进门单列表-查询:车牌号查询测试""" |
54 | - plate = f"川A{random.randint(10000,99999)}" | ||
55 | - print("create plate number: ",plate) | ||
56 | - cre_res = zcA.create_jmsf(host=self.gatewayHost,carTypeName="板车",plate=plate,keyword="雪莲果", | ||
57 | - userName="ty_test",transactionName="沈阳2号",newWeight=20, | ||
58 | - depName="接车部",goodsTagName="货物标签测试",proveName="绿色蔬菜") | 54 | + plate = f"川A{random.randint(10000, 99999)}" |
55 | + goods = "雪莲果" | ||
56 | + cre_res = zcA.create_jmsf(host=self.gatewayHost,plate=plate,keyword=goods) | ||
59 | resListPage = eFBL.listPage(host=self.jmsfHost,attrName="车号",attrValue=plate) | 57 | resListPage = eFBL.listPage(host=self.jmsfHost,attrName="车号",attrValue=plate) |
60 | print(resListPage.json()) | 58 | print(resListPage.json()) |
61 | assert resListPage.json()["rows"][0]["plate"] == plate,"按照车牌号查询失败" | 59 | assert resListPage.json()["rows"][0]["plate"] == plate,"按照车牌号查询失败" |
@@ -70,11 +68,11 @@ class test_listPage(unittest.TestCase): | @@ -70,11 +68,11 @@ class test_listPage(unittest.TestCase): | ||
70 | 68 | ||
71 | def test_searchByTollman(self): | 69 | def test_searchByTollman(self): |
72 | """进门单列表-查询:收费员查询测试""" | 70 | """进门单列表-查询:收费员查询测试""" |
73 | - cre_res = zcA.create_jmsf(host=self.gatewayHost,carTypeName="板车",plate="川B00001",keyword="雪莲果", | ||
74 | - userName="ty_test",transactionName="沈阳2号",newWeight=20, | ||
75 | - depName="接车部",goodsTagName="货物标签测试",proveName="绿色蔬菜") | 71 | + plate = f"川A{random.randint(10000, 99999)}" |
72 | + goods = "雪莲果" | ||
73 | + userName = "ty_test" | ||
74 | + cre_res = zcA.create_jmsf(host=self.gatewayHost,plate=plate,keyword=goods,userName=userName) | ||
76 | number = cre_res.json()["data"]["number"] | 75 | number = cre_res.json()["data"]["number"] |
77 | - | ||
78 | # 进门单缴费 | 76 | # 进门单缴费 |
79 | eFBL.do_payOrder(host=self.jmsfHost,attrValue=number) | 77 | eFBL.do_payOrder(host=self.jmsfHost,attrValue=number) |
80 | payUser = my.userInfo["data"]["user"]["realName"] | 78 | payUser = my.userInfo["data"]["user"]["realName"] |
@@ -93,11 +91,10 @@ class test_listPage(unittest.TestCase): | @@ -93,11 +91,10 @@ class test_listPage(unittest.TestCase): | ||
93 | ic = self.ic | 91 | ic = self.ic |
94 | cName = eFBL.get_icCheck(host=self.jmsfHost,ic=ic).json()["data"]["aInfo"]["customerName"] | 92 | cName = eFBL.get_icCheck(host=self.jmsfHost,ic=ic).json()["data"]["aInfo"]["customerName"] |
95 | # 创建进门单 | 93 | # 创建进门单 |
96 | - cre_res = zcA.create_jmsf(host=self.gatewayHost,carTypeName="板车",plate="川B00001",keyword="雪莲果", | ||
97 | - userName="ty_test",transactionName="沈阳2号",newWeight=20, | ||
98 | - depName="接车部",goodsTagName="货物标签测试",proveName="绿色蔬菜") | 94 | + plate = f"川A{random.randint(10000, 99999)}" |
95 | + goods = "雪莲果" | ||
96 | + cre_res = zcA.create_jmsf(host=self.gatewayHost,plate=plate,keyword=goods) | ||
99 | number = cre_res.json()["data"]["number"] | 97 | number = cre_res.json()["data"]["number"] |
100 | - | ||
101 | # 进门单缴费 | 98 | # 进门单缴费 |
102 | eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic) | 99 | eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic) |
103 | resListPage = eFBL.listPage(host=self.jmsfHost,attrName="客户姓名",attrValue=cName) | 100 | resListPage = eFBL.listPage(host=self.jmsfHost,attrName="客户姓名",attrValue=cName) |
@@ -113,12 +110,10 @@ class test_listPage(unittest.TestCase): | @@ -113,12 +110,10 @@ class test_listPage(unittest.TestCase): | ||
113 | """进门单列表-查询:客户卡号查询测试""" | 110 | """进门单列表-查询:客户卡号查询测试""" |
114 | ic = self.ic | 111 | ic = self.ic |
115 | # 创建进门单 | 112 | # 创建进门单 |
116 | - cre_res = zcA.create_jmsf(host=self.gatewayHost,carTypeName="板车",plate="川B00001",keyword="雪莲果", | ||
117 | - userName="ty_test",transactionName="沈阳2号",newWeight=20, | ||
118 | - depName="接车部",goodsTagName="货物标签测试",proveName="绿色蔬菜") | 113 | + plate = f"川A{random.randint(10000, 99999)}" |
114 | + goods = "雪莲果" | ||
115 | + cre_res = zcA.create_jmsf(host=self.gatewayHost,plate=plate,keyword=goods) | ||
119 | number = cre_res.json()["data"]["number"] | 116 | number = cre_res.json()["data"]["number"] |
120 | - | ||
121 | - # 进门单缴费 | ||
122 | eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic) | 117 | eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic) |
123 | resListPage = eFBL.listPage(host=self.jmsfHost,attrName="客户卡号",attrValue=ic) | 118 | resListPage = eFBL.listPage(host=self.jmsfHost,attrName="客户卡号",attrValue=ic) |
124 | print(resListPage.json()) | 119 | print(resListPage.json()) |
@@ -134,9 +129,9 @@ class test_listPage(unittest.TestCase): | @@ -134,9 +129,9 @@ class test_listPage(unittest.TestCase): | ||
134 | ic = self.ic | 129 | ic = self.ic |
135 | cPhone = eFBL.get_icCheck(host=self.jmsfHost,ic=ic).json()["data"]["aInfo"]["customerContactsPhone"] | 130 | cPhone = eFBL.get_icCheck(host=self.jmsfHost,ic=ic).json()["data"]["aInfo"]["customerContactsPhone"] |
136 | # 创建进门单并缴费 | 131 | # 创建进门单并缴费 |
137 | - cre_res = zcA.create_jmsf(host=self.gatewayHost,carTypeName="板车",plate="川B00001",keyword="雪莲果", | ||
138 | - userName="ty_test",transactionName="沈阳2号",newWeight=20, | ||
139 | - depName="接车部",goodsTagName="货物标签测试",proveName="绿色蔬菜") | 132 | + plate = f"川A{random.randint(10000, 99999)}" |
133 | + goods = "雪莲果" | ||
134 | + cre_res = zcA.create_jmsf(host=self.gatewayHost,plate=plate,keyword=goods) | ||
140 | number = cre_res.json()["data"]["number"] | 135 | number = cre_res.json()["data"]["number"] |
141 | eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic) | 136 | eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic) |
142 | # 查询进门单 | 137 | # 查询进门单 |