The Funky Hermit
The Funky Hermit

Reputation: 101

Receiving a broadcasted Intent in Appium

I am trying to use Appium to run tests on an Android device where the app we are interfacing with provides an API via the Intents library. We can send Intents with commands to it like "sendMessage", "pressKeyDown", etc.

One of the requirements is that this app also wants to broadcast Intents back to us as a way of providing a response.

We were considering using the Appium libraries as it would require a lot less work in our current architecture. However, I don't see a way in Appium to register a receiver. Are my eyes deceiving me or is this not a thing?

Thank you.

Upvotes: 0

Views: 571

Answers (1)

dmle
dmle

Reputation: 3658

I don't think Appium supports it out of the box. It is not available via general API, but you can give it a try via mobile:command interface simply running adb shell command.

If you will go this way, you probably need to start Appium with security args Should not be a problem while running on self hosted machines, but could be not available on 3rd party services.

Upvotes: 1

Related Questions