summaryrefslogtreecommitdiff
path: root/cases/object/test_tunnels.py
diff options
context:
space:
mode:
authorguowenzheng <[email protected]>2024-11-27 19:38:16 +0800
committerguowenzheng <[email protected]>2024-11-27 19:38:16 +0800
commit99600951e60e7558c1089a2fc504a66b11ccd45c (patch)
treed91bb83589b713b262bba09ed798df9727674419 /cases/object/test_tunnels.py
parenta75f5d2125fc403381e5f583551751c0da4d2d24 (diff)
元素定位逻辑修改HEADdevelop
Diffstat (limited to 'cases/object/test_tunnels.py')
-rw-r--r--cases/object/test_tunnels.py72
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"
-
}
]
)