java - How Do I Write My First Appium Test For iOS -


i have set of prerequisites run appium test on mac computer, cannot figure out how run first appium test. having trouble writing test in java. perfect thing file put on computer, that, when run, open ios simulator , press buttons. know selenium figure out rest myself. have several test apps on computer

but writing actual test file (java preferred) appreciated!

to run ios tests, can follow these steps :

(note : using java language here in eclipse ide , using appium app):

  1. create new java project in eclipse.
  2. import jar files : selenium server (formerly selenium rc server) version , required client driver (according language choice) can downloaded here. (to import : right click on project -> properties -> libraries -> add external jars. add 3 selenium jar files here.)
  3. download appium app , launch.
  4. you can run test scripts either in simulator or on real device. run scripts on real ios device, need 'devicename', 'platformversion', 'udid' (device id) , 'bundle id' (application bundle id) , absolute path .ipa.
  5. to run scripts on ios simulator , need 'devicename', 'platformversion', path .app , 'bundle id' of app.
  6. choose capabilties in appium app , mention same in script based on whether testing on simulator or on device.
  7. launch appium server , run script.

all appium server capabilities can used can found here.

you can refer blog post here more details execute sample basic script.