initial checkin of qa api
[tests.git] / qaapi / qa / Config.py
1 import xmlrpclib
2 import os
3
4 class Config:
5
6     path = os.path.dirname(os.path.abspath(__file__))   
7     def __init__(self, config_file = path+os.sep+'qa_config'):
8         try:
9             execfile(config_file, self.__dict__)
10         except:
11             print __file__
12             raise "Could not find system config in %s" % config_file
13
14         self.auth = {}
15         self.auth['Username'] = self.PLC_ROOT_USER
16         self.auth['AuthString'] = self.PLC_ROOT_PASSWORD
17         self.auth['AuthMethod'] = 'password'
18         self.api = xmlrpclib.Server('https://%s/PLCAPI/' % self.PLC_API_HOST)
19         self.verbose = True     
20