Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Inspect an App with the New Appium Desktop

DZone's Guide to

Inspect an App with the New Appium Desktop

For mobile developers, the ability to inspect their app is a crucial part of refining their code, and the app's overall usability.

· Mobile Zone
Free Resource

Launching an app doesn’t need to be daunting. Whether you’re just getting started or need a refresher on mobile app testing best practices, this guide is your resource! Brought to you in partnership with Perfecto

Introduction

The new version of Appium continues to work on Windows and MacOSX platforms, and is now supported in Linux. So, no matter the kind of computer you have, you should be able to follow along as long as you have a server and an inspector running the last version of Appium.


What's New in Appium?

There's a new GUI written in Electron, React, and Redux which been totally remodelated with three different parts:

  • Simple: You can change the default host and port.

  • Advanced: You can control general settings like log path, log level, node path, session, and timezone. You can change default bootstrap and Selendroid ports to a ChromeDriver port. Also, you can use Path for Android and WebDriverAgent for iOS.

  • Presets: Is there any change you made and need to save for future executions? You can do that with this functionality. 


When you start the Appium server you can also see the log output, just like in the older Appium.app.


So, How Can I Inspect an App in Appium Desktop?

You need to click on the Start New Session button after you start the Appium server.
A new window will appear: 


As you can see, you are presented with four options:

  • Automatic Server: You can add the Desired Capabilities to start any app and configure it in localhost.

  • Custom Server: You can add Desired Capabilities to start any app and configure it in a remote host.

  • Sauce Labs: You can start a new session over with SauceLabs environment.

  • TestObject: You can start a new session over with TestObject environment.

To start and inspect any app, you must set the Desired Capabilities by specifying the name and type of application (text, boolean, number, filepath, or JSON object). The JSON Representation will appear on the right side. These Desired Capabilities can be saved as presets (Save Capability Sets) and used for any of the options above (Automatic and Custom server, Sauce Labs, and TestObject).


To start the session with your Desired Capabilities set, click on the Start Session button.


After this, you are able to inspect any Android or iOS app.

In the image below, I'm inspecting an iOS app.


Now you'll be able to inspect an app with new the Appium Desktop!

Keep up with the latest DevTest Jargon with the latest Mobile DevTest Dictionary. Brought to you in partnership with Perfecto.

Topics:
mobile ,testing ,app development

Published at DZone with permission of Elias Nogueira. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}