summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/DBProblem/test3.py
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/DBProblem/test3.py')
-rw-r--r--For Weekly Test/DBProblem/test3.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/For Weekly Test/DBProblem/test3.py b/For Weekly Test/DBProblem/test3.py
deleted file mode 100644
index 4450790..0000000
--- a/For Weekly Test/DBProblem/test3.py
+++ /dev/null
@@ -1,36 +0,0 @@
-import sys
-#import ClientClass
-import DbClass
-#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:
-
- for item in db.tasksList:
- taskID = item[0]
- taskNo = item[1]
- callFrom = item[2]
- callTo = item[3]
-
- print "Test ID : " , taskID
- print "Caller : " , callFrom
- print "Receiver : " , callTo
- templist.remove(item)
- #print item
- db.deleteTempTask(taskID)
- if callTo == 'sip':
- db.insertTaskIn2(callTo,callFrom,taskNo)
-
-
-else:
- print "No job at all"