Meego Wiki
Views

Quality/TestSuite/GeoClue Test Plan

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Test Strategy and Approach)
(Extra Environment Setup)
Line 80: Line 80:
'' $ ls /usr/share/dbus-1/services | grep org.freedesktop.Geoclue.Providers ''<br/>
'' $ ls /usr/share/dbus-1/services | grep org.freedesktop.Geoclue.Providers ''<br/>
Below services should be printed on screen:<br/>
Below services should be printed on screen:<br/>
-
org.freedesktop.Geoclue.Providers.Hostip.service
+
-rw-r--r-- 1 root root  85 Feb 22 02:56 org.freedesktop.Geoclue.Master.service
 +
-rw-r--r-- 1 root root  97 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Example.service
 +
-rw-r--r-- 1 root root  99 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Geonames.service
 +
-rw-r--r-- 1 root root  95 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Gsmloc.service
 +
-rw-r--r-- 1 root root  93 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Gypsy.service
 +
-rw-r--r-- 1 root root  95 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Hostip.service
 +
-rw-r--r-- 1 root root  99 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Localnet.service
 +
-rw-r--r-- 1 root root  95 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Manual.service
 +
-rw-r--r-- 1 root root  101 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Nominatim.service
 +
-rw-r--r-- 1 root root  95 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Plazes.service
 +
-rw-r--r-- 1 root root  91 Feb 22 04:48 org.freedesktop.Geoclue.Providers.Test.service
 +
-rw-r--r-- 1 root root  93 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Yahoo.service
* Directly connect to Internet without proxy
* Directly connect to Internet without proxy

Revision as of 05:48, 8 March 2011

Contents

GeoClue Test Plan

Component Summary

GeoClue is a software framework which can be used to enable geospatial awareness in applications. GeoClue utilizes the D-Bus inter-process communication mechanism to provide location information. Through this it aims to simplify development of location aware applications and promote code reuse within the free software and open source communities by defining a logical boundary between the applications and underlying location providers.

The following sequence diagram could help to understand how the classes interact to get the address, for instance:

Geoclue-seq-diagram.png

and GeoClue provides access to multiple position providers:

  • GPS: Position information from a Global Positioning System receiver (via gpsd and gypsy)
  • GSM: Position information from cellular network connection
  • Plazes: Position information from the Plazes Wi-Fi location service
  • Hostip: Position information based on IP address
  • Manual: User-provided position information

Feature to be Tested

Geoclue test suites are developed with focusing on API level testing. Each API is tested with a dedicated test suite. According to latest design, below is the key function feature and key point.

  • function API testing with the
FEA ID Feature summary Feature description and Test points Platform Priority
n/a Position API

* GeoClue should be able to extract the position information from the position providers which implement one or more Geoclue interface .
* The latitude, longitude, and altitude should be involved in the position information

ALL Major
n/a Geocode and ReverseGeocode API

* The Geocode interface should be available for getting a position from an address.
* ReverseGeocode interface should be available for getting an address from a position

ALL Normal
n/a Accuracy API

* The accuracy API should be available for setting and getting the accuracy of position

ALL Normal
n/a Providers and Master provider

* GeoClue should provide API to get the position information from a special provider or master provider.

ALL Normal

Feature not to be Tested

This test suite is only focus on the GeoClue API level testing, and the testing for each concrete provider is not in the scope of this suite. Only some provider will be involved for verifying the associated GeoClue API. Also performance testing is covered by Performance test plan. At the same time, internationalization and localization testing are also not involved in this test suite.

Test Strategy and Approach

GeoClue is a modular geoinformation service built on top of the D-Bus messaging system, so we are going to focus our test on the API functions. and all above mentioned API will be tested. The test cases are developed in glibc to access the D-Bus API, and could be executed automatically with the tools 'testkit' and 'AutoDTI'.

Test Types:

Most of cases are auto cases and provide function testing.

Test level:

All the cases are API level and inplemented with C language.

Test Automation:

Most of cases are auto cases and could be executed with the the tools 'testkit' and 'AutoDTI'.

Test Environment

General Environment Setup

  • Netbooks/Nettops/Notebooks meego platform or other platform with the geoclue package.

Extra Environment Setup

  • Check geoclue pypsy provider DBUS services.

$ ls /usr/share/dbus-1/services | grep org.freedesktop.Geoclue.Providers
Below services should be printed on screen:
-rw-r--r-- 1 root root 85 Feb 22 02:56 org.freedesktop.Geoclue.Master.service -rw-r--r-- 1 root root 97 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Example.service -rw-r--r-- 1 root root 99 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Geonames.service -rw-r--r-- 1 root root 95 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Gsmloc.service -rw-r--r-- 1 root root 93 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Gypsy.service -rw-r--r-- 1 root root 95 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Hostip.service -rw-r--r-- 1 root root 99 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Localnet.service -rw-r--r-- 1 root root 95 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Manual.service -rw-r--r-- 1 root root 101 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Nominatim.service -rw-r--r-- 1 root root 95 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Plazes.service -rw-r--r-- 1 root root 91 Feb 22 04:48 org.freedesktop.Geoclue.Providers.Test.service -rw-r--r-- 1 root root 93 Feb 22 02:56 org.freedesktop.Geoclue.Providers.Yahoo.service

  • Directly connect to Internet without proxy
  • Export DISPLAY variable if run test in text-mode console.

Tools

N/A

QA Contact

Referrences

GeoClue: http://www.freedesktop.org/wiki/Software/GeoClue MCTS QA-tools: http://gitorious.org/qa-tools/mcts

Personal tools