Beispiel #1
0
def test_login_successful(wxMainApp, login, password):
    """
        Trying to enter valid data in login form
        (typing login/password with errors, but out app fix this to valid)
    """
    Faker.enterFakeLogin(wxMainApp, login, password)
    Faker.clickButton(wxMainApp, ID_BUTTON_ACCEPT)
    Faker.clickButton(wxMainApp.FileManager, ID_EXIT)
Beispiel #2
0
def test_registration_successful(wxMainApp, login, password, fullname, email):
    """
        Trying to enter valid data in registration form
        (typing login/password/fullname with errors, but out app fix this to valid)
    """
    Faker.clickHyperlink(wxMainApp, ID_NEW_MEMBER_TXT)
    Faker.enterFakeRegisterData(wxMainApp.RegisterWindow, login, password, fullname, email)
    Faker.clickButton(wxMainApp.RegisterWindow, ID_BUTTON_REG)
    Faker.clickButton(wxMainApp, ID_BUTTON_CLOSE_MSG)
Beispiel #3
0
def test_login_failed(wxMainApp, login, password):
    """
        Trying to enter invalid data in login form
        (typing login/password with errors, but out app fix this to valid)
    """
    Faker.enterFakeLogin(wxMainApp, login, password)
    wx.CallAfter(Faker.clickButtonDialogOK(wxMainApp))
    Faker.clickButton(wxMainApp, ID_BUTTON_ACCEPT)
    Faker.clickButton(wxMainApp, ID_BUTTON_CANCEL)
Beispiel #4
0
def test_close_2(wxMainApp):
    """
        Close application by scheme:
            1) open main window
            2) go to registration
            3) close registration window
    """
    Faker.clickHyperlink(wxMainApp, ID_NEW_MEMBER_TXT)
    Faker.clickButton(wxMainApp, ID_BUTTON_EXIT)
Beispiel #5
0
def test_close_4(wxMainApp):
    """
        Close application by scheme:
            1) open main window
            2) auth with fake account
            3) click on "File" -> "Exit"
    """
    Faker.enterFakeLogin(wxMainApp, "relrin", "123456")
    Faker.clickButton(wxMainApp, ID_BUTTON_ACCEPT)
    Faker.clickMenuItem(wxMainApp.FileManager, ID_EXIT)
Beispiel #6
0
def test_close_1(wxMainApp):
    """
        Close login window, on clicking "Cancel"
    """
    Faker.clickButton(wxMainApp, ID_BUTTON_CANCEL)