Ejemplo n.º 1
0
 def setUp(self):
     self.verificationErrors = []
     #if you test your application from remote massey host change "http://localhost:8080/ to "http://seat-web3.massey.ac.nz:8080/"
     self.selenium = selenium("localhost", 5555, "*iexplore", "http://localhost:8080/")
     self.selenium.start()
     #usual case:
     self.testcase=(["label=Alexandra","label=Ashburton","label=2","label=February","label=2009","label=12:30am","4","A"],\
                ["label=Alexandra","label=Auckland","label=4","label=March","label=2008","label=11:00am","5","B"],\
                ["label=Brighton","label=Coromandel","label=11","label=May","label=2010","label=10:00am","6","c"],\
                 ["label=Dargaville","label=Drury","label=14","label=July","label=2009","label=1:00pm","1","D"],\
                 ["label=Dunedin","label=Duntroon","label=16","label=June","label=2008","label=2:00pm","2","E"],\
             ["label=Edgecumbe","label=Eltham","label=19","label=July","label=2011","label=1:00pm","40","D"],\
              ["label=Fairlie","label=Drury","label=21","label=April","label=2009","label=3:00pm","50","E"],\
              ["label=Dargaville","label=Glenorchy","label=22","label=October","label=2012","label=4:00pm","30","F"])
     #unavailable input:
     self.badcase=(["label=Dargaville","label=Glenorchy","label=31","label=February","label=2012","label=4:00pm","30","F"],\
                  ["label=Dunedin","label=Duntroon","label=16","label=June","label=2008","label=5:00pm","0","E"],\
                  ["label=Dunedin","label=Duntroon","label=16","label=June","label=2008","label=5:00pm","-42","E"],\
                  ["label=Dunedin","label=Duntroon","label=16","label=June","label=2008","label=5:00pm","1000","E"],\
                   ["label=Dunedin","label=Duntroon","label=16","label=June","label=2008","label=5:00pm","aAS","E"])
     
     self.monthdic={"January":"01","February":"02", "March":"03", "April":"04", "May":"05", "June":"06", "July":"07", "August":"08", "September":"09", "October":"10", "November":"11","December":"12"}
     self.daydic={"1":"01","2":"02","3":"03","4":"04","5":"05","6":"06","7":"07","8":"08","9":"09","10":"10","11":"11","12":"12","13":"13",\
              "14":"14","15":"15","16":"16","17":"17","18":"18","19":"19","20":"20","21":"21","22":"22","23":"23","24":"24",\
          "25":"25","26":"26","27":"27","28":"28","29":"29","30":"30","31":"31"}
Ejemplo n.º 2
0
 def setUp(self):
     self.verificationErrors = []
     #if you test your application from remote massey host change "http://*****:*****@example.com","Akaroa","061234567"],["*****@*****.**","Arrowtown","061234567"],["*****@*****.**","Bluff","061010101"])
Ejemplo n.º 3
0
 def setUp(self):
     self.verificationErrors = []
     self.selenium = selenium("localhost", 5555, "*iexplore", "http://localhost:8080/")
     self.selenium.start()