summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/19-08-2011/gsmselftest1.py
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/19-08-2011/gsmselftest1.py')
-rw-r--r--For Weekly Test/19-08-2011/gsmselftest1.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/For Weekly Test/19-08-2011/gsmselftest1.py b/For Weekly Test/19-08-2011/gsmselftest1.py
index da2de50..7166d84 100644
--- a/For Weekly Test/19-08-2011/gsmselftest1.py
+++ b/For Weekly Test/19-08-2011/gsmselftest1.py
@@ -481,7 +481,7 @@ def doTest(callFrom,callTo):
ping(callTo)
if serverStatus <> 0:
print 'Call from : ', callFrom
- Print 'Call to : ', callTo
+ print 'Call to : ', callTo
initTest(callFrom,callTo)
#resultsList.append([callFrom, callTo, result])#should be put on another function to prevent repeat test
db.errorCode(result)
@@ -561,7 +561,7 @@ def smartTest():
sys.exit(1)
callerList = ['sip']
- destinationList = ['GSMExt']
+ destinationList = ['SIP', 'GSMExt']
#destinationList = ['GSMExt', 'GSMRZ', 'SIP']
for callFrom in callerList:
for destination in destinationList:
@@ -814,7 +814,7 @@ else:
if db.anyTasksToDo() == 1:
- allPing()
+ #allPing()
i=0
for item in db.tasksList:
@@ -825,8 +825,8 @@ else:
tried = item[4]
- if i == 0:
- db.updatePingResult(taskNo, sipServer, sipGate, unisip, gsmBox1, gsmBox2)
+ #if i == 0:
+ #db.updatePingResult(taskNo, sipServer, sipGate, unisip, gsmBox1, gsmBox2)
print '\n'
print 'Task ID :', taskID
print 'Calling From :', callFrom
@@ -843,20 +843,20 @@ else:
db.addResult(taskID, result)
- if repeatTest == True and tried <> '1':
- db.insertTaskIn2(callTo,callFrom,taskNo, '1')
- if tried == '1':
- resultList.append([callTo, callFrom, result])
- elif tried != '1' and repeatTest != True:
- resultList.append([callFrom, callTo, result])
+ #if repeatTest == True and tried <> '1':
+ # db.insertTaskIn2(callTo,callFrom,taskNo, '1')
+ #if tried == '1':
+ resultsList.append([callTo, callFrom, result])
+ #elif tried != '1' and repeatTest != True:
+ # resultsList.append([callFrom, callTo, result])
db.errorCode(result)
print 'Result : ' +result+ ' ' +db.errCode
-
- db.deleteTempTask(taskID)
- db.tasksList.remove(item)
- db.tasksList.insert(i,'')
+ #print 'list 2:', db.tasksList
+ #db.tasksList.remove(item)
+ #db.tasksList.insert(i,'')
+ db.deleteTempTask(taskID)
i = i+1
sleep(5)
@@ -870,7 +870,7 @@ else:
db.cleanTasksList()
# fetch result list and make adjustment about the result
- #initTrueTable(caller)
+ initTrueTable(caller)
else:
print "--- No job at all ---"
else: