[asterisk-commits] jrose: testsuite/asterisk/trunk r2733 - /asterisk/trunk/tests/apps/voicemail/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 14 15:21:14 CST 2011


Author: jrose
Date: Mon Nov 14 15:21:09 2011
New Revision: 2733

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2733
Log:
Fixes voicemail test check_voicemail_new_user_hangup so that it works with the
change made earlier to set the password at the end of all other prompts for new
user creation.


Modified:
    asterisk/trunk/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test

Modified: asterisk/trunk/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test?view=diff&rev=2733&r1=2732&r2=2733
==============================================================================
--- asterisk/trunk/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test (original)
+++ asterisk/trunk/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test Mon Nov 14 15:21:09 2011
@@ -128,6 +128,22 @@
                 self.voiceMailTest.sendDTMF(self.newPassword)
             elif message == 'vm-reenterpassword':
                 self.voiceMailTest.hangup()
+            elif message == 'vm-review':
+                """ If we review a message, tell it to save the message """
+                self.voiceMailTest.sendDTMF("1")
+            elif message == 'vm-rec-name':
+                self.voiceMailTest.reset_timeout()
+                self.voiceMailTest.setTestCondition('recordName', True)
+            elif message == 'vm-rec-unv':
+                self.voiceMailTest.reset_timeout()
+                self.voiceMailTest.setTestCondition('recordUnavailable', True)
+            elif message == 'vm-rec-busy':
+                self.voiceMailTest.reset_timeout()
+                self.voiceMailTest.setTestCondition('recordBusy', True)
+            elif message == 'beep':
+                """ A beep indicates we need to stream some sound file over - use the same sound file for everything """
+                audioFile = os.path.join(os.getcwd(), "%s/sounds/talking" % (self.voiceMailTest.testParentDir))
+                self.voiceMailTest.sendSoundFileWithDTMF(audioFile, "#")
             else:
                 self.handleDefaultState(event)
         else:




More information about the asterisk-commits mailing list