Create Appium Test for an iOS App

Steps involved in creating an Appium test for an iOS App:

The following tutorial is a part of our Appium Studio review series and it will show you how to create a simple test for your iOS application and how to export it to your IDE.

VIDEOS: Here are few Video Tutorials

=> Download the free Appium Studio Community Edition

Connect an iOS device to Appium Studio

To connect an iOS device, follow the instructions here:

Open an iOS Device

Open the device by double-clicking it once it is added or single-clicking it and selecting “Open.”

Open iOS device

The device reflection will then open.

Device Reflection

The device reflection screen can now be used to interact with and control the device being tested. The “Object Spy” Object Spy tool tool can also be used to analyze active elements on the screen.


Import an iOS Application for Testing

Import your application by selecting the “Import” Import an iOS App icon. If you are testing on a real device, then select the IPA file associated with it. If you are working a simulator, then choose the appropriate .app file.

The EriBank test application will also be available for testing from the application repository.
Select whichever application you wish to test.

Select Capabilities

Select “Capabilities.” This will establish your test/app lifecycle.

Capabilities will impact Recording, Code Generation, and Execution in Appium Studio.

Record your Appium Test

Click “Record” Record.

The device will then be prepared for recording.

Once it is ready, begin performing whatever operations you wish to test.

Mouse clicks and click-and-hold movements will simulate touch and swipe actions, while keystrokes will act as key inputs.

We recommend that you complete your recording on the same screen as you began. This will allow you to cycle your execution much more efficiently during the debug process.

Once the recording is complete, a script will be generated in the Appium Studio test lab.

Appium Studio test lab

There, the command parameters can be modified and new/existing commands can be input or edited.

The validity of your recording can be ensured by executing this recorded script. To do this, press “Play” Play.

Our upcoming tutorial will explain you more about creating Appium tests using Object Spy & Xpath.

PREVIOUS Tutorial #6 | NEXT Tutorial #8