summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/initTestClass.py
diff options
context:
space:
mode:
authorTriatmoko2011-10-22 02:29:29 +0200
committerTriatmoko2011-10-22 02:29:29 +0200
commit93018bb5c093188c0e60cb8db865352ed7cb1f74 (patch)
treefb0c94995085940bef75d7bd67ecec9b496340f2 /For Weekly Test/tricode/initTestClass.py
parentediting smart test (diff)
downloadgsm-selftest-93018bb5c093188c0e60cb8db865352ed7cb1f74.tar.gz
gsm-selftest-93018bb5c093188c0e60cb8db865352ed7cb1f74.tar.xz
gsm-selftest-93018bb5c093188c0e60cb8db865352ed7cb1f74.zip
backup file
Diffstat (limited to 'For Weekly Test/tricode/initTestClass.py')
-rwxr-xr-xFor Weekly Test/tricode/initTestClass.py64
1 files changed, 31 insertions, 33 deletions
diff --git a/For Weekly Test/tricode/initTestClass.py b/For Weekly Test/tricode/initTestClass.py
index 740e5c0..47ecb52 100755
--- a/For Weekly Test/tricode/initTestClass.py
+++ b/For Weekly Test/tricode/initTestClass.py
@@ -203,41 +203,39 @@ class doTest:
#checking unsuccess call, to make sure that destination are really unreachable
for dest in self.smartResultList:
#check unsuccess call and did the test have already tried, 2 means has been check
- if int(dest[2]) == 486 and int(dest[3]) != 2 and dest[1] != 'sip':
- testDestination = True
- founds = False
- # make sure that destination have not tested by another part and give success result.
- for test in self.smartResultList:
- if test[1] == dest[1] and int(test[2]) == 200:
- testDestination = False
- #if destination have not tested by other part. try to test from RZ GSM
- if int(test[2]) == 200:
- for caller in cpgsmRZList:
- if caller == test[0] or caller == test[1]:
- callFrom = caller
- founds = True
-
- if dest[0] != 'sip':
- founds = False
-
- if testDestination == True:
- if founds != True:
- callFrom = 'sip'
- callTo = dest[1]
- self.testDestination(callFrom, callTo, 2)
- rem.append(dest)
+ if int(dest[2]) == 486 or int(dest[2]) == 999 or int(dest[2]) == 998:
+ if int(dest[3]) != 2 and dest[1] != 'sip':
+ testDestination = True
+ founds = False
+ # make sure that destination have not tested by another part and give success result.
+ for test in self.smartResultList:
+ if test[1] == dest[1] and int(test[2]) == 200:
+ testDestination = False
+ #if destination have not tested by other part. try to test from RZ GSM
+ if int(test[2]) == 200:
+ for caller in cpgsmRZList:
+ if caller == test[0] or caller == test[1]:
+ callFrom = caller
+ founds = True
+
+ if dest[0] != 'sip':
+ founds = False
+
+ if testDestination == True:
+ if founds != True:
+ callFrom = 'sip'
+ #check unsuccess call because caller handler having problem
+ #destination having problem, we should make test also to the caller
+ if int(dest[2]) == 998:
+ callFrom = 'sip'
+ callTo = dest[0]
+ else:
+ callTo = dest[1]
- #check unsuccess call because caller handler having problem
- if int(dest[2]) == 999 and int(dest[3]) != 2 and dest[1] != 'sip' and dest[1] != 'sip':
- testDestination = True
- # make sure that destination have not tested by another part and give success result.
- for test in self.smartResultList:
- if test[1] == dest[1] and int(test[2]) == 200:
- testDestination = False # mean dont need to make test
- if testDestination == True:
- callFrom = 'sip'
- self.testDestination(callFrom, dest[1], 2)
+ self.testDestination(callFrom, callTo, 2)
+ rem.append(dest)
+
caller = dest[0] # to test nanobts if the test come from RZ GSM but fehler
if caller[0:5] == 'GSMRZ' and int(dest[3]) != 2 and dest[1] != 'sip':