Arthur-Wu committed this file on 2024-11-21
This commit is contained in:
@ -24,13 +24,17 @@ class Test_CNoLogin001(unittest.TestCase):
|
||||
def test_CNoLogin001_CheckADs(self):
|
||||
allure.dynamic.description(f"描述:{DescName}")
|
||||
AdListData = self.ymc.get_ads_list()
|
||||
if "error_msg" not in AdListData:
|
||||
adIdList = []
|
||||
for ad in AdListData['data']:
|
||||
adIdList.append(ad['id'])
|
||||
LOGGER.info(f"---adIdList: {adIdList}---\n")
|
||||
for adId in adIdList:
|
||||
self.ymc.query_ad_detail(str(adId))
|
||||
if AdListData['data'] != []:
|
||||
if "error_msg" not in AdListData:
|
||||
adIdList = []
|
||||
for ad in AdListData['data']:
|
||||
adIdList.append(ad['id'])
|
||||
LOGGER.info(f"---adIdList: {adIdList}---\n")
|
||||
for adId in adIdList:
|
||||
self.ymc.query_ad_detail(str(adId))
|
||||
else:
|
||||
LOGGER.info(f"---该商超未配置广告---\n")
|
||||
pytest.fail(f"---该商超未配置广告---\n")
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(verbosity=2)
|
Reference in New Issue
Block a user