diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2019-07-18 13:53:08 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2019-08-19 22:56:38 +0800 |
commit | 9545e8ac286d0e18d9526df95cbc6e7da4aca738 (patch) | |
tree | 931b690d459c08a3b324d5f3d2a64ab1572adfe4 /vcl/source/uitest | |
parent | bf94b044a11740323853933f0aedf55ceb143ee1 (diff) |
uitest: log more events
for Calc:
1) Delete some Cells
2) Remove content from some cells
3) Insert Cells
4) Cut Cells
5) Copy Cells
6) Paste Cells
7) Merge Cells
8) Split Cell ( Delete Merge )
for Writer:
1) Insert Table
2) Copy Text
3) Cut Text
4) Paste Text
5) Inser Break Page
Also, Solve some bugs in the UI logger and UNO Commands.
Change-Id: Ic7cacbc20e1e400900a9760b61e8b45ae96c84ff
Diffstat (limited to 'vcl/source/uitest')
-rw-r--r-- | vcl/source/uitest/logger.cxx | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx index 2b3d11691dc5..ab632fb35594 100644 --- a/vcl/source/uitest/logger.cxx +++ b/vcl/source/uitest/logger.cxx @@ -231,8 +231,7 @@ void UITestLogger::logKeyInput(VclPtr<vcl::Window> const & xUIElement, const Key aContent = "Type on math " + aKeyCode ; } else{ - aContent= pUIObject->get_type() + " Action:TYPE Id:" + - rID + " Parent:"+ aParentID +" " + aKeyCode; + aContent = "Type on '" + rID + "' " + aKeyCode + " from " + aParentID ; } maStream.WriteLine(OUStringToOString(aContent, RTL_TEXTENCODING_UTF8)); } @@ -301,14 +300,29 @@ void UITestLogger::logEvent(const EventDescription& rDescription) aLogLine = "Select " + aParameterString; } else if(rDescription.aID=="writer_edit"){ - if(rDescription.aAction=="GOTO"){ aLogLine = "GOTO page number " + GetValueInMapWithIndex(rDescription.aParameters,0); } else if(rDescription.aAction=="SELECT"){ OUString to = GetValueInMapWithIndex(rDescription.aParameters,0); OUString from = GetValueInMapWithIndex(rDescription.aParameters,1); - aLogLine = "Select from Pos " + from + " to Pos" + to ; + aLogLine = "Select from Pos " + from + " to Pos " + to ; + } + else if(rDescription.aAction=="CREATE_TABLE"){ + OUString size = GetValueInMapWithIndex(rDescription.aParameters,0); + aLogLine = "Create Table with " + size; ; + } + else if(rDescription.aAction=="COPY"){ + aLogLine = "Copy the Selected Text"; + } + else if(rDescription.aAction=="CUT"){ + aLogLine = "Cut the Selected Text"; + } + else if(rDescription.aAction=="PASTE"){ + aLogLine = "Paste in the Current Cursor Location"; + } + else if(rDescription.aAction=="BREAK_PAGE"){ + aLogLine = "Insert Break Page"; } } else if(rDescription.aID=="grid_window"){ @@ -328,6 +342,30 @@ void UITestLogger::logEvent(const EventDescription& rDescription) GetValueInMapWithIndex(rDescription.aParameters,2) + " and Row " + GetValueInMapWithIndex(rDescription.aParameters,1); } + else if(rDescription.aAction=="DELETE_CONTENT"){ + aLogLine = "Remove Content from This " + aParameterString; + } + else if(rDescription.aAction=="DELETE_CELLS"){ + aLogLine = "Delete The Cells in" + aParameterString; + } + else if(rDescription.aAction=="INSERT_CELLS"){ + aLogLine = "Insert Cell around the " + aParameterString; + } + else if(rDescription.aAction=="CUT"){ + aLogLine = "CUT the selected " + aParameterString; + } + else if(rDescription.aAction=="COPY"){ + aLogLine = "COPY the selected " + aParameterString; + } + else if(rDescription.aAction=="PASTE"){ + aLogLine = "Paste in the " + aParameterString; + } + else if(rDescription.aAction=="MERGE_CELLS"){ + aLogLine = "Merge " + aParameterString; + } + else if(rDescription.aAction=="UNMERGE_CELL"){ + aLogLine = "Delete the merged " + aParameterString; + } } else if(rDescription.aParent=="element_selector"){ aLogLine ="Select element no " + rDescription.aID + |