diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2019-08-03 11:51:11 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2019-08-19 22:56:38 +0800 |
commit | d13252673b05942194971f83f6612c45848901fd (patch) | |
tree | 145f6d9471b8707c9a0e8c32a1c7c0a79920c8d6 /vcl | |
parent | be85e2d1d78aba2a0554645acbbacacf200f1bb4 (diff) |
uitest: log more events
Impress:
1) Delete Slide
2) Duplicate Slide
3) Rename Slide
Draw:
1) Delte Page
2) Rename Page
Change-Id: I124bdf96c58dfe00bdb039c5e93afc0dc6e7163d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/uitest/logger.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx index b9b86fdc92c5..502c0a9f0244 100644 --- a/vcl/source/uitest/logger.cxx +++ b/vcl/source/uitest/logger.cxx @@ -379,6 +379,27 @@ void UITestLogger::logEvent(const EventDescription& rDescription) aLogLine = "Insert New Page at Position " + GetValueInMapWithIndex(rDescription.aParameters,0); } } + else if(rDescription.aAction=="Delete_Slide_or_Page"){ + if(UITestLogger::getInstance().getAppName()=="impress"){ + aLogLine = "Delete Slide number "+ GetValueInMapWithIndex(rDescription.aParameters,0); + } + else if(UITestLogger::getInstance().getAppName()=="draw"){ + aLogLine = "Delete Page number "+ GetValueInMapWithIndex(rDescription.aParameters,0); + } + } + else if(rDescription.aAction=="Duplicate"){ + aLogLine = "Duplicate The Selected Slide "; + } + else if(rDescription.aAction=="RENAME"){ + if(UITestLogger::getInstance().getAppName()=="impress"){ + aLogLine = "Rename The Selected Slide from \""+ GetValueInMapWithIndex(rDescription.aParameters,1)+\ + "\" to \"" + GetValueInMapWithIndex(rDescription.aParameters,0)+"\""; + } + else if(UITestLogger::getInstance().getAppName()=="draw"){ + aLogLine = "Rename The Selected Page from \""+ GetValueInMapWithIndex(rDescription.aParameters,1)+\ + "\" to \"" + GetValueInMapWithIndex(rDescription.aParameters,0)+"\""; + } + } } else if(rDescription.aParent=="element_selector"){ aLogLine ="Select element no " + rDescription.aID + |