summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/DBProblem/test3.py
diff options
context:
space:
mode:
authortt412011-07-26 22:46:33 +0200
committertt412011-07-26 22:46:33 +0200
commit14a4141d9207b73c47b130309f130a849b95385e (patch)
tree70161898235a8000ebd4bab0869b90ae0e1ccd27 /For Weekly Test/DBProblem/test3.py
parentno com (diff)
parentedit list problem, its have different method with refik have. (diff)
downloadgsm-selftest-14a4141d9207b73c47b130309f130a849b95385e.tar.gz
gsm-selftest-14a4141d9207b73c47b130309f130a849b95385e.tar.xz
gsm-selftest-14a4141d9207b73c47b130309f130a849b95385e.zip
Merge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest
Diffstat (limited to 'For Weekly Test/DBProblem/test3.py')
-rw-r--r--For Weekly Test/DBProblem/test3.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/For Weekly Test/DBProblem/test3.py b/For Weekly Test/DBProblem/test3.py
index b616d18..4450790 100644
--- a/For Weekly Test/DBProblem/test3.py
+++ b/For Weekly Test/DBProblem/test3.py
@@ -1,14 +1,18 @@
import sys
-import ClientClass
+#import ClientClass
import DbClass
-import ControllerClass
-import classCheck
+#import ControllerClass
+#import classCheck
from time import sleep
db = DbClass.DBMySQLConnection('root', 'randompasswordSQL', 'localhost', 'gsmselftesting')
db.connectDB()
dbStatus = db.connectDB()
+print 'i am inserting into the table something', db.insertTaskIn2('gsm4','sip8',2)
+print 'i am inserting into the table something', db.insertTaskIn2('gsm4','sip8',2)
+print 'i am inserting into the table something', db.insertTaskIn2('gsm4','sip8',2)
+print 'i am inserting into the table something', db.insertTaskIn2('gsm4','sip8',2)
db.anyTasksToDo()
if db.anyTasksToDo() == 1:
@@ -21,11 +25,12 @@ if db.anyTasksToDo() == 1:
print "Test ID : " , taskID
print "Caller : " , callFrom
print "Receiver : " , callTo
- #templist.remove(item)
+ templist.remove(item)
#print item
- #db.deleteTempTask(taskID)
+ db.deleteTempTask(taskID)
if callTo == 'sip':
db.insertTaskIn2(callTo,callFrom,taskNo)
+
else:
print "No job at all"