summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorAhmed ElShreif <aelshreif7@gmail.com>2019-06-24 11:40:17 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2019-08-19 22:56:36 +0800
commit5578bc99542953b6318a117a4e4b99f12964d9d2 (patch)
tree99e1304056ba08f1dbd5e726b2d2c0f16dcea590 /uitest
parent9d1c3b7ab6f6e2a2d1a29d35185eee911df30ea3 (diff)
uitest: Some new features in ui_logger project
this patch for: 1) general commands grammar 2) special commands of impress and math 3) log select element action 4) log SideBar Actions Change-Id: If375cd3396cfde45f70d7c202339c829b1c43471
Diffstat (limited to 'uitest')
-rw-r--r--uitest/ui_logger_dsl/General_commands.tx21
-rw-r--r--uitest/ui_logger_dsl/Special_commands.tx39
-rw-r--r--uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx4
3 files changed, 58 insertions, 6 deletions
diff --git a/uitest/ui_logger_dsl/General_commands.tx b/uitest/ui_logger_dsl/General_commands.tx
new file mode 100644
index 000000000000..fb8f6115f450
--- /dev/null
+++ b/uitest/ui_logger_dsl/General_commands.tx
@@ -0,0 +1,21 @@
+/*
+ This file for the log statments that is general for all application
+ we can use it as general commands then relate it to its application
+ as we have starter command
+ //====================================
+ also I make set zoom to be general as it will be better
+*/
+
+SpecialCommand:
+ SideBar | setZoom_command | Select_command
+;
+
+SideBar:
+ 'From SIDEBAR ' 'Choose ' '{"PANEL":' name=STRING '}'
+;
+setZoom_command:
+ 'Set Zoom to ' zoom_value=INT
+;
+Select_command:
+ 'Select ' '{"OBJECT":' name=STRING '}'
+; \ No newline at end of file
diff --git a/uitest/ui_logger_dsl/Special_commands.tx b/uitest/ui_logger_dsl/Special_commands.tx
index b73fddf805a4..40113495ac9e 100644
--- a/uitest/ui_logger_dsl/Special_commands.tx
+++ b/uitest/ui_logger_dsl/Special_commands.tx
@@ -4,7 +4,7 @@ import type_options
*/
SpecialCommand:
- writer_command | calc_command
+ writer_command | calc_command | impress_command | math_command
;
/*
@@ -26,9 +26,6 @@ Type_command:
Select_command:
'Select from Pos' from=INT 'to Pos' to=INT
;
-setZoom_command:
- 'Set Zoom to ' zoom_value=INT
-;
GOTO_command:
'GOTO page number' page_num=INT
;
@@ -68,4 +65,38 @@ one_cell:
'{' '"CELL":' input_cell=STRING '}'
;
//=================================================================//
+/*
+ This part for all the impress log statments:
+
+ 1) Type
+ 3) Set zoom
+
+ then we can add whatever we need in the future
+*/
+impress_command:
+ impress_Type_command
+;
+impress_Type_command:
+ 'Type on impress ' what_to_type=Type_options
+;
+//=================================================================//
+/*
+ This part for all the math log statments:
+
+ 1) element selector
+ 2) Type
+
+ then we can add whatever we need in the future
+*/
+math_command:
+ element_selector | math_Type_command
+;
+element_selector:
+ 'Select element no ' element_no=INT ' From ' place=ID
+;
+math_Type_command:
+ 'Type on math ' what_to_type=Type_options
+;
+
+
diff --git a/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx b/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx
index 516ee8694923..ffde0c4c1525 100644
--- a/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx
+++ b/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx
@@ -5,14 +5,14 @@ import starter_commands
import uno_commands
import UI_Object_commands
import Special_commands
-
+import General_commands
UILogger:
commands*=Command
;
Command:
- UNOCommand | StarterCommand | UIObjectCommand | DialogCommand | SpecialCommand
+ UNOCommand | StarterCommand | UIObjectCommand | DialogCommand | SpecialCommand | GeneralCommand
;
Comment: