Mobile Testing with Appium
How to Start Appium
Please read more about Appium to figure out its philosophy.
Few words about Appium architecture:
Appium has different client libraries, for writing a script in general we you some IDEs such as IntelliJ, Eclipse, Visual Studio, etc.
When you launch your Appium server and create a new driver (Andriod/iOS), the session will be created by Appium server according to the Capabilities you defined in your script.
Capabilities are type of configurations that needed by Appium to create the session, when the server gets the capabilities it creates a session (driver) in order to perform actions on your app.
Once you get the driver you can perform UI actions using different driver engines like XCUITest and UIAutomator.
The engines will help you to execute your tests on the app UI.
Note: For creating a session on Appium you must define the URL and port manually or programmarly.
To start testing your app you must get and define Device and App capabilities, see below code snippets.
AppiumCaps.java snippet creates an object of DesiredCapabilities to define capabilities of the Device and the App you’re trying to test. I added 2 options for starting a session on Appium, the first option is by manually starting Appium server and the second option by starting the server programmarly in StartAppiumService.java snippet.
Comments
Post a Comment