예제 #1
0
 def test_campaignShardThrift_searchAudienceGroup_filterBased(
         self, audienceType):
     listOfAudienceType = []
     for eachAudienceType in audienceType:
         listOfAudienceType.append(
             self.campaignShardObject.AudienceGroupType[eachAudienceType])
     listOfAudienceGroup = self.connObj.searchAudienceGroup(
         listOfAudienceType)
     CampaignShardHelper.validateSearchAudienceGroup(audienceType,
                                                     listOfAudienceGroup,
                                                     campaignType=['org'])
예제 #2
0
 def test_campaignShardThrift_newSearchAudienceGroup(
         self, campaignType, audienceType, testPercentage):
     audienceSearchRequest = self.campaignShardObject.AudienceSearchRequest(
         searchText="",
         audienceGroupTypes=[
             self.campaignShardObject.AudienceGroupType[audienceType]
         ],
         testControl=self.campaignShardObject.TestControl(
             campaignType, testPercentage))
     listOfAudienceGroup = self.connObj.newSearchAudienceGroup(
         audienceSearchRequest)
     CampaignShardHelper.validateSearchAudienceGroup(
         [audienceType], listOfAudienceGroup, campaignType=[campaignType])