Esempio n. 1
0
    def setUpClass(self):
        self.saas = saas_address()  #封装地址管理的类
        self.saas1 = saas1()  #公共类获取user_id和cpy_id

        #获取user_id(输入账号和密码)
        self.usr_id = self.saas1.user_userid(
            15137819972, 'e10adc3949ba59abbe56e057f20f883e')
        #saas产品ID
        self.producct_id = 2025
        #获取cpy_id
        self.cpy_id = self.saas1.login_info(self.usr_id)
Esempio n. 2
0
    def setUpClass(self):
        self.saas = saas_trailer()
        self.saas1 = saas1()  #公共类获取user_id和cpy_id
        self.trailer = trailer_number(len)  #挂车牌号

        #获取user_id(输入账号和密码)
        self.usr_id = self.saas1.user_userid(
            15137819972, 'e10adc3949ba59abbe56e057f20f883e')
        #saas产品ID
        self.producct_id = 2025
        #获取cpy_id
        self.cpy_id = self.saas1.login_info(self.usr_id)
Esempio n. 3
0
 def __init__(self):
     self.saas = saas1()
     self.user_id = self.saas.user_userid(
         15137819972, 'e10adc3949ba59abbe56e057f20f883e')
     self.product_id = 2025
     self.cpy_id = self.saas.login_info(self.user_id)
     self.url = "http://180.76.104.7:9538/prod-api"
     self.headers = {
         "Content-Type": "application/json",
         "user_id": f"{self.user_id}",
         "product_id": f"{self.product_id}",
         "cpy_id": f"{self.cpy_id}"
     }
Esempio n. 4
0
 def setUpClass(cls):
     cls.b = saas1()