summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurav Chirania <saurav.chir@gmail.com>2018-06-12 14:48:41 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-06-24 22:24:30 +0200
commit641e42859e7f9c392aaf81dc8ca69f6c4fbc1b1b (patch)
treed7c0b4c95407936ebdd994faed18101f7b17163b
parent2c317751c4b7661c10bd9eb11094febeccd1b816 (diff)
uitest logger: print parent when logging keys
Change-Id: I130f266016dc51dab5e4d1395fe579ca21a1b835 Reviewed-on: https://gerrit.libreoffice.org/55675 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--vcl/source/uitest/logger.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index e9a18df9b400..69620b0df610 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -159,8 +159,10 @@ void UITestLogger::logKeyInput(VclPtr<vcl::Window> const & xUIElement, const Key
std::unique_ptr<UIObject> pUIObject = xUIElement->GetUITestFactory()(xUIElement.get());
+ OUString parent_id = xUIElement->GetParent()->get_id();
+
OUString aContent = pUIObject->get_type() + " Action:TYPE Id:" +
- rID + " Parent: UNKNOWN "+ aKeyCode;
+ rID + " Parent:"+ parent_id +" " + aKeyCode;
maStream.WriteLine(OUStringToOString(aContent, RTL_TEXTENCODING_UTF8));
}