Commit acd584267c19a30033b855fc40783b2bf528e1b2

Authored by wenleiming
1 parent 8c5894ca

层级

testcase/fc_add/fc_add.py renamed to testcase/FeedbackCustomerController/fc_add.py
... ... @@ -4,8 +4,10 @@ from commons import common as com
4 4 from commons.MySession import my
5 5 from commons.api.fc_add import fc_add
6 6 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
7   -
  7 +from commons.Faker import random_data
8 8 fc=fc_add()
  9 +ra = random_data()
  10 +
9 11 class test_fc_add(unittest.TestCase):
10 12 "新增返还人"
11 13 @classmethod
... ... @@ -13,8 +15,7 @@ class test_fc_add(unittest.TestCase):
13 15 my.post(url=fc.url, headers=fc.header, data=fc.body.encode('utf-8'))
14 16  
15 17 def test_fc_add_01(self):
16   -
17   - body = fc.body.replace("888810054630","888810054630").replace("你好","克萨斯").replace("relation\
  18 + body = fc.body.replace("888810054630","888810054630").replace("你好",ra.name()).replace("relation\
18 19 CardTemp=888810054630","relationCardTemp=888810054630").replace("relationalCard[0].cardNumber\
19 20 =888810054630","relationalCard[0].cardNumber=888810054630")
20 21 print(body)
... ...