O'Reilly logo

Mobile Test Automation with Appium by Nishant Verma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating Boilerplate code for iOS

Once we have the preceding Appium set up does and it runs successfully to deploy the app on the iOS simulator, we can use the boiler plate code to implement the first step which is about launching the app. The precedingly written scenario in case of android is contextual to the app; let's write a unique scenario for the iOS app to understand the concepts under a new feature file and name it Sample_ios.feature:

Following is the snippet which you can copy after creating a new feature file for iOS features:

Feature: Hello WorldScenario: Computing sum of two number As a user When I add two number 22 and 33 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required