summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/19-08-2011
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/19-08-2011')
-rw-r--r--For Weekly Test/19-08-2011/gsmselftest1.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/For Weekly Test/19-08-2011/gsmselftest1.py b/For Weekly Test/19-08-2011/gsmselftest1.py
index f61b07d..470e6ed 100644
--- a/For Weekly Test/19-08-2011/gsmselftest1.py
+++ b/For Weekly Test/19-08-2011/gsmselftest1.py
@@ -96,7 +96,6 @@ def initTest(callFrom,callTo):
result = str(makeTest.testResult)
repeatTest = makeTest.repeatTest
- sleep(5)
else:
print "No connection to Database"
@@ -384,18 +383,19 @@ def initTrueTable(caller):
def doTest(callFrom,callTo):
#global resultsList
- testRepeat = None
+ #testRepeat = None
ping(callFrom)
if serverStatus <> 0:
ping(callTo)
if serverStatus <> 0:
-
+ print 'Call from : ', callFrom
+ 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)
- #print 'Result : ' +str(result)+ ' ' +db.errCode
+ print 'Result : ' +result+ ' ' +db.errCode
sleep(5)
else:
print '[failed] 500 '+callTo+ ' Server Internal Error'
@@ -752,8 +752,7 @@ else:
initTest(callFrom,callTo)
db.addResult(taskID, result)
- resultList.append([callFrom, callTo, result])
-
+
if repeatTest == True and tried <> '1':
db.insertTaskIn2(callTo,callFrom,taskNo, '1')
if tried == '1':
@@ -762,7 +761,7 @@ else:
resultList.append([callFrom, callTo, result])
db.errorCode(result)
- print 'Result : ' +str(result)+ ' ' +db.errCode
+ print 'Result : ' +result+ ' ' +db.errCode
db.deleteTempTask(taskID)
db.tasksList.remove(item)
@@ -781,7 +780,7 @@ else:
db.cleanTasksList()
# fetch result list and make adjustment about the result
- initTrueTable(caller)
+ #initTrueTable(caller)
else:
print "--- No job at all ---"
else: