예제 #1
0
 def setUp(self):
     # global port, device
     # self.driver = driver(device).connect(port)
     # self.driver = self.driver.getDriver()
     self.log = logger(report.today_report_path).getlog()
     self.log.info("test_01")
     self.loginPage = loginPage()
예제 #2
0
 def run(self):
     if __name__ == '__main__':
         test = runTest()
         test.run(self.config, self.device)
         # test.driverquit()
         createReport.getfp().close()
         log = logger(date.today_report_path).getlog()
         log.info(self.device + "test over")
예제 #3
0
 def setUp(self):
     self.log = logger(report.today_report_path).getlog()
     self.log.info("test_mainflow")
     self.homepage = homePage()
     self.flightpage = FlightPage()
     self.timeline = TimelinePage()
     self.summary = SummaryPage()
     self.booking = BookingPage()
     self.passengerlist = passengerListPage()
     self.contactlist = ContactListPage()
     self.citypage = CityPage()
     self.insurancepage = InsurancePage()
     self.couponpage = CouponPage()
     self.paymentpage = PaymentPage()
예제 #4
0
 def setUp(self):
     l = logger(report.today_report_path)
     global isinit
     if not isinit:
         l.config()
         isinit = True
     self.log = l.getlog()
     self.log.info("test_passenger")
     self.homepage = homePage()
     self.flightpage = FlightPage()
     self.timeline = TimelinePage()
     self.summary = SummaryPage()
     self.booking = BookingPage()
     self.passengerlist = passengerListPage()
     self.contactlist = ContactListPage()
     self.citypage = CityPage()
     self.insurancepage = InsurancePage()
     self.couponpage = CouponPage()
     self.paymentpage = PaymentPage()
     self.passengerpage = PassengerPage()
     self.orderdetailpage = OrderDetailPage()
     self.paymentcompletepage = PaymentCompletedPage()
예제 #5
0
 def setUp(self):
     self.driver = driver().getDriver()
     self.log = logger(report.today_report_path).getlog()
     self.log.info("test_02")
예제 #6
0
 def setUp(self):
     self.log = logger(report.today_report_path).getlog()
     self.log.info("test_03")
     self.passengerListPage = passengerListPage()