diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2019-08-02 22:16:31 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2019-08-19 22:56:38 +0800 |
commit | be85e2d1d78aba2a0554645acbbacacf200f1bb4 (patch) | |
tree | 62224530e51bc88c299d85f0747defa51c622475 /uitest | |
parent | 3c5fe9ae9f15fccecdd91b32c225c3cbd854eff0 (diff) |
uitest: add more events to ui logger
for Impress:
add new Slide
for Draw:
add new Page
Modify the UILogger System to save information about the name of the app
Change-Id: I87fd98b2a11783e3410f1c0eba633631addf389b
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/ui_logger_dsl/Special_commands.tx | 14 | ||||
-rw-r--r-- | uitest/ui_logger_dsl/dsl_core.py | 2 |
2 files changed, 12 insertions, 4 deletions
diff --git a/uitest/ui_logger_dsl/Special_commands.tx b/uitest/ui_logger_dsl/Special_commands.tx index 5fbd9972a275..1d11067424a9 100644 --- a/uitest/ui_logger_dsl/Special_commands.tx +++ b/uitest/ui_logger_dsl/Special_commands.tx @@ -128,17 +128,19 @@ select_options: This part for all the impress log statments: 1) Type - 2) Set zoom + 2) Insert New Page then we can add whatever we need in the future */ impress_command: - impress_Type_command + impress_Type_command | impress_Insert_Slide ; impress_Type_command: 'Type on impress ' what_to_type=Type_options ; - +impress_Insert_Slide: + 'Insert New Slide at Position ' position_num=INT +; //=================================================================// /* This part for all the math log statments: @@ -163,12 +165,16 @@ math_Type_command: This part for all the draw log statments: 1) Type + 2) Insert New Page then we can add whatever we need in the future */ draw_command: - draw_Type_command + draw_Type_command | draw_Insert_Page ; draw_Type_command: 'Type on draw ' what_to_type=Type_options +; +draw_Insert_Page: + 'Insert New Page at Position ' position_num=INT ;
\ 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 8d5a8a82ac0b..9a5f375b5aa9 100644 --- a/uitest/ui_logger_dsl/dsl_core.py +++ b/uitest/ui_logger_dsl/dsl_core.py @@ -101,6 +101,8 @@ class ul_Compiler: 'calc_Copy_Cells':self.do_nothing, 'calc_Merge_Cells':self.do_nothing, 'calc_UNMerge_Cells':self.do_nothing, + 'impress_Insert_Slide':self.do_nothing, + 'draw_Insert_Page':self.do_nothing, }) self.log_lines=self.get_log_file(self.input_address) |