summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/initTestClass.py
diff options
context:
space:
mode:
authorTriatmoko2011-10-22 02:54:49 +0200
committerTriatmoko2011-10-22 02:54:49 +0200
commitfcdce4e464c08e04ee2dc5640737c9e14ada391a (patch)
treec02dfdf446177ce93edc0d222d9d1006e60e7b9d /For Weekly Test/tricode/initTestClass.py
parentbackup file (diff)
downloadgsm-selftest-fcdce4e464c08e04ee2dc5640737c9e14ada391a.tar.gz
gsm-selftest-fcdce4e464c08e04ee2dc5640737c9e14ada391a.tar.xz
gsm-selftest-fcdce4e464c08e04ee2dc5640737c9e14ada391a.zip
missing unisip test
Diffstat (limited to 'For Weekly Test/tricode/initTestClass.py')
-rwxr-xr-xFor Weekly Test/tricode/initTestClass.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/For Weekly Test/tricode/initTestClass.py b/For Weekly Test/tricode/initTestClass.py
index 47ecb52..77e0e46 100755
--- a/For Weekly Test/tricode/initTestClass.py
+++ b/For Weekly Test/tricode/initTestClass.py
@@ -207,10 +207,13 @@ class doTest:
if int(dest[3]) != 2 and dest[1] != 'sip':
testDestination = True
founds = False
+ testCaller = 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
+ if test[1] == dest[0] and int(test[2]) == 200:
+ testCaller = False
#if destination have not tested by other part. try to test from RZ GSM
if int(test[2]) == 200:
for caller in cpgsmRZList:
@@ -224,17 +227,19 @@ class doTest:
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]
-
+ callTo = dest[1]
self.testDestination(callFrom, callTo, 2)
rem.append(dest)
+ #check unsuccess call because caller handler having problem
+ #destination having problem, we should make test also to the caller
+ if int(dest[2]) == 998:
+ if testCaller == True:
+ if founds != True:
+ callFrom = 'sip'
+ callTo = dest[0]
+ self.testDestination(callFrom, callTo, 2)
+ rem.append(dest)
caller = dest[0] # to test nanobts if the test come from RZ GSM but fehler