Exemple #1
0
 def createMessageForThriftHelp(campaignId, groupVersionid, numberOfUsers,
                                groupName):
     connObj = VenenoHelper.getConnObj(newConnection=True)
     cdDetailsBody = {
         'campaignId': campaignId,
         'targetType': 'SOCIAL',
         'communicationType': 'FACEBOOK',
         'subject': '',
         'recipientListId': groupVersionid,
         'overallRecipientCount': numberOfUsers,
         'expectedDeliveryCount': numberOfUsers,
         'groupName': groupName
     }
     extraParams = {
         'voucher_series': -1,
         'default_argument': {
             "entity_id": -1,
             "is_loyalty_checkbox_enabled": "0",
             "voucher_series_id": "-1",
             "daily_budget": 1000000
         }
     }
     communicationDetailObject = VenenoObject.communicationDetail(
         cdDetailsBody, extraParams=extraParams)
     communicationId = connObj.addMessageForRecipients(
         communicationDetailObject)
     return communicationId
 def setup_method(self, method):
     self.connObj = VenenoHelper.getConnObj(newConnection=True)
     Logger.logMethodName(method.__name__)
Exemple #3
0
 def setup_method(self, method):
     self.connObj = VenenoHelper.getConnObj(newConnection=True)
     constant.config['uploadedFileName'] = method.__name__
     Logger.logMethodName(method.__name__)