def setup_method(self, method): self.connObj = LuciHelper.getConnObj(newConnection=True) Logger.logMethodName(method.__name__) constant.config['uploadedFileName'] = method.__name__ self.DracraysConnObj = DracarysHelper.getConnObj(newConnection=True) constant.config['requestId'] = 'luci_auto_' + str( random.randint(11111, 99999))
def setup_method(self, method): messageClass = 'SMS' if 'EMAIL' in method.__name__: messageClass = 'EMAIL' self.nsObj = NSAdminHelper.getConnObj(newConnection=True) self.nsadminHelper = NSAdminHelper(self.orgId, messageClass) self.nsadminHelper.disableDomainPropertiesGatewayMap() Logger.logMethodName(method.__name__)
def setup_method(self, method): self.nsObj = NSAdminHelper.getConnObj(newConnection=True) if self.cluster in ['nightly']: self.orgId = 780 elif self.cluster == 'china': self.orgId = 200017 self.nsadminHelper = NSAdminHelper(self.orgId, 'WECHAT') Logger.logMethodName(method.__name__)
def setup_method(self, method): self.EMFConnObj = LoyaltyHelper.getConnObj('emfPort', newConnection=True) self.pointEngineConnObj = LoyaltyHelper.getConnObj('pointsEnginePort', newConnection=True) self.PEBConnObj = PEBHelper.getConnObj(newConnection=True) constant.config['serverReqId'] = 'emf_auto_' + str( random.randint(11111, 99999)) # LoyaltyHelper.addTransaction() LoyaltyDBHelper.getBillNumber() # LoyaltyDBHelper.getCustomerPointsSummary() self.customerId = constant.config['usersInfo'][0]['userId'] self.storeId = constant.config['storeIds'][0] constant.config['defaultRedeemPts'] = 10 Logger.log('Printing Constant file: ', constant.config) Logger.logMethodName(method.__name__)
def setup_method(self, method): Logger.logMethodName(method.__name__) constant.config['requestId'] = 'luci_auto_' + str( random.randint(11111, 99999)) self.coupon_series_id = -1 self.tillId = constant.config['tillIds'][0] self.billId = str(random.randint(11111, 99999)) self.queue = Queue() self.lock = threading.Lock() # create connection pool port = constant.config['luciPort'].next() self.connObj = connection_pool.ClientPool( luci.LuciService, '127.0.0.1', port, connection_class=connection_pool.ThriftPyCyClient, timeout=150) self.s = sched.scheduler(time.time, time.sleep)
def setup_method(self, method): Logger.logMethodName(method.__name__) self.listInfo = list_Calls().getAllGroupDetails( 2, 0, 'created_date', None)
def setup_method(self, method): self.connObj = CampaignShardHelper.getConnObj(newConnection=True) Logger.logMethodName(method.__name__)
def setup_method(self, method): self.nsObj = NSAdminHelper.getConnObj(newConnection=True) self.nsadminHelper = NSAdminHelper(self.orgId, 'EMAIL') self.nsadminHelper.disableDomainPropertiesGatewayMap() Logger.logMethodName(method.__name__)
def setup_method(self, method): self.nsObj = NSAdminHelper.getConnObj(newConnection=True) self.nsadminHelper = NSAdminHelper(constant.config['orgId'], 'SMS') Logger.logMethodName(method.__name__)
def setup_method(self, method): self.connObj = VenenoHelper.getConnObj(newConnection=True) Logger.logMethodName(method.__name__)
def setup_method(self, method): Logger.logMethodName(str(method.__name__)) constant.config['validataionMessage'] = []
def setup_method(self, method): Logger.logMethodName(method.__name__) constant.config['requestId'] = 'luci_auto_' + str( random.randint(11111, 99999)) self.tillId = constant.config['tillIds'][0] self.billId = str(random.randint(11111, 99999))
def setup_method(self, method): self.dnObj = DarknightHelper.getConnObj(newConnection=True) Logger.logMethodName(str(method.__name__))
def setup_method(self, method): self.connObj = LuciHelper.getConnObj(newConnection=True) Logger.logMethodName(method.__name__) constant.config['requestId'] = 'luci_auto_ase_' + str( random.randint(11111, 99999)) self.userId = constant.config['usersInfo'][0]['userId']
def setup_method(self, method): self.connObj = PEBHelper.getConnObj(newConnection=True) self.PERconnObj = LoyaltyHelper.getConnObj('pointsEngineRulesPort', newConnection=True) Logger.logMethodName(method.__name__)
def setup_method(self, method): Logger.logMethodName(method.__name__)
def setup_method(self, method): self.connObj = VenenoHelper.getConnObj(newConnection=True) constant.config['uploadedFileName'] = method.__name__ Logger.logMethodName(method.__name__)