Author: titmuss
Date: Thu Apr 24 07:12:14 2008
New Revision: 2335
URL: http://svn.slimdevices.com?rev=2335&root=Jive&view=rev
Log:
Bug: N/A
Description:
Macro to perform a factory reset.
Added:
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset1.bmp
(with props)
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset2.bmp
(with props)
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryResetMacro.lua
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Home.bmp (with
props)
Modified:
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua
Added: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset1.bmp
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset1.bmp?rev=2335&root=Jive&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset1.bmp
------------------------------------------------------------------------------
svn:executable = *
Propchange:
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset1.bmp
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset2.bmp
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset2.bmp?rev=2335&root=Jive&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset2.bmp
------------------------------------------------------------------------------
svn:executable = *
Propchange:
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryReset2.bmp
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added:
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryResetMacro.lua
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryResetMacro.lua?rev=2335&root=Jive&view=auto
==============================================================================
--- 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryResetMacro.lua
(added)
+++ 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/FactoryResetMacro.lua
Thu Apr 24 07:12:14 2008
@@ -1,0 +1,54 @@
+
+-- go home
+macroHome()
+
+
+-- Settings
+while not macroIsMenuItem("Settings") do
+ macroEvent(100, EVENT_KEY_PRESS, KEY_DOWN)
+end
+macroEvent(100, EVENT_KEY_PRESS, KEY_GO)
+
+if not macroScreenshot(1000, "Settings") then
+ return macroFail("Settings")
+end
+
+
+-- Advanced
+while not macroIsMenuItem("Advanced") do
+ macroEvent(100, EVENT_KEY_PRESS, KEY_DOWN)
+end
+macroEvent(100, EVENT_KEY_PRESS, KEY_GO)
+
+if not macroScreenshot(1000, "Advanced") then
+ return macroFail("Advanced")
+end
+
+
+-- Factory Reset
+while not macroIsMenuItem("Factory Reset") do
+ macroEvent(100, EVENT_KEY_PRESS, KEY_DOWN)
+end
+macroEvent(500, EVENT_KEY_PRESS, KEY_GO)
+
+if not macroScreenshot(1000, "FactoryReset1") then
+ return macroFail("FactoryReset1")
+end
+
+
+-- Begin update
+while not macroIsMenuItem("Continue") do
+ macroEvent(100, EVENT_KEY_PRESS, KEY_DOWN)
+end
+macroEvent(1000, EVENT_KEY_PRESS, KEY_GO)
+
+if not macroScreenshot(1000, "FactoryReset2") then
+ return macroFail("FactoryReset2")
+end
+
+macroPass("FactoryReset")
+
+-- 1 minute delay to allow upgrade to complete, this is never expected
+-- to return
+macroDelay(60000)
+macroFail("Timeout")
Added: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Home.bmp
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Home.bmp?rev=2335&root=Jive&view=auto
==============================================================================
Binary file - no diff available.
Propchange: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Home.bmp
------------------------------------------------------------------------------
svn:executable = *
Propchange: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Home.bmp
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua?rev=2335&root=Jive&r1=2334&r2=2335&view=diff
==============================================================================
--- 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua (original)
+++ 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua Thu Apr 24
07:12:14 2008
@@ -21,6 +21,11 @@
desc="Verify the home menu.",
file="HomeMenuMacro.lua",
name="Home Menu"
+ },
+ factoryReset={
+ desc="Verify a factory reset.",
+ file="FactoryResetMacro.lua",
+ name="Factory Reset"
}
}
}
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins