summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--For Weekly Test/19-08-2011/gsmselftest1.py249
1 files changed, 200 insertions, 49 deletions
diff --git a/For Weekly Test/19-08-2011/gsmselftest1.py b/For Weekly Test/19-08-2011/gsmselftest1.py
index f9dd3c0..6837ece 100644
--- a/For Weekly Test/19-08-2011/gsmselftest1.py
+++ b/For Weekly Test/19-08-2011/gsmselftest1.py
@@ -221,27 +221,79 @@ def initTrueTable(caller):
if caller == z[0]:
if destination == 'GSMExt.Eplus':
- if result != '200':
- print "O2 & E-Plus indicate having Problem"
- else:
- print "O2 indicate broken"
+ if result == '486':
+ for A in resultsList:
+ destination = A[1]
+ result = A[2]
+
+ if caller == A[0]:
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ print "O2 & E-Plus indicate having Problem"
+ elif result == '486':
+ print "T-Mobile, E-plus and O2 cards indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
+ elif result == '200':
+ for A in resultsList:
+ destination = A[1]
+ result = A[2]
+
+ if caller == A[0]:
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ print "O2 cards indicate having Problem"
+ elif result == '486':
+ print "T-Mobile and O2 cards 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:
- for z in resultsList:
-
+ elif result == '486':
+ for z in resultsList:
destination = z[1]
result = z[2]
if caller == z[0]:
if destination == 'GSMExt.Eplus':
- if result == '200':
- print "O2 and Vodaphone indicate having problem"
- else:
- print "GSM External Modem broken"
+ if result == '200':
+ for A in resultsList:
+ destination = A[1]
+ result = A[2]
+
+ if caller == A[0]:
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ print "O2 and Vodaphone cards indicate having problem"
+ elif result == '486':
+ print "T-Mobile, Vodaphone and O2 cards indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+ elif result == '486':
+ for A in resultsList:
+ destination = A[1]
+ result = A[2]
+
+ if caller == A[0]:
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ print "O2, E-Plus and Vodaphone cards indicate having problem"
+ elif result == '486':
+ print "GSM External Modem broken"
+ 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"
+
elif result == '200':
- for y in resultsList:
-
+ for y in resultsList:
destination = y[1]
result = y[2]
@@ -249,20 +301,43 @@ def initTrueTable(caller):
if destination == 'GSMExt.Voda':
if result == '200':
- for z in resultsList:
-
+ for z in resultsList:
destination = z[1]
result = z[2]
if caller == z[0]:
if destination == 'GSMExt.Eplus':
- if result == '200':
- print "GSM external modem is Fine"
- elif result == '486':
- print "E-Plus card indicate broken"
+ if result == '200':
+ for A in resultsList:
+ destination = A[1]
+ result = A[2]
+
+ if caller == A[0]:
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ print "GSM external modem is Fine"
+ elif result == '486':
+ print "T-Mobile card indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
+ elif result == '486':
+ for A in resultsList:
+ destination = A[1]
+ result = A[2]
+
+ if caller == A[0]:
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ print "E-Plus card indicate broken"
+ elif result == '486':
+ print "T-Mobile and E-plus cards 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"
+
elif result == '486':
for z in resultsList:
@@ -272,10 +347,33 @@ def initTrueTable(caller):
if caller == z[0]:
if destination == 'GSMExt.Eplus':
- if result == '200':
- print "Vodaphone indicate broken"
- elif result == '486':
- print "Vodaphone and E-Plus card indicate having problem"
+ if result == '200':
+ for A in resultsList:
+ destination = A[1]
+ result = A[2]
+
+ if caller == A[0]:
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ print "Vodaphone indicate broken"
+ elif result == '486':
+ print "T-Mobile and Vodaphone cards indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
+ elif result == '486':
+ for A in resultsList:
+ destination = A[1]
+ result = A[2]
+
+ if caller == A[0]:
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ print "Vodaphone and E-plus cards indicate broken"
+ elif result == '486':
+ print "T-Mobile, E-plus and Vodaphone cards 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:
@@ -438,55 +536,108 @@ def smartTest():
elif destination == 'GSMExt':
- initTest('sip','GSMExt.O2')
-
+ initTest('sip','GSMExt.O2')
if result == '200':
- initTest('sip','GSMExt.Voda')
-
+ initTest('sip','GSMExt.Voda')
if result == '200':
- initTest('sip','GSMExt.Eplus')
-
+ initTest('sip','GSMExt.Eplus')
if result == '200':
- print "All netwrok on GSM external are fine"
- elif result == '486':
- print "Eplus card indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
+
+ initTest('sip','GSMExt.Tm')
+ if result == '200':
+ print "All netwrok on GSM external are fine"
+ elif result == '486':
+ print "T-Mobile card indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
+ elif result == '486':
+
+ initTest('sip','GSMExt.Tm')
+ if result == '200':
+ print "E-Plus card indicate having problem"
+ elif result == '486':
+ print "T-Mobile and E-Plus card indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
elif result == '486':
- initTest('sip','GSMExt.Tm')
-
+ initTest('sip','GSMExt.Eplus')
if result == '200':
- print "Vodaphone card indicate having problem"
+
+ initTest('sip','GSMExt.Tm')
+ if result == '200':
+ print "Vodaphone card indicate having problem"
+ elif result == '486':
+ print "T-Mobile and Vodaphone cards indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
elif result == '486':
- print "Vodaphone and E-Plus card indicate having problem"
+
+ initTest('sip','GSMExt.Tm')
+ if result == '200':
+ print "Vodaphone and E-Plus card indicate having problem"
+ elif result == '486':
+ print "T-Mobile, E-Plus and Vodaphone cards 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"
elif result == '486':
- initTest('sip','GSMExt.Voda')
-
+ initTest('sip','GSMExt.Voda')
if result == '200':
- initTest('sip','GSMExt.Eplus')
-
+ initTest('sip','GSMExt.Eplus')
if result == '200':
- print "O2 card indicate having problem"
+
+ initTest('sip','GSMExt.Tm')
+ if result == '200':
+ print "O2 card indicate having problem"
+ elif result == '486':
+ print "T-Mobile and O2 cards indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
elif result == '486':
- print "O2 and E-Plus card indicate having problem"
+
+ initTest('sip','GSMExt.Tm')
+ if result == '200':
+ print "O2 and E-Plus cards indicate having problem"
+ elif result == '486':
+ print "T-Mobile, E-Plus and O2 cards indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+ else:
+ ###
elif result == '486':
- initTest('sip','GSMExt.Eplus')
-
+ initTest('sip','GSMExt.Eplus')
if result == '200':
- print "O2 and Vodaphone card indicate having problem"
+
+ initTest('sip','GSMExt.Tm')
+ if result == '200':
+ print "O2 and Vodaphone cards indicate having problem"
+ elif result == '486':
+ print "T-Mobile, O2 and Vodaphone cards indicate having problem"
+ else:
+ print "incomplete test, Handler having error, please do one more test"
+
elif result == '486':
- print "GSM External Modem Down"
+
+ initTest('sip','GSMExt.Tm')
+ if result == '200':
+ print "O2, E-Plus and Vodaphone cards indicate having problem"
+ elif result == '486':
+ print "GSM External Modem Down"
+ 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: