demo_b.py
1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- coding: utf-8 -*-
# @Time : 2021/8/6 17:49
# @Author : Ljq
# @File : test_ZCCreate.py
# @Software: PyCharm
"""
整车进门但创建测试
"""
import unittest
from commons.scripts.readConf import rC
from commons.api.entranceFeeBillList import apiDemo
from commons.MySession import mysession
session = mysession().cliLogin()
global mk_sign
mk_sign = "hb"
class test_ZCCreate(unittest.TestCase):
"""沈阳市场-整车-创建整车进门单"""
def setUp(self) -> None:
pass
def tearDown(self) -> None:
pass
@classmethod
def setUpClass(cls) -> None:
cls.gatewayHost = rC.returnOptionsItems("host", "gatewayHost")
cls.jmsfHost = rC.returnOptionsItems("host", "jmsfHost")
@classmethod
def tearDownClass(cls) -> None:
pass
def test_creZC(self):
"""整车-整车创建:按接车员名称信息查询接车员"""
"""整车-整车创建:获取车型接口调用测试"""
# 依赖数据
plate = "川A12323"
productState = "1"
trailerNumber = plate
# 获取车型
carType = apiDemo.get_carType(host=self.gatewayHost)
print(carType.text)
print(carType.json()["data"][0])
# 获取商品
categoryByCondition = apiDemo.get_listCategoryByCondition(host=self.gatewayHost)
print(categoryByCondition.json())
print("mk_sign",mk_sign)
print("apiDemo.mk_sign", apiDemo.mk_sign)