예제 #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()
예제 #4
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()
예제 #5
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()
예제 #6
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()
예제 #7
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()
예제 #8
0
 def validateAudienceInfo(self):
     CreateAudienceDBAssertion(self.listId, self.listInfo, self.listType,
                               self.numberOfusers).check()