Appium-Android: From Surface To Core

Over the past few years, Appium has gained tremendous popularity due to its support of many languages and multi-platform automation possibilities. It is the most popular tool for test automation engineers as of today.
However, there are times when beginner Appium users have a curiosity about how it works under the surface. Some intermediate/advanced users always wonder how to debug their automation code in conjunction with the Appium source code to find out why that element on UI can’t be located or why the click is not working on that custom element.
In this workshop, we will start with the tools that are building a block of higher-level android automation frameworks such as espresso, uiautomator2, etc. Later, we will deep dive into Appium with espressodriver.


Outline/Structure of the Workshop

Evolution till Appium

  • Brief History and comparison of First Order open source android automation tools (Robotium, UiAutomator, Espresso, UiAutomator2)
  • Evolution of higher-order Automation tools like Calabash and Appium.
  • Appium: an aggregator of First Order automation tools

Inside Appium

  • How does Appium work
  • Debugging Appium: Using lifecycle of a simple web driver action, we will follow the code path taken by an Appium command and debug/monitor the beautiful journey which will start from client-side Ruby/Java code, JavaScript side of Appium driver finally ending up with Java/Kotlin server inside the android device.

Learning Outcome

Users will learn How android automation with appium works under the hood. Some advanced users will be able to learn how to spot, debug and fix a bug in the Appium

Target Audience

Everyone from Beginners to Advanced users

Prerequisites for Attendees

Speaker will keep giving the demonstration on his machine. if attendees do not have a machine setup done, they can observe and ask questions during the workshop.

Installation Requirements:
In short, it will be nice to have a sample android Appium test running on your machine before attending this workshop. If you are new to Appium and need a sample test, refer these repo:
Must have skills for Attendee:
- The very basic idea of Appium
- Some coding experience
Good to have skills for Attendee:
- Basic knowledge of Android Operating system
- Very basic understanding of android development
In general, you will need below software in your machine for tests to work
- Intellij Idea (community edition is free to install)
- Java
- Node.Js
- Appium
- Android emulator OR Android Device with a USB cable
For some advanced debugging and development, below tools are needed (Not mandatory if you just want to watch demonstration)
- Android Studio with Android SDK
- Visual Studio Code
- Clone of
schedule Submitted 3 months ago

Public Feedback

