summaryrefslogtreecommitdiffstats
path: root/For Weekly Test
diff options
context:
space:
mode:
authorTriatmoko2011-10-29 03:22:11 +0200
committerTriatmoko2011-10-29 03:22:11 +0200
commit7bb8de539b20c6c7955d21c2cef219d2a876d9e4 (patch)
treefc6298814f977c7ccbd7f2283e86d75fd594ff17 /For Weekly Test
parentMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-7bb8de539b20c6c7955d21c2cef219d2a876d9e4.tar.gz
gsm-selftest-7bb8de539b20c6c7955d21c2cef219d2a876d9e4.tar.xz
gsm-selftest-7bb8de539b20c6c7955d21c2cef219d2a876d9e4.zip
edit result test
Diffstat (limited to 'For Weekly Test')
-rwxr-xr-xFor Weekly Test/tricode/ControllerClass.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/For Weekly Test/tricode/ControllerClass.py b/For Weekly Test/tricode/ControllerClass.py
index cdd93ec..b376c46 100755
--- a/For Weekly Test/tricode/ControllerClass.py
+++ b/For Weekly Test/tricode/ControllerClass.py
@@ -66,6 +66,10 @@ class doTheTest:
self.startCall()
self.waitingFeedback()
+ elif destHandler == 'DEVICE NOT WORK':
+ self.testResult == 802
+ logger.logEvent('802 General Device Error: Destination device no respond timeout')
+ self.initTerminate()
else:
self.testResult = 604
logger.logEvent('604 General Handler Error: Destination handler no respond timeout')
@@ -112,8 +116,13 @@ class doTheTest:
logger.logEvent('Waiting Feedback')
self.resultDest = self.receiver.receiveData(20)
self.resultCaller = self.caller.receiveData(20)
- #print 'result '+self.resultCaller+'--'+self.resultDest
- if self.resultCaller == 'CALL OK' and self.resultDest =='CALL OK':
+ #print 'result '+self.resultCaller+'--'+self.resultDest 'DEVICE NOT WORK'
+ if self.resultCaller == 'DEVICE NOT WORK':
+ logger.logEvent('Caller device not work')
+ self.testResult = 801
+ self.initTerminate()
+
+ elif self.resultCaller == 'CALL OK' and self.resultDest =='CALL OK':
logger.logEvent('Test Succeed')
self.testResult = 200
self.initTerminate()