示例#1
0
 def test_irisV2_createAudience_stickyList_ExcludePocUsersAndNewUsers(
         self, campaignType, testControlType, listType):
     stickyId = CreateAudience.stickyList(campaignType,
                                          testControlType,
                                          campaignCheck=False,
                                          updateNode=True,
                                          lockNode=True,
                                          stickyInfo={
                                              'excludeUsers': [],
                                              'includeUsers': ':1',
                                          })
     excludeUsers = constant.config[
         'pocUsers'] + CreateAudience.getPocNewUsers(newUsers=True)
     customerCount = list_Calls().getCustomerCountInGVD(stickyId['ID']) - 1
     list = CreateAudience.stickyList(
         campaignType,
         testControlType,
         campaignCheck=False,
         stickyInfo={
             'excludeUsers': excludeUsers,
             'includeUsers': CreateAudience.getPocNewUsers(newUsers=True),
             'groupId': stickyId['ID'],
             'label': stickyId['NAME']
         })
     CreateAudience.waitForGVDToBeUpdated(list['ID'])
     CreateAudienceDBAssertion(list['ID'],
                               list,
                               listType, (customerCount + 2),
                               reachabilityCheck=True,
                               isGVUpdated=True).check()
示例#2
0
 def test_irisV2_createAudience_Filter(self, campaignType, testControlType,
                                       listType):
     list = CreateAudience.FilterList(campaignType,
                                      testControlType,
                                      campaignCheck=False)
     CreateAudience.waitForGVDToBeUpdated(list['ID'])
     CreateAudienceDBAssertion(list['ID'],
                               list,
                               listType,
                               len(self.filterUserList),
                               reachabilityCheck=True).check()
示例#3
0
 def test_irisV2_createAudience_Derived_Include_SMS(
         self, description, campaignType, testControlType, listType,
         derivedListInfo, popfield):
     list = CreateAudience.derivedList(campaignType,
                                       testControlType,
                                       campaignCheck=False,
                                       derivedListInfo=derivedListInfo,
                                       popFields=popfield)
     CreateAudience.waitForGVDToBeUpdated(list['ID'])
     CreateAudienceDBAssertion(list['ID'],
                               list,
                               listType,
                               list['expectedUserCount'],
                               reachabilityCheck=True).check()
 def test_irisV2_getAudienceById_Filter(self, campaignType,
                                        testControlType):
     list = CreateAudience.FilterList(campaignType,
                                      testControlType,
                                      campaignCheck=False)
     CreateAudience.waitForGVDToBeUpdated(list['ID'], checkParams=False)
     response = GetAudienceById.getById(list['ID'])
     GetAudienceById.assertResponse(response, 200)
     GetListDBAssertion(
         list['ID'],
         response,
         bucketUsed=constant.orgDetails[constant.config['cluster']][
             constant.config['orgId']]['s3BucketName'],
         createAudienceJob=False).check()
示例#5
0
 def test_irisV2_createAudience_stickyList(self, campaignType,
                                           testControlType, listType):
     list = CreateAudience.stickyList(campaignType,
                                      testControlType,
                                      campaignCheck=False,
                                      stickyInfo={
                                          'excludeUsers': [],
                                          'includeUsers': ':1'
                                      })
     CreateAudience.waitForGVDToBeUpdated(list['ID'])
     CreateAudienceDBAssertion(list['ID'],
                               list,
                               listType,
                               1,
                               reachabilityCheck=True).check()
示例#6
0
 def test_irisV2_createAudience_Derived_Include_Exclude_DifferentChannels(
         self, description, campaignType, testControlType, listType,
         derivedListInfo, schemaIdentifier, popfield):
     list = CreateAudience.derivedList(campaignType,
                                       testControlType,
                                       schemaIdentifier=[schemaIdentifier],
                                       newUser=False,
                                       campaignCheck=False,
                                       derivedListInfo=derivedListInfo,
                                       popFields=popfield)
     CreateAudience.waitForGVDToBeUpdated(list['ID'])
     CreateAudienceDBAssertion(list['ID'],
                               list,
                               listType,
                               list['expectedUserCount'],
                               reachabilityCheck=False).check()
示例#7
0
 def test_irisV2_createAudience_Derived_WithSpecialCharecters(self):
     label = '~!@#$%^&*)(_{}'.format(int(time.time() * 1000))
     list = CreateAudience.derivedList('LIVE',
                                       'ORG',
                                       label=label,
                                       derivedListInfo={
                                           'includedGroups':
                                           ['UPLOAD', 'UPLOAD', 'LOYALTY'],
                                           'excludedGroup': ['LOYALTY'],
                                           'noOfUserUpload':
                                           5
                                       })
     CreateAudience.waitForGVDToBeUpdated(list['ID'])
     CreateAudienceDBAssertion(list['ID'],
                               list,
                               'DERIVED',
                               list['expectedUserCount'],
                               reachabilityCheck=True).check()
示例#8
0
 def test_irisV2_createAudience_stickyList_newUsersAndGroupId(
         self, campaignType, testControlType, listType):
     customerCount = list_Calls().getCustomerCountInGVD(
         self.listInfo[0]['gId'])
     list = CreateAudience.stickyList(
         campaignType,
         testControlType,
         campaignCheck=False,
         stickyInfo={
             'excludeUsers': CreateAudience.getPocNewUsers(newUsers=True),
             'includeUsers': CreateAudience.getPocNewUsers(newUsers=True),
             'groupId': self.listInfo[0]['gId'],
             'label': self.listInfo[0]['gLabel']
         })
     CreateAudience.waitForGVDToBeUpdated(list['ID'])
     CreateAudienceDBAssertion(list['ID'],
                               list,
                               listType, (customerCount + 2),
                               reachabilityCheck=True,
                               isGVUpdated=True).check()
示例#9
0
 def setup_class(self):
     constant.config['FilterListID'] = CreateAudience.FilterList(
         'LIVE', 'ORG', campaignCheck=False)['ID']
     CreateAudience.waitForGVDToBeUpdated(constant.config['FilterListID'])
     CreateAudience.getPocUsers()