tests/ide_tests/svghmi_basic.sikuli/svghmi_basic.py
changeset 3840 c2b6354f036f
child 3853 e1cfb03e6582
equal deleted inserted replaced
3839:a466d4468d7a 3840:c2b6354f036f
       
     1 """ This test opens, builds and runs exemple project named "python".
       
     2 Test succeeds if runtime's stdout behaves as expected
       
     3 """
       
     4 
       
     5 import os
       
     6 import time
       
     7 
       
     8 # allow module import from current test directory's parent
       
     9 addImportPath(os.path.dirname(getBundlePath()))
       
    10 
       
    11 # common test definitions module
       
    12 from sikuliberemiz import *
       
    13 
       
    14 def test(app):
       
    15     # Start the app
       
    16     
       
    17     app.k.Clean()
       
    18     
       
    19     app.waitForChangeAndIdleStdout()
       
    20     
       
    21     app.k.Build()
       
    22     
       
    23     app.waitPatternInStdout("Successfully built.", 10)
       
    24     
       
    25     app.k.Connect()
       
    26     
       
    27     app.waitForChangeAndIdleStdout()
       
    28     
       
    29     app.k.Transfer()
       
    30     
       
    31     app.waitForChangeAndIdleStdout()
       
    32     
       
    33     app.k.Run()
       
    34 
       
    35     app.waitForChangeAndIdleStdout()
       
    36     # app.WaitIdleUI()
       
    37 
       
    38     app.click("OFF")
       
    39 
       
    40     # wait 10 seconds for 10 Grumpfs
       
    41     return app.waitPatternInStdout("ALL GREEN LIGHTS", 10)
       
    42     
       
    43 run_test(test, testproject="svghmi_basic")