summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/23-07-2011/Testing.py
diff options
context:
space:
mode:
authorrz-gsm-testing2011-07-21 14:56:43 +0200
committerrz-gsm-testing2011-07-21 14:56:43 +0200
commit3adb6d39a2efccc69b91db795b802494ee6c115d (patch)
treecd267281d8bc70cf8aef494f70d5fbc213a96b68 /For Weekly Test/23-07-2011/Testing.py
parentrenew handler, taken from weekly test which working with charm (diff)
downloadgsm-selftest-3adb6d39a2efccc69b91db795b802494ee6c115d.tar.gz
gsm-selftest-3adb6d39a2efccc69b91db795b802494ee6c115d.tar.xz
gsm-selftest-3adb6d39a2efccc69b91db795b802494ee6c115d.zip
add new folder for next test.want have one single file which can handler all sip account.
Diffstat (limited to 'For Weekly Test/23-07-2011/Testing.py')
-rw-r--r--For Weekly Test/23-07-2011/Testing.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/For Weekly Test/23-07-2011/Testing.py b/For Weekly Test/23-07-2011/Testing.py
new file mode 100644
index 0000000..34316ee
--- /dev/null
+++ b/For Weekly Test/23-07-2011/Testing.py
@@ -0,0 +1,44 @@
+import sys
+import os
+import time
+import MySQLdb
+import subprocess
+import signal
+
+import classClient
+import classDb
+import classPing
+
+from time import sleep
+
+command="--command=python sipCall.py"
+subprocess.Popen(args=["gnome-terminal", command])
+sleep(5)
+x = classClient.Connection("localhost", "50097")
+x.connect()
+origHandler = x.receiveData(0)
+print origHandler
+
+#command="--command=python localsipReceiver.py"
+#subprocess.Popen(args=["gnome-terminal", command])
+sleep(5)
+y = classClient.Connection("localhost", "50107")
+y.connect()
+
+while 1:
+ destHandler = y.receiveData(0)
+ if destHandler <> "":
+ break
+
+print destHandler
+
+if destHandler == "ready":
+ y.closeConnection()
+ y.connect()
+
+ #x.sendData("start|076120397897")
+while 1:
+ destHandlers = y.receiveData(0)
+ #origHandlers = x.receiveData(0)
+
+ print destHandlers#, origHandlers