Exemple #1
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)
Exemple #2
0
def test_registration_failed(wxMainApp, login, password, fullname, email):
    """
        Trying to enter invalid 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)
    wx.CallAfter(Faker.clickButtonDialogOK(wxMainApp.RegisterWindow))
    Faker.clickButton(wxMainApp.RegisterWindow, ID_BUTTON_REG)
    Faker.clickButton(wxMainApp, ID_BUTTON_CLOSE_MSG)
Exemple #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)
Exemple #4
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)
Exemple #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)
Exemple #6
0
def test_close_1(wxMainApp):
    """
        Close login window, on clicking "Cancel"
    """
    Faker.clickButton(wxMainApp, ID_BUTTON_CANCEL)