diff options
Diffstat (limited to 'cases/object/test_tunnels.py')
| -rw-r--r-- | cases/object/test_tunnels.py | 72 |
1 files changed, 22 insertions, 50 deletions
diff --git a/cases/object/test_tunnels.py b/cases/object/test_tunnels.py index d29676c0..99dd1360 100644 --- a/cases/object/test_tunnels.py +++ b/cases/object/test_tunnels.py @@ -12,25 +12,6 @@ data = ReadData() class TestTunnels: - # 24.1.3pass - # 测试点:未选中数据时,点击导出按钮可以导出所有数据 - # 改变export定位,24.1.22 pass - # @pytest.mark.parametrize( - # "data", - # [ - # { - # "ids": "Tunnel无法导出,注释", - # "CreatType": "Tunnel", - # "SubType": "ID", - # "Search_type": "Name" - # } - # ] - # ) - # def test_tunnels_verify_checkbox(self, data): - # driver = download_files() - # tunnels = Tunnels(driver) - # tunnels._verify_not_checkbox_export(data) - # driver.quit() # 测试点:增删改查、选择颜色、新建修改后数据是否相同、name最大长度 # 24.1.3 pass @@ -73,19 +54,19 @@ class TestTunnels: # 24.1.22pass # 测试点:Audit Logs审计日志(创建) # Todo 增删 - @pytest.mark.parametrize( - "data", - [ - { - "ids": "Tunnel的Audit Logs:增加和编辑", - "Search_type": "Name", - "type": " " - } - ] - ) - def test_tunnels_audit_case(self, demo_fixture, data): - tunnels = Tunnels(demo_fixture) - tunnels._verify_audit_logs(data) + # @pytest.mark.parametrize( + # "data", + # [ + # { + # "ids": "Tunnel的Audit Logs:增加和编辑", + # "Search_type": "Name", + # "type": " " + # } + # ] + # ) + # def test_tunnels_audit_case(self, demo_fixture, data): + # tunnels = Tunnels(demo_fixture) + # tunnels._verify_audit_logs(data) # 24.1.3pass # 测试点:删除引用数据 @@ -107,9 +88,9 @@ class TestTunnels: tunnels = Tunnels(demo_fixture) tunnels._delete_quoted_object(data) - def test_list_check(self, demo_fixture): - tunnels = Tunnels(demo_fixture) - tunnels._list_check() + # def test_list_check(self, demo_fixture): + # tunnels = Tunnels(demo_fixture) + # tunnels._list_check() @pytest.mark.parametrize( "data", @@ -144,32 +125,25 @@ class TestTunnels: @pytest.mark.parametrize( "data", [ - # Tunnel中新建ip和ip group,之后删除 - { - "ids": "Tunnel中Name模糊查询", - "Search_type": "fuzzy->Name", - "type": "All", - "isDeleteGroup": "True" - }, { "ids": "Tunnel中组合查询", - "Search_type": "ID&Name&IP", + "Search_type": "UUID", "type": "All", "isDeleteGroup": "True" }, { "ids": "Tunnel中根据IP查询", - "Search_type": "IP", + "Search_type": "Name", "type": "IP", "isDeleteGroup": "True" - }, { - "ids": "Tunnel中全局查询", + "ids": "Tunnel中根据IP查询", "Search_type": "IP", - "type": "All", + "type": "IP", "isDeleteGroup": "True" - } + }, + ] ) def test_tunnel_query_case(self, demo_fixture, data): @@ -253,8 +227,6 @@ class TestTunnels: "ids": "modify tunnel时修改tunnel,删除endpoint b", "Search_type": "Name", "type": "IP", - "isDeleteGroup": "True" - } ] ) |
