edouard@3840: """ This test opens, builds and runs exemple project named "python". edouard@3840: Test succeeds if runtime's stdout behaves as expected edouard@3840: """ edouard@3840: edouard@3840: import os edouard@3840: import time edouard@3840: edouard@3840: # allow module import from current test directory's parent edouard@3840: addImportPath(os.path.dirname(getBundlePath())) edouard@3840: edouard@3840: # common test definitions module edouard@3840: from sikuliberemiz import * edouard@3840: edouard@3840: def test(app): edouard@3840: # Start the app edouard@3840: edouard@3840: app.k.Clean() edouard@3840: edouard@3840: app.waitForChangeAndIdleStdout() edouard@3840: edouard@3840: app.k.Build() edouard@3840: edouard@3840: app.waitPatternInStdout("Successfully built.", 10) edouard@3840: edouard@3840: app.k.Connect() edouard@3840: edouard@3840: app.waitForChangeAndIdleStdout() edouard@3840: edouard@3840: app.k.Transfer() edouard@3840: edouard@3840: app.waitForChangeAndIdleStdout() edouard@3840: edouard@3840: app.k.Run() edouard@3840: edouard@3840: app.waitForChangeAndIdleStdout() edouard@3840: # app.WaitIdleUI() edouard@3840: edouard@3840: app.click("OFF") edouard@3840: edouard@3840: # wait 10 seconds for 10 Grumpfs edouard@3840: return app.waitPatternInStdout("ALL GREEN LIGHTS", 10) edouard@3840: edouard@3840: run_test(test, testproject="svghmi_basic")