Using Python we can use the gpxpy library, which allows us to parse and manipulate GPX files. You need something to be able to manipulate your. gpx content and gives you the option to download it. Just select Gpx and paste the Google Maps URL into the field labelled “provide the URL of a file on the Web” and press Convert button.Ī new page is displayed which shows you the. You can ignore most of the available options. To convert your route we’d propose you to visit /convert_input. GPX is an XML based format for GPS tracks. Once your route is defined, copy the page URL link in the address bar to your clipboard. So head over to Google Maps, select the car option and start planning a route. Choose a programming languageįor this example we choose to use Python. Let’s see step by step how we can create and emulate a trip by car:: 1. What is Genymotion Shell and what can I do with it ? With these simple commands we can imagine multiple tests like calculating the distance between two points, simulating a location, simulating a trip step by step (by foot, by car, by train…). Set longitude: gps setlongitude 145.4578.You can interact with different kind of sensors, such as battery, GPS, Network, phone, baseband… For example, you can use Genymotion shell to activate the GPS and set your own values for the latitude, longitude, altitude… Just like this: Deleting a device: gmtool admin delete What is Genymotion Shell and what can I do with it ?Īs the name indicates, Genymotion Shell is a shell which allows you to script the modification of sensor statuses and values.When you are done using it, you can stop and delete it using these commands: Look up the device templates list: gmtool admin templatesĬhoose a template, then create and start a device: It can be started by running gmtool from a command prompt, from the installation path of Genymotion.
GMTool is a command line tool that allows you to use every command of Genymotion and virtual devices in order to automate a series of actions. What is GMTool and what can I do with it ? By combining these 2 tools many automation possibilities await. Genymotion offers two features to automate testing: GMTool and Genymotion Shell. Automation can also improve your product quality by running the same scripts in different environments, testing on many platforms and devices.
Take, for example, automated unit tests and functional tests: much faster than manual tests, they allow developers and quality engineers to make sure there are no regressions. What is the main goal of automation ?Īutomation is a great way to save time and improve product quality.
More specifically, it will explain how to plan a route – for say a car trip, show you how to generate a script and how to automatize every single GPS movements.īut first, let’s take a look at what is automation and what it can bring to app development. This tutorial will tell you how to use Genymotion to simulate device location changes. Written by Lydwine Camus – QA Engineer at Genymobile