summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSaurav Chirania <saurav.chir@gmail.com>2018-07-13 01:13:11 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-31 00:35:42 +0200
commit7e65a0794b7c57210779bb9a6d1f2b2e49eb86e9 (patch)
treeb15fe5aa2c79b8c1f1cbba28b1be2acbde025ce0 /sfx2
parent051399740e41c6495ed362e78c63e0868bcd180c (diff)
uitest logger: log more events
Logging for the following: 1) Object Selection 2) Sidebar / Deck opening 3) Parameters of UNO commands 4) Element Selection (Math) 5) Set Zoom (Impress) 6) Calc - a) Autofilter Launch b) Select Cell / Range of cells c) Switch table 7) Writer - a) Goto page b) Set Zoom Change-Id: Ifc7f603f62d10cfd1062923ded68203e574aebb6 Reviewed-on: https://gerrit.libreoffice.org/57368 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx6
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx18
2 files changed, 21 insertions, 3 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 2bf002844284..819d3c4cb238 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -594,13 +594,13 @@ void collectUsageInformation(const util::URL& rURL, const uno::Sequence<beans::P
theUsageInfo::get().increment(aCommand);
}
-void collectUIInformation(const util::URL& rURL)
+void collectUIInformation(const util::URL& rURL, const css::uno::Sequence< css::beans::PropertyValue >& rArgs)
{
static const char* pFile = std::getenv("LO_COLLECT_UIINFO");
if (!pFile)
return;
- UITestLogger::getInstance().logCommand("CommandSent Name:" + rURL.Complete);
+ UITestLogger::getInstance().logCommand("CommandSent Name:" + rURL.Complete, rArgs);
}
}
@@ -610,7 +610,7 @@ void SfxDispatchController_Impl::dispatch( const css::util::URL& aURL,
const css::uno::Reference< css::frame::XDispatchResultListener >& rListener )
{
collectUsageInformation(aURL, aArgs);
- collectUIInformation(aURL);
+ collectUIInformation(aURL,aArgs);
SolarMutexGuard aGuard;
if (
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 4f2b3e900d6a..b7b604869213 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -37,6 +37,8 @@
#include <framework/ContextChangeEventMultiplexerTunnel.hxx>
#include <vcl/floatwin.hxx>
#include <vcl/fixed.hxx>
+#include <vcl/uitest/logger.hxx>
+#include <vcl/uitest/eventdescription.hxx>
#include <splitwin.hxx>
#include <tools/link.hxx>
#include <toolkit/helper/vclunohelper.hxx>
@@ -514,6 +516,21 @@ void SidebarController::UpdateConfigurations()
}
}
+namespace {
+
+void collectUIInformation(const OUString& rDeckId)
+{
+ EventDescription aDescription;
+ aDescription.aAction = "SIDEBAR";
+ aDescription.aParent = "MainWindow";
+ aDescription.aParameters = {{"PANEL", rDeckId}};
+ aDescription.aKeyWord = "CurrentApp";
+
+ UITestLogger::getInstance().logEvent(aDescription);
+}
+
+}
+
void SidebarController::OpenThenToggleDeck (
const OUString& rsDeckId)
{
@@ -540,6 +557,7 @@ void SidebarController::OpenThenToggleDeck (
SwitchToDeck(rsDeckId);
mpTabBar->Invalidate();
mpTabBar->HighlightDeck(rsDeckId);
+ collectUIInformation(rsDeckId);
}
void SidebarController::OpenThenSwitchToDeck (