Пример #1
0
def step_impl(context):
    for row in context.table:
        squishtest.activateItem(squishtest.waitForObjectItem(":Address Book_JMenuBar", "Edit"))
        squishtest.activateItem(squishtest.waitForObjectItem(":Edit_JMenu", "Add..."))
        squishtest.type(squishtest.waitForObject(":Address Book - Add.Forename:_JTextField"), row["firstname"])
        squishtest.type(squishtest.waitForObject(":Address Book - Add.Surname:_JTextField"), row["lastname"])
        squishtest.type(squishtest.waitForObject(":Address Book - Add.Email:_JTextField"), row["email"])
        squishtest.type(squishtest.waitForObject(":Address Book - Add.Phone:_JTextField"), row["phone"])
        squishtest.clickButton(squishtest.waitForObject(":Address Book - Add.OK_JButton"))
Пример #2
0
def step_impl(context):
    for row in context.table:
        squishtest.activateItem(
            squishtest.waitForObjectItem(":Address Book_JMenuBar", "Edit"))
        squishtest.activateItem(
            squishtest.waitForObjectItem(":Edit_JMenu", "Add..."))
        squishtest.type(
            squishtest.waitForObject(
                ":Address Book - Add.Forename:_JTextField"), row['firstname'])
        squishtest.type(
            squishtest.waitForObject(
                ":Address Book - Add.Surname:_JTextField"), row['lastname'])
        squishtest.type(
            squishtest.waitForObject(":Address Book - Add.Email:_JTextField"),
            row['email'])
        squishtest.type(
            squishtest.waitForObject(":Address Book - Add.Phone:_JTextField"),
            row['phone'])
        squishtest.clickButton(
            squishtest.waitForObject(":Address Book - Add.OK_JButton"))
Пример #3
0
def step_impl(context):
    squishtest.activateItem(
        squishtest.waitForObjectItem(":Address Book_JMenuBar", "File"))
    squishtest.activateItem(
        squishtest.waitForObjectItem(":File_JMenu", "New..."))
Пример #4
0
def step_impl(context):
    squishtest.activateItem(squishtest.waitForObjectItem(":Address Book_JMenuBar", "File"))
    squishtest.activateItem(squishtest.waitForObjectItem(":File_JMenu", "New..."))