diff options
Diffstat (limited to 'cases/object/test_accounts.py')
| -rw-r--r-- | cases/object/test_accounts.py | 232 |
1 files changed, 146 insertions, 86 deletions
diff --git a/cases/object/test_accounts.py b/cases/object/test_accounts.py index 6a87d5a0..83946a05 100644 --- a/cases/object/test_accounts.py +++ b/cases/object/test_accounts.py @@ -99,22 +99,22 @@ class TestAccounts: acc.delete(data) #未修改 - @pytest.mark.parametrize("data", [ - { - "ids": "test_reference_by_object", - "Model": "create", - "Type": 0, - "Search type": "Name", - "Name": "", - "Items": [ - "[random]->" - ], - "Description": "" - }, - ]) - def test_reference_by_object(self, demo_fixture, data): - acc = Accounts(demo_fixture) - acc._reference_by_object(data) + # @pytest.mark.parametrize("data", [ + # { + # "ids": "test_reference_by_object", + # "Model": "create", + # "Type": 0, + # "Search type": "Name", + # "Name": "", + # "Items": [ + # "[random]->" + # ], + # "Description": "" + # }, + # ]) + # def test_reference_by_object(self, demo_fixture, data): + # acc = Accounts(demo_fixture) + # acc._reference_by_object(data) def test_operate_columns(self, demo_fixture): acc = Accounts(demo_fixture) acc._operate_columns() @@ -137,9 +137,86 @@ class TestAccounts: # ]) # def test_export_objects_and_verify(self, demo_fixture,data): # acc = Accounts(demo_fixture) - # acc._export_objects_and_verify(data) + acc._export_objects_and_verify(data) # # driver.quit() + @pytest.mark.parametrize("data", + [ + { + "ids": "创建accObject并查看验证Total |T017", + "Model": "create", + "Type": 0, + "Name": "", + "Search type": "", + "Items": [ + "*example->", + "[random]->", + "$acbsuduh->" + ], + "Description": "", + "Subordinate Objects": [ + ], + "SubType": "multi_export", + "multi_type": "all", + }, + { + "ids": "创建accObject并查看验证Total |T017", + "Model": "create", + "Type": 0, + "Name": "", + "Search type": "", + "Items": [ + "*example->", + "[random]->", + "$acbsuduh->" + ], + "Description": "", + "Subordinate Objects": [ + ], + "SubType": "multi_export", + "multi_type": "part", + }, + { + "ids": "创建accObject并查看验证Total |T017", + "Model": "create", + "Type": 0, + "Name": "", + "Search type": "", + "Items": [ + "*example->", + "[random]->", + "$acbsuduh->" + ], + "Description": "", + "Subordinate Objects": [ + ], + "SubType": "multi_export", + "multi_type": " ", + }, + { + "ids": "创建interval_Group--test_View_statistics_case", + "Model": "create", + "Type": 1, + "Search type": "Name", + "Name": "", + "Items": [ + ], + "Description": "", + "Subordinate Objects": { + "subName": "", + "subItems": [ + "^shdjilluhiasdh->" + ], + "subDescription": "" + }, + "SubType": "multi_export", + "multi_type": " ", + }, + ]) + def test_export_multi_condition_test(self, demo_fixture, data): + acc = Accounts(demo_fixture) + acc.export_multi_condition_test(data) + @pytest.mark.parametrize("data", data.read_data_object(r"URLs\\pages_turning.json"), ids=data.generate_id) def test_pages_turning(self, demo_fixture, data): @@ -155,23 +232,23 @@ class TestAccounts: acc._add_to_watchList() #未修改 - @pytest.mark.parametrize("data", [ - { - "ids": "创建urlObject并查看验证审计日志-T016/创建并修改urlObject查看验证审计日志-T041/23.09版本新功能:右侧页面增加Audit Logs功能-T073", - "Model": "create", - "Type": 0, - "Name": "", - "Search type": "", - "Items": [ - "[random]->*asruhau" - ], - "Description": "", - } - ]) - def test_verify_audit_logs(self, demo_fixture, data): - acc = Accounts(demo_fixture) - acc._goto_accountsPage() - acc._verify_audit_logs(data) + # @pytest.mark.parametrize("data", [ + # { + # "ids": "创建urlObject并查看验证审计日志-T016/创建并修改urlObject查看验证审计日志-T041/23.09版本新功能:右侧页面增加Audit Logs功能-T073", + # "Model": "create", + # "Type": 0, + # "Name": "", + # "Search type": "", + # "Items": [ + # "[random]->*asruhau" + # ], + # "Description": "", + # } + # ]) + # def test_verify_audit_logs(self, demo_fixture, data): + # acc = Accounts(demo_fixture) + # acc._goto_accountsPage() + # acc._verify_audit_logs(data) @pytest.mark.parametrize("data", [ @@ -415,22 +492,6 @@ class TestAccounts: "abcd&efgh->" ], "Description": "" - }, { - "ids": "创建Account Group_View_statistics_case", - "Model": "create", - "Type": 1, - "Search type": "Name", - "Name": "test_ui-account group 4 statistics", - "Items": [ - ], - "Description": "", - "Subordinate Objects": { - "subName": "", - "subItems": [ - "iiiii$->" - ], - "subDescription": "" - } }, ]) def test_view_statistics_case(self, demo_fixture, data): @@ -483,40 +544,40 @@ class TestAccounts: acc = Accounts(demo_fixture) acc._onlyViewPermission() - @pytest.mark.parametrize("data", [ - { - "ids": "创建Account,并于列表页筛选Item", - "Model": "create", - "Type": 0, - "Search type": "Name", - "Name": "", - "Items": [ - "[random]->", - "askjdjkj$" - ], - "Description": "" - }, - { - "ids": "创建Account Group,并于列表页筛选Item", - "Model": "create", - "Type": 1, - "Search type": "Name", - "Name": "", - "Items": [ - ], - "Description": "", - "Subordinate Objects": { - "subName": "", - "subItems": [ - "[random]->" - ], - "subDescription": "" - } - } - ]) - def test_list_page_item_search(self, demo_fixture, data): - acc = Accounts(demo_fixture) - acc._list_page_item_search(data) + # @pytest.mark.parametrize("data", [ + # { + # "ids": "创建Account,并于列表页筛选Item", + # "Model": "create", + # "Type": 0, + # "Search type": "Name", + # "Name": "", + # "Items": [ + # "[random]->", + # "askjdjkj$" + # ], + # "Description": "" + # }, + # { + # "ids": "创建Account Group,并于列表页筛选Item", + # "Model": "create", + # "Type": 1, + # "Search type": "Name", + # "Name": "", + # "Items": [ + # ], + # "Description": "", + # "Subordinate Objects": { + # "subName": "", + # "subItems": [ + # "[random]->" + # ], + # "subDescription": "" + # } + # } + # ]) + # def test_list_page_item_search(self, demo_fixture, data): + # acc = Accounts(demo_fixture) + # acc._list_page_item_search(data) @pytest.mark.parametrize("data", [ { @@ -549,7 +610,6 @@ class TestAccounts: "Search type": "Name", "Name": "", "Items": [ - "[random]->", "^skjdjkj$" ], "Description": "" @@ -584,7 +644,7 @@ class TestAccounts: "Model": "create", "Type": 0, "Name": "", - "Search type": "Name&Description&Details", + "Search type": "Name&Description", "Items": [ "[random]->" ], |
