diff options
| author | youzhijiang <[email protected]> | 2024-11-26 19:10:58 +0800 |
|---|---|---|
| committer | youzhijiang <[email protected]> | 2024-11-26 19:10:58 +0800 |
| commit | 2b38630962a53b763f06ecb8c6cea479eb6d30f4 (patch) | |
| tree | 90ac5a7d7185b9f4805397b335c292791a80add6 /support/ui_utils/ui_client.py | |
| parent | 9c0388656c344271a780677eb30ad10f4706823f (diff) | |
object逻辑调整
Diffstat (limited to 'support/ui_utils/ui_client.py')
| -rw-r--r-- | support/ui_utils/ui_client.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/support/ui_utils/ui_client.py b/support/ui_utils/ui_client.py index 7a6fcd5e9..1bec8ecdf 100644 --- a/support/ui_utils/ui_client.py +++ b/support/ui_utils/ui_client.py @@ -31,21 +31,21 @@ class UIClient: objects = CreateObjects(self.driver) code = objects.create_objects(policy_configuration) return code - - def search_objects(self, policy_configuration, search_type): - objects = SearchObjects() - objects_tuple, code = objects.search_objects(policy_configuration, search_type) + + def search_objects(self, name, policy_configuration, search_type): + objects = SearchObjects(self.driver) + objects_tuple, code = objects.get_object_uuid(name, policy_configuration) self.objects_tuple = objects_tuple return objects_tuple, code - def edit_objects(self, objects_tuple, policy_configuration): - objects = EditObjectsExample() - code = objects.edit_objects(objects_tuple, policy_configuration, self.driver) + def edit_objects(self, objects_tuple, src_item,new_item): + objects = EditObjects(self.driver) + code = objects.edit(objects_tuple, src_item,new_item) return code def delete_objects(self, objects_tuple): - objects = DeleteObjectsExample(self.driver) - objects.delete_objects(self.parameter, objects_tuple) + objects = DeleteObjects(self.driver) + objects.delete(self.parameter, objects_tuple) def create_rules(self, policy_configuration): self.policy_configuration = policy_configuration |
