summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--For Weekly Test/19-08-2011/gsmselftest1.py100
1 files changed, 95 insertions, 5 deletions
diff --git a/For Weekly Test/19-08-2011/gsmselftest1.py b/For Weekly Test/19-08-2011/gsmselftest1.py
index 470e6ed..da2de50 100644
--- a/For Weekly Test/19-08-2011/gsmselftest1.py
+++ b/For Weekly Test/19-08-2011/gsmselftest1.py
@@ -178,7 +178,7 @@ def initTrueTable(caller):
if result != '200':
print "BTS RZ 3 Broken"
else:
- print "All is Fine"
+ print "All GSM RZ are working"
elif result == '486':
for z in resultsList:
@@ -315,7 +315,7 @@ def initTrueTable(caller):
if caller == A[0]:
if destination == 'GSMExt.Tm':
if result == '200':
- print "GSM external modem is Fine"
+ print "GSM external modem is working"
elif result == '486':
print "T-Mobile card indicate having problem"
else:
@@ -380,6 +380,96 @@ def initTrueTable(caller):
else:
print "incomplete test, Handler having error, please do one more test"
+ elif destination == 'sip':
+ if result =='486':
+
+ for y in resultsList:
+ destination = y[1]
+ result = y[2]
+
+ if caller == y[0]:
+ if destination == 'landline':
+ if result == '200':
+
+ for z in resultsList:
+
+ destination = z[1]
+ result = z[2]
+
+ if caller == z[0]:
+ if destination == 'unisip':
+
+ if result == '200':
+ print "Asterisk server down"
+ elif result == '486':
+ print "Asterisk server and University telephone network indicate having Problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
+ elif destination == '486':
+
+ for z in resultsList:
+
+ destination = z[1]
+ result = z[2]
+
+ if caller == z[0]:
+ if destination == 'unisip':
+
+ if result == '200':
+ print "Asterisk server & SIPGate indicate having Problem"
+ elif result == '486':
+ print "All SIP server working"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
+ elif result =='200':
+
+ for y in resultsList:
+
+ destination = y[1]
+ result = y[2]
+
+ if caller == y[0]:
+ if destination == 'landline':
+ if result == '200':
+
+ for z in resultsList:
+
+ destination = z[1]
+ result = z[2]
+
+ if caller == z[0]:
+ if destination == 'unisip':
+
+ if result != '200':
+ print "University telephone network down"
+ else:
+ print "All SIP are working"
+ elif result == '486':
+
+ for z in resultsList:
+
+ destination = z[1]
+ result = z[2]
+
+ if caller == z[0]:
+ if destination == 'unisip':
+
+ if result == '200':
+ print "SIPGate down"
+ elif result == '486':
+ print "SIPGate and University telephone network indicate having Problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
def doTest(callFrom,callTo):
#global resultsList
@@ -489,7 +579,7 @@ def smartTest():
initTest(callFrom,'GSMRZ3')
if result == '200':
- print "all netwrok on GSMRZ are fine"
+ print "all netwrok on GSMRZ are working"
elif result == '486':
print "BTS 3 Down"
else:
@@ -553,7 +643,7 @@ def smartTest():
initTest(callFrom,'GSMExt.Tm')
if result == '200':
- print "All netwrok on GSM external are fine"
+ print "All netwrok on GSM external are working"
elif result == '486':
print "T-Mobile card indicate having problem"
else:
@@ -663,7 +753,7 @@ def smartTest():
initTest(callFrom,'unisip')
if result =='200':
- print "All SIP network is fine"
+ print "All SIP network are working"
elif result == '486':
print "University telphone network indicate having problem"
else: