summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/initTestClass.py
diff options
context:
space:
mode:
authorTriatmoko2011-10-22 03:17:04 +0200
committerTriatmoko2011-10-22 03:17:04 +0200
commit7f96bb73efb5b61e8249a3fc99a9983b4957591b (patch)
tree0dff313f0cb5355c3e52c8afdcc6e37fc087ac18 /For Weekly Test/tricode/initTestClass.py
parentmissing unisip test (diff)
downloadgsm-selftest-7f96bb73efb5b61e8249a3fc99a9983b4957591b.tar.gz
gsm-selftest-7f96bb73efb5b61e8249a3fc99a9983b4957591b.tar.xz
gsm-selftest-7f96bb73efb5b61e8249a3fc99a9983b4957591b.zip
decrease time and try to find the bug for smart test
Diffstat (limited to 'For Weekly Test/tricode/initTestClass.py')
-rwxr-xr-xFor Weekly Test/tricode/initTestClass.py23
1 files changed, 9 insertions, 14 deletions
diff --git a/For Weekly Test/tricode/initTestClass.py b/For Weekly Test/tricode/initTestClass.py
index 77e0e46..1e4c194 100755
--- a/For Weekly Test/tricode/initTestClass.py
+++ b/For Weekly Test/tricode/initTestClass.py
@@ -92,7 +92,7 @@ class doTest:
self.result = 100
else:
self.result = 100
- sleep(3)
+ sleep(1)
self.killProc() # kill all the handler
self.db.closeDBConn() #close db connection
sleep(1)
@@ -189,13 +189,6 @@ class doTest:
destList.remove(callTo)
self.testDestination(callFrom, callTo, 1)
- # testing from random GSM RZ to sip
- #i = random.randint(0, len(cpgsmRZList)-1) #
- #callFrom = cpgsmRZList[i]
- #self.initTest(callFrom, 'sip')
-
- #self.smartResultList.append([callFrom, 'sip', self.result,1])
-
for callTo in destList:
callFrom = 'sip'
self.testDestination(callFrom, callTo, 1)
@@ -210,10 +203,12 @@ class doTest:
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 test[1] == dest[1] or test[0] == dest[1]:
+ if int(test[2]) == 200:
+ testDestination = False
+ if test[1] == dest[0] or or test[0] == dest[0]:
+ if 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,7 +219,7 @@ class doTest:
if dest[0] != 'sip':
founds = False
- if testDestination == True:
+ if testDestination == True:
if founds != True:
callFrom = 'sip'
callTo = dest[1]
@@ -232,7 +227,7 @@ class doTest:
rem.append(dest)
#check unsuccess call because caller handler having problem
- #destination having problem, we should make test also to the caller
+ #destination handler having problem, we should make test also to the caller
if int(dest[2]) == 998:
if testCaller == True:
if founds != True: