summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Database/gsmselftesting.sql2
-rw-r--r--For Weekly Test/12-09-2011/gsmselftest.py72
2 files changed, 39 insertions, 35 deletions
diff --git a/Database/gsmselftesting.sql b/Database/gsmselftesting.sql
index 0ce9b28..0ac203f 100644
--- a/Database/gsmselftesting.sql
+++ b/Database/gsmselftesting.sql
@@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS `DeviceAddressTable` (
INSERT INTO `DeviceAddressTable` (`deviceName`, `deviceIP`, `number`, `lastChange`, `username`, `password`, `server`) VALUES
('sip', 'localhost', '07612034661928', '2011-07-26 00:00:00', 'mpselftest1', '1mpselftest', '132.230.4.8'),
-('unisip', 'localhost', '076120397897', '2011-07-27 00:00:00', '4976120397897', 'hB8M3WyFt61C', '132.230.252.228'),
+('unisip', 'localhost', '076120397898', '2011-07-27 00:00:00', '4976120397898', 'itzEfmLkzvS9', '132.230.252.228'),
('landline', 'localhost', '076145875681', '2011-07-26 00:00:00', '1289459', 'MMW9AX', 'sipgate.de'),
('GSMRZ1', 'localhost', '07612034661xxx', '2011-07-27 15:47:08', '', '', ''),
('GSMRZ2', '132.230.4.64', '07612034661455', '2011-07-27 15:48:04', '', '', ''),
diff --git a/For Weekly Test/12-09-2011/gsmselftest.py b/For Weekly Test/12-09-2011/gsmselftest.py
index 5f4789f..9f8d0c2 100644
--- a/For Weekly Test/12-09-2011/gsmselftest.py
+++ b/For Weekly Test/12-09-2011/gsmselftest.py
@@ -24,7 +24,7 @@ def ping(handler):
server = PingClass.Ping('132.230.252.228')
serverStatus = server.ping(1)
- elif handler == 'GSMRZ1':
+ elif handler == 'GSMRZ3':
server = PingClass.Ping('localhost')
serverStatus = server.ping(1)
@@ -54,7 +54,7 @@ def allPing():
server = PingClass.Ping('localhost')
gsmBox1 = server.ping(1)
- server = PingClass.Ping('132.230.4.64')
+ server = PingClass.Ping('10.4.58.241')
gsmBox2 = server.ping(1)
def initDB():
@@ -383,7 +383,7 @@ def smartTest():
callerList = ['sip']
destinationList = ['SIP', 'GSMExt']
- #destinationList = ['GSMExt', 'GSMRZ', 'SIP', 'RZOutgoing']
+ #destinationList = ['GSMExt', 'GSMRZ', 'SIP', 'RZOutgoing', 'RZincoming']
for callFrom in callerList:
for destination in destinationList:
@@ -610,24 +610,10 @@ def smartTest():
initTest('GSMRZ1','unisip')
if result =='200':
-
- initTest('GSMRZ1','GSMExt.O2')
- if result =='200':
- print "Outgoing call from GSM RZ is working"
- elif result == '486':
- print "Outgoing call from GSM RZ to GSM external indicate having problem"
- else:
- print "incomplete test, GSM Handler having error, please do one more test"
+ print "Outgoing call from GSM RZ is working"
elif result == '486':
-
- initTest('GSMRZ1','GSMExt.O2')
- if result =='200':
- print "Outgoing call from GSM RZ to University telephone network indicate having problem"
- elif result == '486':
- print "Outgoing call from GSM RZ to GSM external and UTN indicate having problem"
- else:
- print "incomplete test, GSM Handler having error, please do one more test"
+ print "Outgoing call from GSM RZ to UTN indicate having problem"
else:
print "incomplete test, Handler having error, please do one more test"
else:
@@ -639,23 +625,10 @@ def smartTest():
initTest('GSMRZ1','unisip')
if result == '200':
-
- initTest('GSMRZ1','GSMExt.O2')
- if result == '200':
- print "Outgoing call from GSM RZ to Landline indicate having problem"
- elif result == '486':
- print "Outgoing call from GSM RZ to GSM External and landline indicate having problem"
- else:
- print "incomplete test, GSM Handler having error, please do one more test"
+ print "Outgoing call from GSM RZ to Landline indicate having problem"
elif result == '486':
- initTest('GSMRZ1','GSMExt.O2')
- if result == '200':
- print "Outgoing call from GSM RZ to Landline and UTN indicate having problem"
- elif result == '486':
- print "Outgoing call from GSM RZ having problem"
- else:
- print "incomplete test, GSM Handler having error, please do one more test"
+ print "Outgoing call from GSM RZ to Landline and UTN indicate having problem"
else:
print "incomplete test, Handler having error, please do one more test"
else:
@@ -665,6 +638,37 @@ def smartTest():
else:
print "No connection to SIP Gate server, check your connection"
+ elif destination == 'RZincoming':
+
+ ping('landline')
+ if serverStatus <> 0:
+ initTest('landline', 'GSMRZ1')
+
+ if result == '486':
+
+ initTest('GSMExt.O2','GSMRZ1')
+
+ if result =='200':
+ print "incoming call to GSM RZ working"
+
+ elif result == '486':
+
+ initTest('GSMExt.Voda','GSMRZ1')
+ if result =='200':
+ print "incoming call to GSM RZ working"
+ elif result == '486':
+ print "incoming call to GSM RZ notworking"
+ else:
+ print "incomplete test, GSM Handler having error, please do one more test"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
+ elif result == '200':
+ print "incoming call to GSM RZ working"
+ else:
+ print "No connection to SIP Gate server, check your connection"
+
+
if len(sys.argv) > 1:
command = sys.argv[1]