Validate Push Notifications?

Mobile Testing, Android App Testing.
Posts: 6
Joined: Thu Jul 12, 2012 4:32 pm

Validate Push Notifications?

Post by starrdoug99 » Wed Mar 06, 2019 11:21 pm

We have multiple iOS and Android apps that are starting to use push notifications to notify our users of specific actions that they need to take in the app. It is becoming a major feature in our apps and we have gotten requests to write automated tests to verify that these push notifications are being generated as expected.

Is there support for this in Ranorex that I'm just not aware of? Is there another way that I could verify these push notifications with user code or a third party tool that I could tie into Ranorex? If not, I would like to suggest that Ranorex find a way to implement support for this in a future release.

Thank you
Doug Starr

User avatar
Ranorex Guru
Ranorex Guru
Posts: 7469
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Validate Push Notifications?

Post by odklizec » Thu Mar 07, 2019 8:48 am


I'm pretty sure that there is no chance to work with push notifications on iOS platform and there is nothing Ranorex can do about this. Simply put, it's an iOS security restriction, which prevents 3rd party apps (like your instrumented iOS app), from accessing elements and processes outside their own context (including system messages and dialogs).

As for Android, you may be luckier here, because Ranorex offers an option to automate Android system apps (by enabling switch in settings). However, even this option does not work with everything and I'm not quite sure you will be able to track push notification messages? But at least, you can give it a try. All you have to do is to connect your mobile via USB (USB is required here) and enable Android OS flag, as described here: ... stem-apps/
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration