def test_airTicket(self): loginpage = loginPage(self.driver) formpage = formPage(self.driver) self.driver.get(e7_Url) login = loginpage.login('y1', '1') self.assertTrue(login, "登陆失败") sys = formpage.system() self.assertTrue(sys, "进入定时任务失败")
def test_airTicket(self): loginpage = loginPage(self.driver) formpage = formPage(self.driver) airpage = airPage(self.driver) self.driver.get(e7_Url) login = loginpage.login('y1', '1') self.assertTrue(login, "登陆失败") frontMytrip = formpage.frontMytrip() self.assertTrue(frontMytrip, "我的行程进入失败") res = airpage.tripByChange() self.assertIn(res, "操作成功, 正在预订, 请稍后...")
def test_airTicket(self): loginpage = loginPage(self.driver) formpage = formPage(self.driver) airpage = airPage(self.driver) self.driver.get(e7_Url) login = loginpage.login('y1','1') self.assertTrue(login, "登陆失败") frontMytrip = formpage.frontMytrip() self.assertTrue(frontMytrip, "我的行程进入失败") res = airpage.tripByRefund() self.assertIn("退票",res)
def test_airTicket(self): loginpage = loginPage(self.driver) formpage = formPage(self.driver) airpage = airPage(self.driver) self.driver.get(e7_Url) login = loginpage.login('y1', '1') self.assertTrue(login, "登陆失败") frontOrder = formpage.frontOrder() self.assertTrue(frontOrder, "进入我的订单失败") res = airpage.orderByRefund() self.assertIn("退票", res)
def test_airTicket(self): loginpage = loginPage(self.driver) formpage = formPage(self.driver) airpage = airPage(self.driver) self.driver.get(e7_Url) login = loginpage.login('y1', '1') self.assertTrue(login, "登陆失败") frontOrder = formpage.frontOrder() self.assertTrue(frontOrder, "进入我的订单失败") res = airpage.orderByChange() self.assertIn(res, "操作成功, 正在预订, 请稍后...")
def test_airTicket(self): loginpage = loginPage(self.driver) formpage = formPage(self.driver) airpage = airPage(self.driver) self.driver.get(e7_Url) login = loginpage.login('y1', '1') self.assertTrue(login, "登陆失败") mytrip = formpage.toMyTrip() self.assertTrue(mytrip, "进入行程失败") frontTripTwo = airpage.frontTripTwo() self.assertTrue(frontTripTwo, "行程提交失败") res = formpage.submitFrom() self.assertIn(res, "提交成功")
def test_airTicket(self): loginpage = loginPage(self.driver) formpage = formPage(self.driver) airpage = airPage(self.driver) self.driver.get(e7_Url) login = loginpage.login('y1','1') self.assertTrue(login, "登陆失败") frontMytrip = formpage.frontMytrip() self.assertTrue(frontMytrip, "我的行程进入失败") try: res = airpage.tripByReselect() self.assertIn(res, "操作成功, 正在预订, 请稍后...") except Exception: res = formpage.submitFrom() self.assertIn(res,"提交成功")
def test_airTicket(self): loginpage = loginPage(self.driver) formpage = formPage(self.driver) airpage = airPage(self.driver) self.driver.get(e7_Url) login = loginpage.login('y1', '1') self.assertTrue(login, "登陆失败") mytrip = formpage.toMyTrip() self.assertTrue(mytrip, "进入行程失败") frontTripThree = airpage.frontTripThree() self.assertTrue(frontTripThree, "往返行程创建失败") chooseToAirlineToAndFrom = airpage.chooseToAirlineToAndFrom() self.assertTrue(chooseToAirlineToAndFrom, "往返航班预订失败") res = formpage.submitFrom() self.assertIn(res, "提交成功")
def __init__(self, driver): self.driver = driver self.lg_page = loginPage(driver) self.mouseEvent = mouseEvent(driver)