summaryrefslogtreecommitdiffstats
path: root/For Weekly Test
diff options
context:
space:
mode:
authortt412011-07-30 23:26:47 +0200
committertt412011-07-30 23:26:47 +0200
commit5a2918bd1126a2dd7b592caba9bf86792cf0824b (patch)
treec981ec0ce76dfe1188a94302007407a1bf86f7e5 /For Weekly Test
parentmodified timeout value (diff)
downloadgsm-selftest-5a2918bd1126a2dd7b592caba9bf86792cf0824b.tar.gz
gsm-selftest-5a2918bd1126a2dd7b592caba9bf86792cf0824b.tar.xz
gsm-selftest-5a2918bd1126a2dd7b592caba9bf86792cf0824b.zip
insert true table.not yet done, still working on the algrothm.
Diffstat (limited to 'For Weekly Test')
-rw-r--r--For Weekly Test/30-07-2011/DbClass.py4
-rw-r--r--For Weekly Test/30-07-2011/DbClass.pycbin8131 -> 8119 bytes
-rw-r--r--For Weekly Test/30-07-2011/GSMHandler.py2
-rwxr-xr-xFor Weekly Test/30-07-2011/gsmselftest.py13
-rw-r--r--For Weekly Test/30-07-2011/true table.txt43
5 files changed, 57 insertions, 5 deletions
diff --git a/For Weekly Test/30-07-2011/DbClass.py b/For Weekly Test/30-07-2011/DbClass.py
index 302c077..e5ef961 100644
--- a/For Weekly Test/30-07-2011/DbClass.py
+++ b/For Weekly Test/30-07-2011/DbClass.py
@@ -64,6 +64,7 @@ class DBMySQLConnection:
#parse the output from the mysql by creating a list
#with lists where each attribue(column) gets independent
#element of the list
+
for record in output:
columns = list()
for entry in record:
@@ -266,8 +267,7 @@ class DBMySQLConnection:
def searchTaskList(self, fromDevice, toDevice):
if self.connectionCreated == 1:
for item in self.tasksList:
- taskID = item[0]
- taskNo = item[1]
+ if item != '':
callFrom = item[2]
callTo = item [3]
if callFrom == fromDevice and callTo == toDevice:
diff --git a/For Weekly Test/30-07-2011/DbClass.pyc b/For Weekly Test/30-07-2011/DbClass.pyc
index 782461b..bb6a774 100644
--- a/For Weekly Test/30-07-2011/DbClass.pyc
+++ b/For Weekly Test/30-07-2011/DbClass.pyc
Binary files differ
diff --git a/For Weekly Test/30-07-2011/GSMHandler.py b/For Weekly Test/30-07-2011/GSMHandler.py
index fd57e82..a5b61c3 100644
--- a/For Weekly Test/30-07-2011/GSMHandler.py
+++ b/For Weekly Test/30-07-2011/GSMHandler.py
@@ -256,7 +256,7 @@ def terminateConnection():
global resetState
close = handlerSocket.closeConnection()
resetState = 1
- sys.exit(1)
+ sys.exit(0.5)
return close
##############################
diff --git a/For Weekly Test/30-07-2011/gsmselftest.py b/For Weekly Test/30-07-2011/gsmselftest.py
index 2b05b83..f8a385c 100755
--- a/For Weekly Test/30-07-2011/gsmselftest.py
+++ b/For Weekly Test/30-07-2011/gsmselftest.py
@@ -151,6 +151,12 @@ def doGsmExtTest():
if testRepeat == True:
doTest(callTo,callFrom)
+def initResult(i, result):
+ global resultsList
+
+
+
+
def doAllTest():
doSipTest()
@@ -182,10 +188,12 @@ if len(sys.argv) > 1:
print "command not found, Type '--help', '--credits' for more information."
print '\n'
else:
+ global resultList
print '\n'
db = DbClass.DBMySQLConnection('root', 'randompasswordSQL', 'localhost', 'gsmselftesting')
db.connectDB()
dbStatus = db.connectDB()
+ resultsList = list()
if dbStatus == 1:
@@ -232,7 +240,8 @@ else:
makeTest.FuncTest()
db.addResult(taskID, makeTest.testResult)
-
+ resultList.append([callTo, callFrom, makeTest.testResult])
+
if makeTest.repeatTest == True and tried <> '1':
db.insertTaskIn2(callTo,callFrom,taskNo, '1')
@@ -256,7 +265,7 @@ else:
else:
print "No job at all"
else:
- sys.exit(5)
+ sys.exit(1)
diff --git a/For Weekly Test/30-07-2011/true table.txt b/For Weekly Test/30-07-2011/true table.txt
new file mode 100644
index 0000000..5a5916b
--- /dev/null
+++ b/For Weekly Test/30-07-2011/true table.txt
@@ -0,0 +1,43 @@
+if GSMRZ1 != 200:
+ if GSMRZ2 = 200:
+ if GSMRZ3 == 200:
+ BTS RZ 1 problem
+ else:
+ unknow problem
+ elif GSMRZ3 == 200:
+ if GSMRZ2 == 200:
+ BTS RZ 1 Problem
+ else:
+ unknow problem
+ else:
+ OpenBSC problem
+
+if GSMRZ2 != 200:
+ if GSMRZ1 = 200:
+ if GSMRZ3 == 200:
+ BTS RZ 2 problem
+ else:
+ unknow problem
+ elif GSMRZ3 == 200:
+ if GSMRZ1 == 200:
+ BTS RZ 2 Problem
+ else:
+ unknow problem
+ else:
+ OpenBSC problem
+
+if GSMRZ3 != 200:
+ if GSMRZ1 = 200:
+ if GSMRZ2 == 200:
+ BTS RZ 3 problem
+ else:
+ unknow problem
+ elif GSMRZ2 == 200:
+ if GSMRZ1 == 200:
+ BTS RZ 3 Problem
+ else:
+ unknow problem
+ else:
+ OpenBSC problem
+
+