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()
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")
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()
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()
def setUp(self): self.driver = driver().getDriver() self.log = logger(report.today_report_path).getlog() self.log.info("test_02")
def setUp(self): self.log = logger(report.today_report_path).getlog() self.log.info("test_03") self.passengerListPage = passengerListPage()