javaextensions/location/tsrc/vipertest/bin/unittestinstructions.txt
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 This document describes how to run the unit tests in the ViperTest midlet. The tests are meant to be run on the emulator, but many tests can also be run on a real device.
       
     2 
       
     3 The following steps assume that you already have a working S60 environment including the Java location component.
       
     4 
       
     5 * Step 1: Build the midlet.
       
     6 
       
     7 Use the build.bat script in the ViperTest\bin folder (You may need to edit some variables).
       
     8 
       
     9 The script will also copy the ViperTest-SimPsy.sps simulation data for the simulation PSY to the correct location.
       
    10 
       
    11 
       
    12 * Step 2: Build ViperTestPsy.
       
    13 
       
    14 Go to the ViperTestPsy\group folder and build it with bldmake and abld.
       
    15 
       
    16 
       
    17 * Step 3: Prepare the environment.
       
    18 
       
    19 Run the rmlmdb.bat script to remove any existing landmark databases.
       
    20 
       
    21 Start the emulator. Start the location configuration applet. Enable the ViperTest PSY and Simulation PSY. Disable all other methods.
       
    22 
       
    23 Select the Simulation PSY method and change the configuration to use the ViperTest-SimPsy.sps file.
       
    24 
       
    25 
       
    26 * Step 4: Run the midlet.
       
    27 
       
    28 There are two different unit tests, "LocationProvider tests" and "tests for the other classes".
       
    29 
       
    30 Choose "Run tests" to run the "fast" unit tests (takes about 30 seconds).
       
    31 
       
    32 Choose "Run LP tests" to run the LocationProvider tests (takes about 2 minutes). You will also be asked to disable all the PSYs. This is done in the location configuration applet.