Files
appium/sample-code/examples/RobotFramework/test_android_contact_resource.txt
T
Erol Selitektay e717690e63 added robot framework contact example
robot framework contact example for android added
2014-07-13 13:43:12 +03:00

20 lines
894 B
Plaintext

*** Settings ***
Library AppiumLibrary
*** Variables ***
${REMOTE_URL} http://localhost:4723/wd/hub
${PLATFORM_NAME} Android
${PLATFORM_VERSION} 4.2.2
${DEVICE_NAME} Android Emulator
${APP} ../../../sample-code/apps/ContactManager/ContactManager.apk
*** Keywords ***
add new contact
[Arguments] ${contact_name} ${contact_phone} ${contact_email}
Open Application ${REMOTE_URL} ${PLATFORM_NAME} ${PLATFORM_VERSION} ${DEVICE_NAME} ${APP}
Click Element accessibility_id=Add Contact
Input Text id=com.example.android.contactmanager:id/contactNameEditText ${contact_name}
Input Text id=com.example.android.contactmanager:id/contactPhoneEditText ${contact_phone}
Input Text id=com.example.android.contactmanager:id/contactEmailEditText ${contact_email}
Click Element accessibility_id=Save