Skip to main content

Verify if selenium tests are running on real devices or emulators

If I use any cloud provider (eg SauceLabs, AWS Device Farm etc) for testing my native android and iOS apps, is there a way to determine if the test was being run on a real device or an emulator.

I need this check to verify the authenticity of the results. My appium code is written in Java. Is there any library or method I can call that verifies if the test is being run on a real device or an emulator

BountyHunter
  • 630
  • 1
  • 6
  • 21