comment Suggest improvements to the Speaker
  • Srinivasan Sekar
    By Srinivasan Sekar  ~  3 months ago
    reply Reply

    Hi Rajdeep,

    Thanks for the submission. This seems to me like an extended version of the Life Cycle of Appium Command talk from AppiumConf. Content looks good from a talk perspective but help me understand how are you going to conduct a hands-on workshop from the same?

    • Rajdeep varma
      By Rajdeep varma  ~  3 months ago
      reply Reply
      Hi Srini,
      Content looks good from a talk perspective but help me understand how are you going to conduct a hands-on workshop from the same?
      I had conducted this workshop at NewYork last month. . I could upload the recording but they don't have it yet
      The workshop starts with some theory, then attendees write a simple test for Android. Later they open the source code for Espresso server and driver in IDE and debug their own test's journey inside the IDE (VsCode/AndroidStudio). 
      Later, I give them another simple Appium exercise: Get the error field on an EditText in a simple app (as shown below)
      This seems very simple but it is not possible because there is no direct API in the Espresso server to get this attribute. Later, attendees themselves implement code in espresso server to retrieve this attribute, compile server, and use it in the test script to make the test pass
      This will help them learn in detail how are various bits work and are connected in a more practical way.
      Last time, I did it in 3.5 hours, but I will manage to fit it in 3 hrs if we decide to go ahead
      This seems to me like an extended version of the Life Cycle of Appium Command talk from AppiumConf
      I got a chance to watch the video of your talk today. There will be some overlap related to the lifecycle. The major difference is that there will be additional focus on the server inside the device and debugging Appium code locally on IDE and extending server functionality. Also, as the title says, it is android only.
      Let me know if there are more questions


      • Srinivasan Sekar
        By Srinivasan Sekar  ~  3 months ago
        reply Reply

        Hi Rajdeep,

        Got it. Thanks for the details. Good content again. I don't think so we have a slot for 3hours workshop. Do you think you will be able to deliver this in 90mins? If so what's the trim down here. I believe prerequisites needs to be updated in this case with finer details. Will you be able to manage this alone? We expect 400+ attendees for Conf and quite alot can turn up for workshop at a time (No restrcitions).

        • Rajdeep varma
          By Rajdeep varma  ~  3 months ago
          reply Reply

          Thanks, Srini,

          I don't think so we have a slot for a 3hours workshop. Do you think you will be able to deliver this in 90mins? If so what's the trim down here.

          This submission was based on the assumption that there will be up to 40 fixed number of attendees with their machine set up before the workshop. If it is going to be a 90 min walk-in session with an unknown number of attendees, then I will have to change some parts to ‘Demonstration’ by me instead of forcing attendees doing hands-on, especially the last part where we add the new functionality into the espresso-server.

          I believe prerequisites need to be updated in this case with finer details

          I have updated it

          Will you be able to manage this alone? 

          Yes. However, if You, Sai or anyone else want to pop-in, it will be of great value for all attendees

          • Srinivasan Sekar
            By Srinivasan Sekar  ~  3 months ago
            reply Reply

            Thanks for your response. If the workshop gets through, yes some of us will chime in and able to help on this. 

  • Liked Rajdeep varma

    Rajdeep varma - The Joy Of Green Builds - Running Tests Smartly

    45 Mins

    So you have got a few UI tests and they are running in parallel, great! However, life will not be so sweet once these 'a few' turns into 'a lot'. We grew from a few to 1500 UI tests (although not particularly proud of this number, there are situations and reasons)

    We started with a simple parallel distribution of tests 3 years ago. As test count increased failure count run time increased along with increased flaky tests. Mobile tests had their own challenges (eg. device dropping-off, random wi-fi issues, etc) To keep up with this, we created a queue and workers based solution which could distribute the tests more efficiently ( Over time, we made more improvements, in particular:

    • Segregation of failures based on infrastructure issues and re-queue the tests
    • If a device/emulator malfunction, rescue the tests to another device
    • Repeating a single test on 100s of the worker in parallel to detect flakiness
    • Repeat a test if a known network issue
    • Terminating the build early if more than a certain number of tests have failed
    • Health check of each device, before each test to ensure reliability
    • Muting a test if failure is known, and highlight outdated mutes if the related task is fixed

    In this talk, I will talk about the initial challenges with running UI tests in parallel (Selenium and Appium), how we approached the queue based solution and continuous improvement of this solution; finally, how attendees can use it at their workplace or create their own solution based on our learnings.

  • 45 Mins
    Case Study

    Challenges in Testing & Automating Games

    Testing real-time, multi-user games built for native apps and / or browser-based on phones / mobile devices / tablets / desktop browsers makes testing of regular products as apps, or websites appear like a piece of cake. Testing such real-time and multi-user games becomes even more challenging when you think about automating the same.

    I got an opportunity to build Functional Test Automation for a suite of games – and what an exciting time it turned out to be!

    These games are built either using Cocos2d-x, or Unity (cross platform game engines for mobile games, apps and other cross platform interactive GUI and are known for their speed, stability, and ease-of-use).

    The key challenges I encountered here were:

    • Millions of users, playing games on a huge variety of devices (Android & iOS native apps, Mobile-Web, and Desktop Web)
    • Limited unit testing
    • API testing & Functional Testing done in isolation (mini-waterfall approach)
    • Usage of Cocos2d-x & Unity for game rendering – which cannot be automated via Appium
    • Limited Functional Automation (for native apps)

    An approach to Functional Automation of Real-Time, Multi-User Game scenarios

    I overcame the above mentioned challenges by doing the following:

    • A better way of working (you can call it ‘Agile’)
    • Break down the walls by fostering a mindset of “build quality-in, as opposed to test for quality”
    • Built a new functional automation framework using java / testing / appium-test-distribution / reportportal / jenkins with focus on – specify test intent once and run on all supported channels (ex: Android, iOS, Mobile-Web, and Web)
    • Built a solution for Cocos2d-x layer automation
    • Created a vision of CI-CD for the organization, and setup code-based CI pipelines to enable end-2-end visibility
    • Made the framework extensible by providing ability to use same framework for multiple games

    The focus of this talk will be to:

    • Share an example of a particular use case
    • Share the solutions, including code snippets, implemented for:
      • Functional Test Automation Framework Architecture & Design
      • Ease of Test Implementation, while maintaining code quality and promoting reuse
      • Test Execution on local Vs CI, on-demand as well as on every new build

  • Liked Ivan Krutov

    Ivan Krutov - Workshop: Efficient Selenium Infrastructure with Selenoid

    Ivan Krutov
    Ivan Krutov
    schedule 4 months ago
    Sold Out!
    480 Mins

    Selenoid is an alternative lightning fast open-source Selenium protocol implementation running browsers and Android emulators inside Docker containers. It is distributed with a set of ready-to-use Docker images corresponding to the majority of popular browser versions, has a one-command installation utility and works slightly more efficiently than traditional Selenium Grid.

    This tutorial shows how to build efficient and scalable browser automation infrastructure using Selenoid and related tools. You will be taught why running browsers in containers is so efficient, how to easily install Selenoid and use its powerful features.