forked from qt-creator/qt-creator
Squish: Further adaption to UI changes of debugger
Change-Id: I0e28d2f929c7a69aa61313e3e5473143dc88e5b1 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
:CppCompiler:_QComboBox {container=':qt_tabwidget_stackedwidget_QWidget' leftWidget=':CppCompiler:_QLabel' type='QComboBox' unnamed='1' visible='1'}
|
||||
:CppCompiler:_QLabel {container=':qt_tabwidget_stackedwidget_QWidget' text='C++:' type='QLabel' unnamed='1' visible='1'}
|
||||
:CppTools__Internal__CompletionSettingsPage.Behavior_QGroupBox {container=':qt_tabwidget_stackedwidget_QScrollArea' name='groupBox' title='Behavior' type='QGroupBox' visible='1'}
|
||||
:DebugModeWidget.Debugger Log_QDockWidget {container=':Qt Creator.DebugModeWidget_QSplitter' name='Debugger.Docks.OutputDockWidget' type='QDockWidget' visible='1'}
|
||||
:DebugModeWidget.Debugger Log_QDockWidget {container=':Qt Creator.DebugModeWidget_QSplitter' name='GlobalLogDockWidget' type='QDockWidget' visible='1'}
|
||||
:DebugModeWidget.Debugger.Docks.BreakDockWidget_QDockWidget {container=':Qt Creator.DebugModeWidget_QSplitter' name='Debugger.Docks.BreakpointManagerDockWidget' type='QDockWidget' visible='1'}
|
||||
:DebugModeWidget.Debugger.Docks.LocalsAndInspectorDockWidget_QDockWidget {container=':Qt Creator.DebugModeWidget_QSplitter' name='Debugger.Docks.LocalsAndInspectorDockWidget' type='QDockWidget' visible='1'}
|
||||
:DebugModeWidget.OK_QPushButton {container=':Qt Creator.DebugModeWidget_QSplitter' text='OK' type='QPushButton' unnamed='1' visible='1'}
|
||||
|
||||
@@ -51,13 +51,14 @@ def handleDebuggerWarnings(config, isMsvcBuild=False):
|
||||
clickButton("{text='OK' type='QPushButton' unnamed='1' visible='1' window=%s}" % msgBox)
|
||||
|
||||
def takeDebuggerLog():
|
||||
invokeMenuItem("Window", "Views", "Debugger Log")
|
||||
debuggerLogWindow = waitForObject("{container=':DebugModeWidget.Debugger Log_QDockWidget' type='Debugger::Internal::CombinedPane' unnamed='1' visible='1'}")
|
||||
invokeMenuItem("Window", "Views", "Global Debugger Log")
|
||||
debuggerLogWindow = waitForObject("{container=':DebugModeWidget.Debugger Log_QDockWidget' "
|
||||
"type='Debugger::Internal::DebuggerPane' unnamed='1' visible='1'}")
|
||||
debuggerLog = str(debuggerLogWindow.plainText)
|
||||
mouseClick(debuggerLogWindow, 5, 5, 0, Qt.LeftButton)
|
||||
invokeContextMenuItem(debuggerLogWindow, "Clear Contents")
|
||||
waitFor("str(debuggerLogWindow.plainText)==''", 5000)
|
||||
invokeMenuItem("Window", "Views", "Debugger Log")
|
||||
invokeMenuItem("Window", "Views", "Global Debugger Log")
|
||||
return debuggerLog
|
||||
|
||||
# function to set breakpoints for the current project
|
||||
|
||||
@@ -85,7 +85,7 @@ def main():
|
||||
|
||||
test.log("Debugging application")
|
||||
isMsvc = isMsvcConfig(kit)
|
||||
invokeMenuItem("Debug", "Start Debugging", "Start Debugging")
|
||||
invokeMenuItem("Debug", "Start Debugging", "Start debugging of \"%s\"" % project)
|
||||
handleDebuggerWarnings(config, isMsvc)
|
||||
ensureChecked(":Qt Creator_AppOutput_Core::Internal::OutputPaneToggleButton")
|
||||
outputWindow = waitForObject(":Qt Creator_Core::OutputWindow")
|
||||
|
||||
Reference in New Issue
Block a user