Use Appium Desktop to Boost Your Appium Efficiency
Use Appium Desktop to Boost Your Appium Efficiency
Appium has been a solid test automation framework for some time, but with the release of Appium desktop it's now even easier to use!
Join the DZone community and get the full member experience.Join For Free
You've been hearing a lot about agile software development, get started with the eBook: Agile Product Development from 321 Gang.
We’ve talked about this many times, but Appium has been one of the most solid open source test automation frameworks during the few past years. And despite significant changes in Appium iOS, it seems that this framework is going (again) full steam ahead.
The latest addition is the Appium Desktop tool that enables users to work with Appium on their desktops and use Inspector for yet better analysis of their app. Let’s take a look at how to get Appium Desktop installed and how to work with it.
Appium Desktop is a great new tool for Appium users that actually makes the use of Appium test automation framework easier. However, Appium Desktop doesn’t replace any Appium components itself – but it adds great capabilities to work with Appium Server and Appium Inspector to explore your application. Furthermore, it also enhances the way test scripts can be built and we’re pretty sure this will help many of you with the script creation.
Appium Desktop for Mac, Windows, and Linux
Appium Desktop is an open source application running on Mac OS X, Windows, and Linux operating systems. Appium Desktop combines two essential components of Appium:
- Appium Server: Server instance for enabling testing (and test automation) of apps.
- Appium Inspector: For inspecting UI elements of your app and getting all details of those.
Appium desktop provides a graphical user interface for these two components that makes test script creation easy, setting up an Appium test server quickly, and even setting up the whole Appium environment with Appium Desktop installation.
One significant benefit introduced with Appium Desktop is that you don’t need Mac anymore to efficiently develop Appium test scripts. With the help of Appium Desktop, you can use Windows or Linux as well.
How to Get Started with Appium Desktop
First, download the right package for your platform (Mac, Win, Linux) from Appium Desktop release page. After the download has completed install the package as you install any application on your OS.
Run the application and the following options will be available in the main menu:
Advanced options, such as server address, ports for Android and iOS agents etc. can be configured here but it’s highly recommended to read product documentation before doing so.
If you want to use local devices, start the Appium Server with preferred configurations and the server console will be launched on the host and port you specified. NOTE! If you use cloud services (such as Bitbar Public Cloud) you don’t need to start the Appium Server.
With Appium Desktop you don’t need to work with command line, but in case you have to or you have integrated your Appium environment with some tools, you can also work with the command line to get things done.
Now, you can click ‘Start New Session’ on console view and this will enable the use of Appium Inspector on recently the launched server. Furthermore, the new window opened enables you to build desired capabilities for an Appium test run/session, as follows:
TIP! When drafting desired capabilities for your test, Appium Desktop is capable of returning specific desired capabilities that are missing. For example: “testdroid_target”; “testdroid_project”; “testdroid_testrun”; etc.
TIP 2! When you have entered your desired capabilities do remember to save them (by clicking Save As…). This is very handy as those desired capabilities will be in use in next sessions with the Appium Desktop (e.g. if you close Appium Desktop your desired capabilities will be removed if not saved).
The Appium Desired Capabilities for your Appium tests, devices and additional configuration is fairly simple, but if you look for more information about how to master desired capabilities take a look at the Appium Ebook that provides you plenty of tips and tricks on how to use Appium efficiently.
Appium Inspector provides a graphical user interface tool to inspect your application with the ability to exercise certain interactions for it. Appium Inspector, which now uses XCUITest as the Appium foundation, looks like this with Bitbar Sample App:
When a user clicks any element on the screenshot Appium Desktop automatically updates “Selected element” view to reflect the user’s interactions. After this, users can implement different functions, like tap, write (send keys), etc.
Are you looking for a comprehensive list of tips and tricks for Appium? Take a look at our best practices, tips, and tricks provided with those blogs!
Enjoy Appium Desktop!
Published at DZone with permission of Ville-Veikko Helppi , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.