+

Search Tips   |   Advanced Search

Location scenarios: demonstration

This demonstration shows what is provided by the scenario widget, which can be used to develop and test location-dependent behavior of mobile apps, as part of the MobileFirst mobile tools suite.

Clicking the scenario widget presents a scenario template. We can create, import, load, export, edit scenarios, and play or restart scenarios.

Figure 1.

We provide the longitude and latitude for the location, which is based on the behavior of the application to test. To test geofences, enter a location close to their boundary. For example, if the application defines a geofence around a store, you could provide the location of that store.

Figure 2 shows a map displaying an area of roads and buildings and also includes the location of a shopping mall. The template supplies the Longitude, Latitude field which must be completed.

Figure 2.

Provide the location for the user's device to be set up and tested in the Longitude, Latitude field. This is where the movement of the device will be simulated. After entering the longitude and latitude click Go to move the map to that location.

The template also shows the various buttons and tools used for navigating, and for creating paths and zones in the scenario.

The three icon buttons are used to define the scenario by creating paths and zones.

Figure 3 shows the Access Point that requires data to be entered in the fields.

Figure 3.

When we click the WiFi zone, the Access Point presents the SSID and MAC fields, so we can enter the relevant data. Here we can use the name of a restaurant or store, for example. A Delete button is provided to delete the WiFi zone. Two blue circles, or handles, are also visible. These can be used to move or resize the WiFi zone. In figure 4, the WiFi Zone is moved and enlarged. A no-GPS zone has been defined, see the gray polygon.

Figure 4.

If we click the path, it produces a Route Point dialog, used to enter how much time it takes the simulated user to reach various points along the route. The first Route Point is set at 0, which cannot be edited.

The second Route Point can be set as 11, for example

The third Route Point can be set as 17, for example

We can change the times, but each value must be increasing from the last. When we play the simulation, the simulated user is at point 1 at time 0, at point 2 at time 11, at point 3 at time 17.

When the scenario is completed, click Apply and then Play to play the scenario; see Figure 5.

Figure 5.

On the screen you see the user moving along the path, and the information that you receive can be used to interact with the application that is being tested. As the user enters various areas, if a geofence or WiFi trigger is set up then you see that the user's device would register the geofences or WiFi fences.

Click Export to save the scenario to disk. We can reload it by clicking Import, selecting the file where it was previously saved, and clicking Play. After clicking Play, the button changes to Pause, and can be clicked to pause the scenario. Clicking Restart plays the scenario from the beginning.


Parent topic: Location scenarios