diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2020-08-24 11:39:37 +0200 |
---|---|---|
committer | Ahmed ElShreif <aelshreif7@gmail.com> | 2020-08-27 20:29:22 +0200 |
commit | 707903aa8c74047c4fe6364b114b0736f61a4b4d (patch) | |
tree | d75f8fcb69bc2c95409d602c0c36033cc695812a /svtools | |
parent | 98b47440d2f95504f6bca82d2081343bdc183cde (diff) |
uilogger : Add support in the Logger and DSL for ValueSet
For example the DSL syntax will be:
>>Choose element with position 18 in 'colorset' from 'cui/ui/colorpage/colorset'
Change-Id: I9186b870da096719873c8709dedbc4bb4d315e2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101267
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index e56f3e7e2d43..96216831e4d7 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -44,6 +44,8 @@ #include <boost/property_tree/ptree.hpp> #include <uiobject.hxx> +#include <vcl/uitest/logger.hxx> +#include <vcl/uitest/eventdescription.hxx> using namespace css::uno; using namespace css::lang; @@ -51,6 +53,16 @@ using namespace css::accessibility; namespace { +void collectUIInformation( const OUString& aID , const OUString& aParentID , const OUString& aPos ) +{ + EventDescription aDescription; + aDescription.aID = aID ; + aDescription.aParameters = {{"POS", aPos }}; + aDescription.aAction = "SELECT"; + aDescription.aKeyWord = "ValueSet"; + aDescription.aParent = aParentID; + UITestLogger::getInstance().logEvent(aDescription); +} enum { @@ -155,6 +167,7 @@ void ValueSet::ImplDeleteItems() void ValueSet::Select() { maSelectHdl.Call( this ); + collectUIInformation(OStringToOUString(GetDrawingArea()->get_buildable_name(),RTL_TEXTENCODING_UTF8) , OStringToOUString(GetDrawingArea()->get_help_id(),RTL_TEXTENCODING_UTF8) , OUString::number(GetSelectedItemId())); } void ValueSet::UserDraw( const UserDrawEvent& ) |