How to test dynamic GPS location in mobile



  • How to test my application for GPS location without travelling in real-time?

    Problem behind my query :

    I am in need to test a travel-based application where your location will change according to the traveller's direction, now I need to test my geo location-based app while on the drive (a car/some vehicle)

    Question As location dynamically changes on the move, is it there any way to test the application for testing/simulate without travelling in a real-time?



  • • For Android

    Lockito application should work for you.

    It allows to emulate movement from one location to another one.
    You can set the speed, the route is based on Google Maps.


    • For iOS

    There are at least 2 approaches:

    • use Xcode with GPX files
      Here's good article on this. Also there is a script to generate GPX files with routes.

    • or add location spoofing to your test scripts
      Find information and code example here. Using this you can set moving speed as well.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2