summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/20-07-2011/Controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/20-07-2011/Controller.py')
-rw-r--r--For Weekly Test/20-07-2011/Controller.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/For Weekly Test/20-07-2011/Controller.py b/For Weekly Test/20-07-2011/Controller.py
index 9851425..a4e64f1 100644
--- a/For Weekly Test/20-07-2011/Controller.py
+++ b/For Weekly Test/20-07-2011/Controller.py
@@ -82,7 +82,7 @@ if dbStatus == 1:
if callTo == "gsmrz1":
- x = classController.test(sipCall, "localhost", "gsmincom_.py", "localhost","4661473")
+ x = classController.test(sipCall, "localhost", "gsmincom_.py", "localhost","4661455")
x.FuncTest()
print "Finish test"
db.addResult(taskID, testResult)
@@ -98,7 +98,8 @@ if dbStatus == 1:
print "[failed] 500 Server Internal Error"
else:
- x.FuncTest(sipCall, "localhost", "Box1", "132.0.0.2","404")
+ x = classController.test(sipCall, "localhost", "Box1", "132.0.0.2","404")
+ x.FuncTest()
db.addResult(taskID, testResult)
if repeatTest == "true":
#select temporary table, if there are have test from gsmrz to sip then skip
@@ -111,18 +112,21 @@ if dbStatus == 1:
print "[failed] 500 Server Internal Error"
else:
- x.FuncTest(sipCall, "localhost", "Box2", "132.0.0.3","405")
+ x = classController.test(sipCall, "localhost", "Box2", "132.0.0.3","405")
+ x.FuncTest()
db.addResult(taskID, testResult)
if repeatTest == "true":
#select temporary table, if there are have test from gsmrz to sip then skip
#else, update db, put new data to tasktable. from gsmrz to sip
update
if callTo == "landline":
- if sipGateSeverStatus == 0:
+
+ if sipGateServerStatus == 0:
print "[failed] 500 Server Internal Error"
else:
- x.FuncTest(sipCall, "localhost", landlnRec, "localhost",landlnNum)
+ x = classController.test(sipCall, "localhost", landlnRec, "localhost",landlnNum)
+ x.FuncTest()
db.addResult(taskID, testResult)
if callTo == "localsip":
@@ -130,7 +134,8 @@ if dbStatus == 1:
print "[failed] 500 Server Internal Error"
else:
- x.FuncTest(sipCall, "localhost", localSipRec, "localhost",unisipNum)
+ x = classController.test(sipCall, "localhost", localSipRec, "localhost",unisipNum)
+ x.FuncTest()
db.addResult(taskID, testResult)
if callTo == "externalgsm":