Enroll in Selenium Training

The following tutorial will show you how to create a simple test for your iOS application and how to export it to your IDE.

Download the free Appium Studio CommunityEdition

1.  Connect an iOS device to Appium Studio

See instructions on how to connect iOS devices here: Connecting iOS Devices

2. Open an iOS device

Click on OK. And on 'Open Device' icon.

Create an Appium test iOS App

The device reflection should be open.

The device reflection is interactive, you can fully control the device from the reflection. You can also use the 'Object Spy'  to analyze the current screen objects.

3. Import an iOS Application for testing

To work with your application you should first import it, click on the 'Import' icon. Select your IPA file if you work with a real device or .app file in case you are using a simulator.

You can use the EriBank application available in the applications repository.

Select the application you would like to work with.

4. Select capabilities

Once a device and an application are selected you can select another capability, that will set your test/application lifecycle.

The selected capabilities will affect

  1. Recording,
  2. Code generation,
  3. Execution within the studio.

5. Record your Appium test

Click on the 'Record' button.

Wait for the device to be prepared for recording.

Start to perform the operations on the device reflection screen.

Use your mouse to simulate touch and swipe actions, and your keyboard to send keys.

It is recommended to end your recording on the same page you have started the recording. It will enable easily cycled execution when you debug your script.

After you stop the recording the script is generated in the studio test tab.

Appium test iOS App 1

You can add new commands and modify the existing commands and commands parameters.

You can verify your recording is valid by executing the recorded script. Just click on the 'Play' button.

Create an Appium test for Android App
Create an Appium test for Android App
Previous Article
Use the Object Spy & XPath to create Appium tests
Use the Object Spy & XPath to create Appium tests
Next Article
Lakshay Sharma
I’M LAKSHAY SHARMA AND I’M A FULL-STACK TEST AUTOMATION ENGINEER. Have passed 16 years playing with automation in mammoth projects like O2 (UK), Sprint (US), TD Bank (CA), Canadian Tire (CA), NHS (UK) & ASOS(UK). Currently, I am working with RABO Bank as a Chapter Lead QA. I am passionate about designing Automation Frameworks that follow OOPS concepts and Design patterns.
Virender Singh's Photo
Virender Singh

Similar Articles