示例#1
0
def test_signup(start):
    reg = Registration.register(driver)
    reg.Login("Login")
    time.sleep(5)
    reg.Username2("Username2")
    reg.Passward2("Passward2")
    reg.Login2("Login2")
    time.sleep(5)
    assert driver.current_url == "https://www.thetestingworld.com/testings/dashboard.php"
示例#2
0
def test_dataset(data):
    driver = Initiate.startdriver()
    driver.get(Config.readconfig("Details", "URL"))
    driver.maximize_window()
    reg = Registration.register(driver)
    reg.Login("Login")
    time.sleep(5)
    reg.Username2(data[0])
    reg.Passward2(data[1])
    reg.Login2("Login2")
示例#3
0
def test_register(start):
    reg = Registration.register(driver)
    reg.Username("*****@*****.**")
    reg.EmailID("*****@*****.**")
    reg.Passward("Pavan@123")
    reg.Cpassward("Pavan@123")
    reg.DOB("09/04/1992")
    reg.Phone("8976113456")
    reg.Home("Home")
    time.sleep(3)
    reg.Scroll("Scroll")
    reg.Sex("Sex")
    time.sleep(5)
    reg.Country("Country")
    time.sleep(5)
    reg.State("State")
    time.sleep(5)
    reg.City("City")
    time.sleep(5)
    reg.Zip("Zip")
    reg.Terms("Terms")
    reg.SignUp("SignUp")
    time.sleep(5)
示例#4
0
def test_ABC(data):
    driver = InitiateDriver.StartBrowser()
    objRegistration= Registration.registration(driver)
    objRegistration.username(data[0])
    objRegistration.email(data[1])
示例#5
0
def test_pomregistration():
    driver = InitiateDriver.StartBrowser()
    objRegistration = Registration.registration(driver)
    objRegistration.username('romesh')
    objRegistration.email('*****@*****.**')