summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/20-07-2011/classController.py
diff options
context:
space:
mode:
authortriatmoko2011-07-18 17:46:32 +0200
committertriatmoko2011-07-18 17:46:32 +0200
commit8f8af7bde52680e1c71807b18422b908cf58d52d (patch)
tree5eff18df95e847888444ff990b52b2071af1ecef /For Weekly Test/20-07-2011/classController.py
parentokMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-8f8af7bde52680e1c71807b18422b908cf58d52d.tar.gz
gsm-selftest-8f8af7bde52680e1c71807b18422b908cf58d52d.tar.xz
gsm-selftest-8f8af7bde52680e1c71807b18422b908cf58d52d.zip
fic landline handler to be the same with sip part.
Diffstat (limited to 'For Weekly Test/20-07-2011/classController.py')
-rw-r--r--For Weekly Test/20-07-2011/classController.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/For Weekly Test/20-07-2011/classController.py b/For Weekly Test/20-07-2011/classController.py
index f39aafb..193f1b4 100644
--- a/For Weekly Test/20-07-2011/classController.py
+++ b/For Weekly Test/20-07-2011/classController.py
@@ -210,6 +210,7 @@ class test:
resultDest = y.receiveData()
if resultOrig <> "" and resultDest <> "":
+ print "here"
break
except TimeoutException:
@@ -220,12 +221,14 @@ class test:
#if still failed, we make automatic test vice versa
if resultOrig == 486 or resultDest == 486:
- testResult = 486
+ self.testResult = 486
repeatTest = True
+ return 486
print "Second test result origin: ", resultOrig
print "Second test result Destination: ", resultDest
else:
- testResult = 200
+ self.testResult = 200
+ return 200
print "Second test result origin: ", resultOrig
print "Second test result Destination: ", resultDest
x.sendData('487')
@@ -233,14 +236,15 @@ class test:
else:
- testResult = 200
+ self.testResult = 200
+ return 200
print "Test Result origin: ", resultOrig
print "Test Result Destination: ", resultDest
x.sendData('487')
y.sendData('487')
else:
- testResult = 604
+ self.testResult = 604
print "604 General Handler Error: Destination handler no respond"
#tell Caller handler to terminate because receiver doesnt work
x.sendData('487')
@@ -249,9 +253,9 @@ class test:
except ValueError:
print "601 General Handler Error: Could not open Destination handler"
- testResult = "601"
+ self.testResult = 601
else:
- testResult = 605
+ self.testResult = 605
print "605 General Handler Error: Origin handler no respond"
x.closeConnection()
@@ -260,3 +264,6 @@ class test:
testResult = 602
print "602 General Handler Error: Could not open Origin handler"
+ def testResult(self):
+ return 200
+