Example #1
0
	def setUp(self):
		self.env_file = "env.json"
		self.data_file = "data_xhd.json"
		base.Base.__init__(self, self.env_file, self.data_file)
		SET.__init__(self)
		self.se = SET()
		self.se.start_run()
 def setUp(self):
     self.env_file = None
     self.data_file = None
     Base.__init__(self, self.env_file, self.data_file)
     SET.__init__(self)
     self.se = SET()
     self.se.start_run()
Example #3
0
	def setUp(self):
		
		self.env_file = "env.json"
		self.data_file = "data_eyt.json"
		base.Base.__init__(self, self.env_file, self.data_file)
		SET.__init__(self)
		self.se = SET()
		self.se.start_run()
		
		pd = random.choice(product['YES'])
		print(pd)
		self.product_info.update(dict(name=pd['name']), period=str(pd['period']))
		# 设置产品
		self.data['applyVo']['productName'] = pd['name']
		self.data['applyVo']['applyPeriod'] = str(pd['period'])
Example #4
0
    def setUp(self):
        self.env_file = "env.json"
        self.data_file = "data_xhd.json"
        base.Base.__init__(self, self.env_file, self.data_file)
        SET.__init__(self)
        self.se = SET()
        self.se.start_run()

        rdir = config.__path__[0]
        pth = os.path.join(rdir, 'hostinfo')
        with open(pth, 'r', encoding='utf-8') as f:
            temp = yaml.load(f)
            self.host_ip = temp['SIT']['IP']
            self.port = temp['SIT']['port']
            self.host_name = temp['SIT']['username']
            self.host_password = temp['SIT']['password']