Ejemplo n.º 1
0
class Hotelbookcase(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        base = Basepage("https://phptravels.net/")
        home = Homepage(base.driver)
        #base.driver.implicitly_wait(10)
        home.click_signin()
        self.Login = Loginpage(base.driver)
        self.Login.do_login("*****@*****.**", "demouser")
        self.hotel = Hotelbookpage(base.driver)
        self.hotel.click_on_Hotels()

    def setUp(self):
        pass

    #@data((,))
    #@unpack
    def test_Hotel_search(self):
        self.hotel.HotelSearch()

    #def test_Hotel_Book(self):
    #   self.hotel.

    def tearDown(self):
        pass
        # logout
        # quit browser.

    @classmethod
    def tearDownClass(cls):
        pass
Ejemplo n.º 2
0
class UserLogin(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        base = Basepage("https://phptravels.net/")
        home = Homepage(base.driver)
        #base.driver.implicitly_wait(10)

        home.click_signin()
        self.Login = Loginpage(base.driver)

        #Login.do_login("*****@*****.**","Rahmi123#")

    def setUp(self):
        pass

    @data(("*****@*****.**", "demouser"))
    @unpack
    def test_user_login(self, username, password):
        self.Login.do_login(username, password)

    def tearDown(self):
        pass

    @classmethod
    def tearDownClass(cls):
        pass


# [email protected]
# Rahmi123#