33
33
startApplication("qtcreator" + SettingsPath)
34
34
if not startedWithoutPluginError():
36
# using a temporary directory won't mess up a potentially existing
37
workingDir = tempDir()
38
checkedTargets, projectName = createNewQtQuickApplication(workingDir,
39
targets = Targets.DESKTOP_474_GCC)
40
test.log("Building project")
41
result = modifyRunSettingsForHookInto(projectName, len(checkedTargets), 11223)
42
invokeMenuItem("Build", "Build All")
43
waitForSignal("{type='ProjectExplorer::BuildManager' unnamed='1'}", "buildQueueFinished(bool)")
44
if not checkCompile():
45
test.fatal("Compile failed")
48
test.log("Running project (includes build)")
50
result = addExecutableAsAttachableAUT(projectName, 11223)
51
allowAppThroughWinFW(workingDir, projectName)
36
for targ, qVer in {Targets.DESKTOP_480_GCC:1, Targets.DESKTOP_501_DEFAULT:2}.items():
37
# using a temporary directory won't mess up a potentially existing
38
workingDir = tempDir()
39
checkedTargets, projectName = createNewQtQuickApplication(workingDir, targets=targ,
41
test.log("Building project Qt Quick %d Application (%s)"
42
% (qVer, Targets.getStringForTarget(targ)))
43
result = modifyRunSettingsForHookInto(projectName, len(checkedTargets), 11223)
44
invokeMenuItem("Build", "Build All")
45
waitForSignal("{type='ProjectExplorer::BuildManager' unnamed='1'}", "buildQueueFinished(bool)")
46
if not checkCompile():
47
test.fatal("Compile failed")
50
test.log("Running project (includes build)")
53
result = runAndCloseApp(True, projectName, 11223, "subprocessFunction", SubprocessType.QT_QUICK_APPLICATION)
52
result = addExecutableAsAttachableAUT(projectName, 11223)
53
allowAppThroughWinFW(workingDir, projectName)
55
result = runAndCloseApp(True, projectName, 11223, "subprocessFunction", SubprocessType.QT_QUICK_APPLICATION)
57
result = runAndCloseApp(sType=SubprocessType.QT_QUICK_APPLICATION)
58
removeExecutableAsAttachableAUT(projectName, 11223)
59
deleteAppFromWinFW(workingDir, projectName)
55
result = runAndCloseApp(sType=SubprocessType.QT_QUICK_APPLICATION)
56
removeExecutableAsAttachableAUT(projectName, 11223)
57
deleteAppFromWinFW(workingDir, projectName)
59
result = runAndCloseApp()
61
logApplicationOutput()
61
result = runAndCloseApp()
63
logApplicationOutput()
64
invokeMenuItem("File", "Close All Projects and Editors")
63
66
invokeMenuItem("File", "Exit")