From d13252673b05942194971f83f6612c45848901fd Mon Sep 17 00:00:00 2001 From: Ahmed ElShreif Date: Sat, 3 Aug 2019 11:51:11 -0500 Subject: uitest: log more events Impress: 1) Delete Slide 2) Duplicate Slide 3) Rename Slide Draw: 1) Delte Page 2) Rename Page Change-Id: I124bdf96c58dfe00bdb039c5e93afc0dc6e7163d --- uitest/ui_logger_dsl/Special_commands.tx | 28 +++++++++++++++++++++++++--- uitest/ui_logger_dsl/dsl_core.py | 5 +++++ 2 files changed, 30 insertions(+), 3 deletions(-) (limited to 'uitest') diff --git a/uitest/ui_logger_dsl/Special_commands.tx b/uitest/ui_logger_dsl/Special_commands.tx index 1d11067424a9..335b6d24e7d3 100644 --- a/uitest/ui_logger_dsl/Special_commands.tx +++ b/uitest/ui_logger_dsl/Special_commands.tx @@ -128,12 +128,16 @@ select_options: This part for all the impress log statments: 1) Type - 2) Insert New Page + 2) Insert New Slide + 3) Delete Slide + 4) Duplicate Slide + 5) Rename Slide then we can add whatever we need in the future */ impress_command: - impress_Type_command | impress_Insert_Slide + impress_Type_command | impress_Insert_Slide | impress_Delete_Page | + impress_Duplicate_Slide | impress_Rename_Slide ; impress_Type_command: 'Type on impress ' what_to_type=Type_options @@ -141,6 +145,15 @@ impress_Type_command: impress_Insert_Slide: 'Insert New Slide at Position ' position_num=INT ; +impress_Delete_Page: + 'Delete Slide number ' position_num=INT +; +impress_Duplicate_Slide: + 'Duplicate The Selected Slide ' +; +impress_Rename_Slide: + 'Rename The Selected Slide from ' old_name=STRING 'to' new_name=STRING +; //=================================================================// /* This part for all the math log statments: @@ -166,15 +179,24 @@ math_Type_command: 1) Type 2) Insert New Page + 3) Delete Page + 4) Rename Page then we can add whatever we need in the future */ draw_command: - draw_Type_command | draw_Insert_Page + draw_Type_command | draw_Insert_Page | draw_Delete_Page | + draw_Rename_Page ; draw_Type_command: 'Type on draw ' what_to_type=Type_options ; draw_Insert_Page: 'Insert New Page at Position ' position_num=INT +; +draw_Delete_Page: + 'Delete Page number ' position_num=INT +; +draw_Rename_Page: + 'Rename The Selected Page from ' old_name=STRING 'to' new_name=STRING ; \ No newline at end of file diff --git a/uitest/ui_logger_dsl/dsl_core.py b/uitest/ui_logger_dsl/dsl_core.py index 9a5f375b5aa9..1eaa33a441cd 100644 --- a/uitest/ui_logger_dsl/dsl_core.py +++ b/uitest/ui_logger_dsl/dsl_core.py @@ -102,7 +102,12 @@ class ul_Compiler: 'calc_Merge_Cells':self.do_nothing, 'calc_UNMerge_Cells':self.do_nothing, 'impress_Insert_Slide':self.do_nothing, + 'impress_Delete_Page':self.do_nothing, + 'impress_Duplicate_Slide':self.do_nothing, + 'impress_Rename_Slide':self.do_nothing, 'draw_Insert_Page':self.do_nothing, + 'draw_Delete_Page':self.do_nothing, + 'draw_Rename_Page':self.do_nothing, }) self.log_lines=self.get_log_file(self.input_address) -- cgit