Commit 7e5da2040fd813a0f6b1fda4c975c8b5b2cc8a6f

Authored by liujiqiang
1 parent 378b7645

时间查询

testcase/test_listPage/test_searchByAttrName.py
... ... @@ -40,9 +40,9 @@ class test_listPage(unittest.TestCase):
40 40  
41 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 46 number = cre_res.json()["data"]["number"]
47 47 resListPage = eFBL.listPage(host=self.jmsfHost,attrValue=number)
48 48 print(resListPage.json())
... ... @@ -51,11 +51,9 @@ class test_listPage(unittest.TestCase):
51 51  
52 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 57 resListPage = eFBL.listPage(host=self.jmsfHost,attrName="车号",attrValue=plate)
60 58 print(resListPage.json())
61 59 assert resListPage.json()["rows"][0]["plate"] == plate,"按照车牌号查询失败"
... ... @@ -70,11 +68,11 @@ class test_listPage(unittest.TestCase):
70 68  
71 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 75 number = cre_res.json()["data"]["number"]
77   -
78 76 # 进门单缴费
79 77 eFBL.do_payOrder(host=self.jmsfHost,attrValue=number)
80 78 payUser = my.userInfo["data"]["user"]["realName"]
... ... @@ -93,11 +91,10 @@ class test_listPage(unittest.TestCase):
93 91 ic = self.ic
94 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 97 number = cre_res.json()["data"]["number"]
100   -
101 98 # 进门单缴费
102 99 eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic)
103 100 resListPage = eFBL.listPage(host=self.jmsfHost,attrName="客户姓名",attrValue=cName)
... ... @@ -113,12 +110,10 @@ class test_listPage(unittest.TestCase):
113 110 """进门单列表-查询:客户卡号查询测试"""
114 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 116 number = cre_res.json()["data"]["number"]
120   -
121   - # 进门单缴费
122 117 eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic)
123 118 resListPage = eFBL.listPage(host=self.jmsfHost,attrName="客户卡号",attrValue=ic)
124 119 print(resListPage.json())
... ... @@ -134,9 +129,9 @@ class test_listPage(unittest.TestCase):
134 129 ic = self.ic
135 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 135 number = cre_res.json()["data"]["number"]
141 136 eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=ic)
142 137 # 查询进门单
... ...