#ip正向用例 apns_data: #创建apns - - operatingType: create Name: test_apn_创建单个apn对象 AddressItemButton: null Items: - ItemData: $www.ss.com - ItemData: $a.bc Description: test_apn_创建单个apn对象 searchCriteria: Name - - #含有一层group的apn对象,apn对象为直接创建 operatingType: createGroup Name: test_apn_含有一层group的apn对象_1 GroupItemButton: null SubObjects: - NoGroup: - Name: 第二层-2 - AddressItemButton: click - Items: - ItemData: $www.aaaa.com - OkButton: click Description: test_apn_含有一层group的apn对象_1_description searchCriteria: Name #创建单个apn对象并修改添加item - - operatingType: create Name: test_apn_创建单个apn对象,全匹配、含有最少字符全匹配 AddressItemButton: null Items: - ItemData: $www.ss.com - ItemData: '*.ru' Description: test_apn_创建单个apn对象,左匹配、含有最少字符全匹配_description searchCriteria: Name - operatingType: edit Name: test_apn_edit EditAddItems: - ItemData: $www.test.com searchCriteria: Name #含有一层group的apn对象修改添加item (TSG-14478bug导致) - - operatingType: createGroup Name: test_apn_含有一层group的apn对象_1 GroupItemButton: null SubObjects: - NoGroup: - Name: 第二层-2 - AddressItemButton: click - Items: - ItemData: $www.aaaa.com - OkButton: click Description: test_apn_含有一层group的apn对象_1_description searchCriteria: Name - operatingType: edit Name: test_apn_含有一层group的apn对象_1_修改名字 EditGroupAddItem: click SubObjects: - NoGroup: - Name: 第二层-2 - AddressItemButton: click - Items: - ItemData: $www.aaaa.com - OkButton: click searchCriteria: Name #创建单个apn对象最少字符 - - operatingType: create Name: test AddressItemButton: null Items: - ItemData: $www.sa searchCriteria: Name #创建单个apn对象最多字符 - - operatingType: create Name: testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest AddressItemButton: null Items: - ItemData: "*testtesttesttsesttesttesttesttesttesttesttesttesttesttesttestss" searchCriteria: Name # 特殊字符 - - operatingType: create Name: '1!@#$%^&*():{}|?><,./中文русскийEnglish' AddressItemButton: null Items: - ItemData: $a.b - ItemData: '*.rt' searchCriteria: Name #五层-左匹配 - - operatingType: createGroup Name: test_apns_1 GroupItemButton: null SubObjects: - Group: - Name: 第二层-2 - GroupItemButton: click - SubObjects: - Group: - Name: 第三层-3 - GroupItemButton: click - SubObjects: - Group: - Name: 第四层-4 - GroupItemButton: click - SubObjects: - NoGroup: - Name: 第五层-5 - AddressItemButton: click - Items: - ItemData: $aa.bb - OkButton: click - OkButton: click - OkButton: click - OkButton: click Description: test_fqdn__1 searchCriteria: Name #创建页面item搜索框测试 - - operatingType: create Name: test_itemsearch AddressItemButton: null Items: - ItemData: $aaaa.com - ItemData: $vvvv.com ItemSearch: aaaa PageAssert: aaaa searchCriteria: Name #查看引用计数 - - operatingType: open search: 自动化测试勿动 ReferenceCount: click PageAssert: 自动化测试_test - #根据Catagory搜索 - operatingType: create Name: test_Catagory_Type AddressItemButton: null Items: - ItemData: $www.ss.com - ItemData: $aa.bb Description: test_Catagory_Type searchCriteria: Name - operatingType: open SearchCatagory: APN Group PagetNotContain: test_Catagory_Type - operatingType: open SearchCatagory: APN PageAssert: test_Catagory_Type - operatingType: open search: test_Catagory_Type Delete: del - - #导入正确文件 operatingType: open ImportButton: - Import: - Name: apn_Inpot_test - UploadFile: objects/apn_1.txt - OkButton: click search: apn_Inpot_test Delete: click # - # - #导出数据 # operatingType: open # search: 自动化测试数据勿动 # Export: 自动化测试数据勿动 - - #翻页 operatingType: open turnPage: click #创建页面total测试 - - operatingType: create Name: test_itemsearch AddressItemButton: null Items: - ItemData: $aaaa.com - ItemData: $vvvv.com PageAssert: Total:2 searchCriteria: Name # Item增量导入 (TSG-14373bug导致) - - operatingType: create Name: test_ItemUpload ImportItem: - UploadFile: objects/apns_item.txt - OkButtonUpload: click - ItemOkButton: click searchCriteria: Name - operatingType: edit Name: test_ItemUpload PageAssert: $aabb.com searchCriteria: Name # Item增量导入在侧滑框修改Item (TSG-14373bug导致) - - operatingType: create Name: test_ItemUpload ImportItem: - UploadFile: objects/apns_item.txt - OkButtonUpload: click - EditItemBtn: click - UploadEditItem: '*aabb.com' - SaveItem: click - ItemOkButton: click searchCriteria: Name - operatingType: edit Name: test_ItemUpload PageAssert: '*aabb.com' searchCriteria: Name - - # 导入无item的txt文件 operatingType: open ImportButton: - Import: - Name: Acconunt_Inpot_test - UploadFile: objects/blank_file.txt - OkButton: click PageAssert: Format Error:APN string should start with - - # 导入错误格式数据 长度小于3 operatingType: open ImportButton: - Import: - Name: Acconunt_Inpot_test - UploadFile: objects/account_error.txt - OkButton: click PageAssert: Suffix matching and exactly matching only. #导入错误的匹配方式 - - operatingType: open ImportButton: - Import: - Name: Acconunt_Inpot_test - UploadFile: objects/apn_error_matching.txt - OkButton: click PageAssert: Suffix matching and exactly matching only. #创建修改数据并验证数据正确性 - - operatingType: create Name: test_apn AddressItemButton: null Items: - ItemData: $www.ss.com - ItemData: $aa.ba searchCriteria: Name - operatingType: edit Name: test_apn_修改 PageAssertList: - $www.ss.com - $aa.ba EditAddItems: - ItemData: $www.test.co searchCriteria: Name - operatingType: edit Name: test_apn_验证数据 PageAssertList: - $www.ss.com - $aa.ba - $www.test.co searchCriteria: Name - - #列设置 operatingType: open ColumnSetup: - Column: - Modified Time: click - OkButton: click ColumnAssert: - Modified Time: Modified Time apns_negative_data: # Item增量导入 错误文件 - - operatingType: createNoOKButton Name: test_ItemUpload ImportItem: - UploadFile: objects/keywords_error.txt - OkButtonUpload: click - ItemOkButton: click assertText: - Require at least 3 bytes for any single substring , the total length of string can not exceed 1024 bytes. # name长度为3 - - operatingType: create Name: 123 assertText: - The length of the name is at most 128 characters and cannot be less than 4 characters - - # 不输入name operatingType: create assertText: - The length of the name is at most 128 characters and cannot be less than 4 characters - - # 不输入item operatingType: create Name: AutomatedTesting_NoItem assertText: - Item of policy object and referenced sub-objects cannot be empty at the same time # item小于三个字符 - - operatingType: create Name: test_item——2 AddressItemButton: null Items: - ItemData: "*a" assertText: - There is a empty value in Items