setAutoWaitTimeout(10000) val = getFindFailedResponse() if val == ABORT: print "Abort" if val == SKIP: print "SKIP" if val == PROMPT: print "PROMPT" if val == RETRY: print "RETRY" def common_test(a,b,c): for i in range(a,b): wait(c) if exists("Next.png"): click("Next.png") #ActionTest click("ActionsTest.png") print("Run ActionsTest") common_test(1,28,1.0) click(Pattern("MainMenu_Common.png").targetOffset(-93,0)) common_test(1,3,3.0) common_test(1,6,1.0) print("ActionsTest finished!") click("MainMenu_Common.png") #TransitionsTest click("TransitionsTest.png") print("Run TransitionsTest") common_test(1,27,1.0) print("TransitionsTest finished!") click(Pattern("1346297215212.png").targetOffset(49,0)) #ActionsProgressTest click("ActionsProgressTest.png") print("Run ActionsProgressTest") common_test(1,8,1.0) print("ActionsProgressTest finished!") click("MainMenu_ActionsProgress.png") #EffectsTest click("EffectsTest.png") print("Run EffectsTest") common_test(1,22,3.0) print("Effects finished!") click("MainMenu_Effects.png") #ClickAndMoveTest print("Run ClickAndMoveTest") click("CickAndMoveTest.png") wait(4) click("ClickAndMove_Click.png") click(Pattern("ClickAndMove_Click.png").targetOffset(200,-3)) click("MainMenu_ClickAndMove.png") print("ClickAndMoveTest finished!") #RotateWorldTest print("Run RotateWorldTest") click("RotateWorldTest.png") wait(4) click("MainMenu_ActionsProgress.png") print("RotateWorldTest finished!") #ParticleTest print("Run ParticleTest") click("ParticleTest.png") common_test(1,43,2.0) print("ParticleTest finished!") click("MainMenu_Common.png") dragDrop(Pattern("ParticleTest-1.png").targetOffset(91,17), Pattern("Acti0nsTest.png").targetOffset(93,-19)) #ActionEaseTest print("Run ActionEaseTest") click("ActionsEaseTest.png") common_test(1,14,2.0) click("MainMenu_Common.png") print("ActionEaseTest finished!") #MotionStreakTest print("Run MotionStreakTest") click("MotionStreakTest.png") wait(1.0) click(Pattern("MotionStreak_ChangeFastMode.png").targetOffset(20,0)) wait(1.0) click("Next.png") dragDrop("Motion_Drag1.png", "Motion_Drag2.png") click(Pattern("MotionStreak_ChangeFastMode.png").targetOffset(20,0)) dragDrop("Motion_Drag1.png", "Motion_Drag2.png") click("Next.png") click(Pattern("MotionStreak_ChangeFastMode.png").targetOffset(20,0)) wait(1.0) click("MainMenu_Common.png") print("MotionStreakTest finished!") #DrawPimitivesTest print("Run DrawPimitivesTest") click("DrawPrimitivesTest.png") if exists("DrawPrimitives.png"): print("DrawPrimitivesTest success!") print("DrawPimitivesTest finished!") click("MainMenu_DrawPimitives.png") #NodeTest print("Run NodeTest") click("NodeTest.png") common_test(1,14,1.0) click("MainMenu_Common.png") print("NodeTest finished!") #TouchesTest print("Run TouchesTest") click("TouchesTest.png") wait(1.0) click("MainMenu_Common.png") print("TouchesTest finished!") #MenuTest print("Run MenuTest") click("MenuTest.png") click("MenuTest_AtlasSprite.png") click("MenuTest_HighScores.png") click("MenuTest_Play.png") click("MenuTest_Eitems.png") click("MenuTest_Config.png") click("MenuTest_Back.png") click("MenuTest_Quit.png") click("MainMenu_Common.png") print("MenuTest finished!") #ActionManagerTest print("Run ActionManagerTest") click("ActionManaerTest.png") common_test(1,5,3.0) click("MainMenu_Common.png") print("ActionManagerTest finished!") #LayerTest print("Run LayerTest") click("LayerTest.png") dragDrop("Layer_Drag1.png", "Layer_Drag2.png") click("Next.png") wait(1.0) click("Next.png") wait(1.0) click("Next.png") dragDrop("Layer_Drag3.png", "Layer_Drag4.png") common_test(1,3,1.0) click("MainMenu_Common.png") print("LayerTest finished!") dragDrop(Pattern("LaverTest-1.png").targetOffset(98,6), Pattern("Acti0nsEaseT.png").targetOffset(106,-11)) #SceneTest print("Run SceneTest") click("SceneTest.png") click("Scene_pushScene.png") click("Scene_relaceScene.png") click("Scene_popToRoot.png") click("Scene_Quit.png") click("MainMenu_Common.png") print("SceneTest finished!") #ParallaxTest print("Run ParallaxTest") click("ParaIIaxTest.png") wait(3.0) click("Next.png") dragDrop("Parallax_Drag1.png", "Parallax_Drag2.png") click("MainMenu_Parallax.png") print("ParallaxTest finished!") #TileMapTest print("Run TileMapTest") click("TileMapTest.png") common_test(1,21,2.0) click("MainMenu_TileMap.png") print("TileMapTest finished!") #IntervalTest print("Run IntervalTest") click("IntervaITest.png") wait(2.0) click("Interval_pause.png") wait(1.0) click("Interval_pause.png") click("MainMenu_Common.png") print("IntervalTest finished!") #ChipmunkAccelTouchTest print("Run ChipmunkAccelTouchTest") click("ChipmunkAccelTouchTest.png") for i in range(1,3): click("ChipmunkAccelTouchTest_Click.png") for i in range(1,3): click("it.png") wait(3.0) click("MainMenu_Common.png") print("ChipmunkAccelTouchTest finished!") #LabelTest print("Run LabelTest") click("LabeITest.png") wait(1.0) common_test(1,26,0.5) click("MainMenu_Common.png") print("LabelTest finished!") #TextInputTest print("Run TextInputTest") click("TextInputTest.png") type("TextInput_herefor.png", "1q~