From the course: Advanced Appium

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

State shortcut 3: Application backdoors

State shortcut 3: Application backdoors - Appium Tutorial

From the course: Advanced Appium

Start my 1-month free trial

State shortcut 3: Application backdoors

- [Instructor] The final strategy we're going to discuss for quickly setting up app state is actually directly calling methods in your application source code from Appium. Since this strategy is not available to users, we call it backdooring because you're getting into the app from the backdoor, so to speak. Let's take a look at how it works. The basic idea here is that you may have methods inside your app which are purely internal bits of code. Some of these bits of code might do useful things like adding a user or performing another action that could save you time as a tester. Typically, you would not be able to access these internal methods from Appium because Appium can only automate the UI from the outside, just like a user. However, if you use Appium's Espresso driver, which is the newest of Appium's Android drivers you'll be working with Google's Espresso technology under the hood. Espresso is designed in such a way…

Contents