diff options
author | Ed Baak <ed.baak@nokia.com> | 2011-08-04 13:44:50 +1000 |
---|---|---|
committer | Ed Baak <ed.baak@nokia.com> | 2011-08-04 13:44:50 +1000 |
commit | 798f1a94cd2b96eb5f68936e83f12b623dd704f8 (patch) | |
tree | 825c2f262a9eef798ab4e6e9c7c9c225d73c557c | |
parent | b3b1d024f61cd265231f35d64856c7ce58e0257d (diff) |
Updated location tests
According to system test style guide
-rw-r--r-- | tests/systemtests/sys_location/sys_location.qtt | 748 |
1 files changed, 513 insertions, 235 deletions
diff --git a/tests/systemtests/sys_location/sys_location.qtt b/tests/systemtests/sys_location/sys_location.qtt index 5c622e45d0..f698926dc0 100644 --- a/tests/systemtests/sys_location/sys_location.qtt +++ b/tests/systemtests/sys_location/sys_location.qtt @@ -45,62 +45,107 @@ testcase = { current_position: function() { - prompt(twiki('---+++ Position is detected - | *Step* | *Verification* | - | Run the weatherinfo_with_location example | Verify that weather information for your local area is displayed |' + // Test meta data + testApplication = "Location - Current Position"; + testBinary = "weatherinfo_with_location"; + testGoal = "Verify that current position is detected and displayed."; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | Verify that weather information for your local area is displayed |" )); }, location_is_updated: function() { - prompt(twiki('---+++ Position changes are detected - Note that GPS and internet connection is required for this test case. - | *Step* | *Verification* | - | Run the lightmaps_with_location app (sources are in demos\lightmaps). | Verify that map is displayed and centered with the current position | - | Move to a different location | Verify that map is updated and centered with new location |' + // Test meta data + testApplication = "Location - Location Updates"; + testBinary = "lightmaps_with_location (sources are in demos\lightmaps)"; + testGoal = "Verify that location data is received and map is updated and centered after changing location."; + testPreconditions = "GPS and internet connection is required for this test case"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally. Verify that map is displayed and centered with the current position. | + | Move to a different location | Verify that map is updated and centered with new location |" )); }, third_party_position_source: function() { - //test case for QTMOBILITY-873: Allow 3rd party position sources - prompt(twiki('---+++ Position is detected via cusom plugin - Note that GPS and internet connection is required for this test case - | *Step* | *Verification* | - | Run the testQtLocation application (this is part of BlueWeel project, sources are in git@scm.dev.nokia.troll.no:qtmobility/qtmobility-tests.git | | - | Select the Custom Service | Verify that no "Unable to register location service" and "Not valid interface." messages appear | - | Press the Update Map button | Verify that map was loaded and correct current position is displayed |' + // Test meta data + testApplication = "Location - Position Detection via Custom Plugin"; + testBinary = "testQtLocation"; // this is part of BlueWeel project, sources are in git@scm.dev.nokia.troll.no:qtmobility/qtmobility-tests.git + testGoal = "Verify that positions can be detected using third party plugins"; + testPreconditions = "GPS and internet connection is required for this test case"; + testGroups = "BAT"; + testRequirements = "QTMOBILITY-873: Allow 3rd party position sources"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select the Custom Service | Verify that no 'Unable to register location service' and 'Not valid interface.' messages appear | + | Press the Update Map button | Verify that map was loaded and correct current position is displayed |" )); }, shift_to_the_given_offset: function() { - //test case for QTMOBILITY-658: Add a method to QGeoCoordinate which takes an offset and returns another QGeoCoordinate - prompt(twiki('---+++ New coordinats are calculated - Note that significand precision should be taken into account during comparing real numbers, that is why we consider 5.48417e-16 value equal to zero - | *Step* | *Verification* | - | Run the testQtLocation application | | - | Select the MapNavigation | | - | Fill in "0" in to Start Latitude field | | - | Fill in "100" in to Start Longitude field | | - | Select Distance/Bearing from *Pre-defined* dropdown list | | - | Fill "1000000, 90" in to the given field | | - | Press the Ok button | Verify that Destination fields are updated with 5.48417e-16 latitude and 108.9932 longitude | - | Fill in "60" in to Start Latitude field | | - | Fill in "100" in to Start Longitude field | | - | Select Distance/Bearing from *Pre-defined* dropdown list | | - | Fill "1000000, 180" in to the given field | | - | Press the Ok button | Verify that Destination fields are updated with 51.0068 latitude and 100 longitude | - | Fill in "60" in to Start Latitude field | | - | Fill in "100" in to Start Longitude field | | - | Select Distance/Bearing from *Pre-defined* dropdown list | | - | Fill "1000000, 20" in to the given field | | - | Press the Ok button | Verify that Destination fields are updated with 68.2523 latitude and 108.296 longitude |' + // Test meta data + testApplication = "Location - Shift To Given Offset"; + testBinary = "testQtLocation"; + testGoal = "Verify that coordinates can be calculated as an offset to another position."; + testPreconditions = "None"; + testGroups = "BAT"; + testRequirements = "QTMOBILITY-658: Add a method to QGeoCoordinate which takes an offset and returns another QGeoCoordinate"; + + // Note that significand precision should be taken into account during comparing real numbers, that is why we consider 5.48417e-16 value equal to zero + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select the MapNavigation | | + | Fill in '0' in to Start Latitude field | | + | Fill in '100' in to Start Longitude field | | + | Select Distance/Bearing from *Pre-defined* dropdown list | | + | Fill '1000000, 90' in to the given field | | + | Press the Ok button | Verify that Destination fields are updated with 5.48417e-16 latitude and 108.9932 longitude | + | Fill in '60' in to Start Latitude field | | + | Fill in '100' in to Start Longitude field | | + | Select Distance/Bearing from *Pre-defined* dropdown list | | + | Fill '1000000, 180' in to the given field | | + | Press the Ok button | Verify that Destination fields are updated with 51.0068 latitude and 100 longitude | + | Fill in '60' in to Start Latitude field | | + | Fill in '100' in to Start Longitude field | | + | Select Distance/Bearing from *Pre-defined* dropdown list | | + | Fill '1000000, 20' in to the given field | | + | Press the Ok button | Verify that Destination fields are updated with 68.2523 latitude and 108.296 longitude |" )); }, - // Landmarks - store_and_load_a_landmark_data: { // Valid landmarks are -90~90 latitude, and -180~180 longitude landmark : ["landmark", "20", "120"] @@ -108,12 +153,21 @@ testcase = { store_and_load_a_landmark: function(name, latitude, longitude) { - startApplication("landmarkbrowser"); + // Test meta data + testApplication = "Landmark - Store and Load Landmarks"; + testBinary = "landmarkbrowser"; + testGoal = "Verify that a landmark can be created (and stored)"; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + startApplication(testBinary); select("Add Landmark"); enter("Latitude", latitude); enter("Longitude", longitude); enter("Name", name); select("Ok"); + prompt("Verify that the landmark record is created"); }, @@ -125,7 +179,15 @@ testcase = { negative_store_and_load_a_landmark: function(name, latitude, longitude) { - startApplication("landmarkbrowser"); + // Test meta data + testApplication = "Landmark - Handling Invalid Landmark"; + testBinary = "landmarkbrowser"; + testGoal = "Verify that invalid landmarks are detected and handled gracefully."; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + startApplication(testApplication); select("Add Landmark"); enter("Latitude", latitude); enter("Longitude", longitude); @@ -138,155 +200,249 @@ testcase = { sorted_search_based_on_category: function() { - prompt(twiki('---+++ Landmarks for the specified category are displayed - | *Step* | *Verification* | - | Create Accomodation category | | - | Create Businesses category | | - | Run the landmarkbrowser application | | - | Create A1 landmark in Accomodation category | | - | Create A2 landmark in Accomodation category | | - | Create BB landmark in Businesses category | | - | Press the Set Filter button | | - | Select the Category checkbox | | - | Select Accomodation category | | - | Press Ok button | Verify that only A1 and A2 landmark is in the list and they are present in alphabetical order | - | Press the Set Filter button | | - | Select Education category | | - | Press Ok button | Verify that no landmarks are in the list |' + // Test meta data + testApplication = "Landmark - Search on Category"; + testBinary = "landmarkbrowser"; + testGoal = "Verify that landmarks can be sorted and filtered."; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Create Accomodation category | | + | Create Businesses category | | + | Run the landmarkbrowser application | | + | Create A1 landmark in Accomodation category | | + | Create A2 landmark in Accomodation category | | + | Create BB landmark in Businesses category | | + | Press the Set Filter button | | + | Select the Category checkbox | | + | Select Accomodation category | | + | Press Ok button | Verify that only A1 and A2 landmark is in the list and they are present in alphabetical order | + | Press the Set Filter button | | + | Select Education category | | + | Press Ok button | Verify that no landmarks are in the list |" )); }, sort_landmarks_in_alphabetical_and_nearest: function() { - prompt(twiki('---+++ Nearest landmarks are displayed - | *Step* | *Verification* | - | Run the landmarkbrowser application | | - | Create landmark A(12;0) | | - | Create landmark B(10;0) | | - | Create landmark C(8;0) | | - | Create landmark D(8;0) | | - | Press Set Filter button | | - | Select Proximity checkbox | | - | Fill in 0 in to Lat field | | - | Fill in 0 in to Long field | - | Fill in 10000000 in to Radius field| | - | Press Ok button | Verify that C, D, B, A landmarks are in the list (not in alphabetical order) | - | Press Set Filter button | | - | Change radius value to 1000000 | | - | Press Ok button | Verify that only C and D landmarks are in the list | - | Press Set Filter button | | - | Deselect Proximity checkbox | | - | Press Ok button | Verify that landmarks appear in alphabetical order from A to Z |' + // Test meta data + testApplication = "Landmark - Nearest Landmarks"; + testBinary = "landmarkbrowser"; + testGoal = "Verify that landmarks can be displayed in sorted order with nearest first."; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Create landmark A(12;0) | | + | Create landmark B(10;0) | | + | Create landmark C(8;0) | | + | Create landmark D(8;0) | | + | Press Set Filter button | | + | Select Proximity checkbox | | + | Fill in 0 in to Lat field | | + | Fill in 0 in to Long field | + | Fill in 10000000 in to Radius field| | + | Press Ok button | Verify that C, D, B, A landmarks are in the list (not in alphabetical order) | + | Press Set Filter button | | + | Change radius value to 1000000 | | + | Press Ok button | Verify that only C and D landmarks are in the list | + | Press Set Filter button | | + | Deselect Proximity checkbox | | + | Press Ok button | Verify that landmarks appear in alphabetical order from A to Z |" )); }, landmarks_within_range_of_a_position: function() { - prompt(twiki('---+++ Landmarks within range are displayed - | *Step* | *Verification* | - | Run the landmarkbrowser application | | - | Create landmark A(12;0) | | - | Create landmark B(10;0) | | - | Create landmark C(8;0) | | - | Create landmark D(8;0) | | - | Press Set Filter button | | - | Select Box checkbox | | - | Fill in 9 in to Top Left Lat field | | - | Fill in 0 in to Top Left Long field | | - | Fill in 0 i to Bottom Right Lat filed | | - | Fill in 1 in to Bottom Right Long field | | - | Press Ok button | Verify that only C and D landmarks are in the list and landmarks appear in alphabetical order |' + // Test meta data + testApplication = "Landmark - Within Range of Position"; + testBinary = "landmarkbrowser"; + testGoal = "Verify that landmarks within range of a position can be shown"; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Create landmark A(12;0) | | + | Create landmark B(10;0) | | + | Create landmark C(8;0) | | + | Create landmark D(8;0) | | + | Press Set Filter button | | + | Select Box checkbox | | + | Fill in 9 in to Top Left Lat field | | + | Fill in 0 in to Top Left Long field | | + | Fill in 0 i to Bottom Right Lat filed | | + | Fill in 1 in to Bottom Right Long field | | + | Press Ok button | Verify that only C and D landmarks are in the list and landmarks appear in alphabetical order |" )); }, - + create_edit_and_delete_a_landmark: function() { - //Landmark manager provides notifications whenever landmarks are added, updated or deleted - prompt(twiki('---+++ Landmarks are added, edited and deleted - | *Step* | *Verification* | - | Run the landmarkbrowser application | | - | Press Add Landmark button | | - | Fill in AAA in to Name field | | - | Fill in 30 into Latitude field | | - | Fill in 30 into Longitude field | | - | Press Ok button | Verify that message "Landmark(s) have been added" appears on the screen | - | Press Ok button | Verify that AAA landmark is in the landmarks list | - | Select AAA landmark | | - | Press Edit Landmark button | | - | Change Latitude value to 40 | | - | Change Longitude value to 40 | | - | Change Name value to BBB | | - | Press Ok button | Verify that message "Landmark(s) have been edited" appears on the screen | - | Press Ok button | Verify that BBB landmark has new latitude and longitude | - | Select BBB landmark | | - | Press Delete Landmarks button | Verify that message "Landmark(s) have been removed" appears on the screen | - | Press Ok button | Verify that only BBB landmark has been deleted | - | Create 2 new landmarks A1 and A2 | | - | Select both A1 and A2 landmarks | - | Press Delete Landmarks button | Verify that message "Landmark(s) have been removed" appears on the screen | - | Press Ok button | Verify that only A1 and A2 landmarks have been deleted |' + // Test meta data + testApplication = "Landmark - Edit and Delete Landmarks"; + testBinary = "landmarkbrowser"; + testGoal = "Verify that notifications can be send whenever landmarks are added, updated or deleted."; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Press Add Landmark button | | + | Fill in AAA in to Name field | | + | Fill in 30 into Latitude field | | + | Fill in 30 into Longitude field | | + | Press Ok button | Verify that message 'Landmark(s) have been added' appears on the screen | + | Press Ok button | Verify that AAA landmark is in the landmarks list | + | Select AAA landmark | | + | Press Edit Landmark button | | + | Change Latitude value to 40 | | + | Change Longitude value to 40 | | + | Change Name value to BBB | | + | Press Ok button | Verify that message 'Landmark(s) have been edited' appears on the screen | + | Press Ok button | Verify that BBB landmark has new latitude and longitude | + | Select BBB landmark | | + | Press Delete Landmarks button | Verify that message 'Landmark(s) have been removed' appears on the screen | + | Press Ok button | Verify that only BBB landmark has been deleted | + | Create 2 new landmarks A1 and A2 | | + | Select both A1 and A2 landmarks | + | Press Delete Landmarks button | Verify that message 'Landmark(s) have been removed' appears on the screen | + | Press Ok button | Verify that only A1 and A2 landmarks have been deleted |" )); }, enumerate_categories: function() { - prompt(twiki('---+++ Categories are displayed - | *Step* | *Verification* | - | Run the landmarkbrowser application | | - | Select Category tab | | - | Create several categories | | - | Swith to the Landmark tab and back to the Category tab | Verify that the created categories are present in the list |' + // Test meta data + testApplication = "Landmark - Enumerate"; + testBinary = "landmarkbrowser"; + testGoal = "Verify that created categories can be showed in a list."; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select Category tab | | + | Create several categories | | + | Swith to the Landmark tab and back to the Category tab | Verify that the created categories are present in the list |" )); }, add_and_delete_a_category: function() { - //Landmark manager provides notifications whenever categories are added, updated or deleted - prompt(twiki('---+++ Categories are added, edited and deleted - | *Step* | *Verification* | - | Run the landmarkbrowser application | | - | Select Category tab | | - | Press Add Category button | | - | Fill in AAA in to Name field | | - | Press Ok button | Verify that message "Category(ies) have been added" | - | Press Ok button | Verify that AAA is added in list of categories in alphabetical order | - | Press Add Category button | | - | Fill in AAA in to Name field | | - | Press Ok button | Verify that message "Add Category Failed: category already Exists" appears on the screen | - | Press Ok button | | - | Press Add Category button | | - | Press Ok button | Verify that message "Category name must not be empty" appears on the screen | - | Press Ok button | | - | Select AAA category | | - | Press Delete Categories button | Verify that message "Categoty(ies) have been removed" appears on the screen | - | Press Ok button | Verify that list of categories does not contain AAA category only| - | Add A1 and A2 categories | | - | Select A1 and A2 categories | | - | Press Delete Categories button | Verify that message "Categoty(ies) have been removed" appears on the screen | - | Press Ok button | Verify that list of categories does not contain A1 and A2 categories only | - | Select some of predefined categories | | - | Press Delete Category button | Verify tha message "Cannot delete a global category" appears on the screen | - | Press Ok button | Verify that no categories have been deleted |' + //Landmark manager provides notifications whenever categories are added, updated or deleted + // Test meta data + testApplication = "Landmark - Add and Delete Categories "; + testBinary = "landmarkbrowser"; + testGoal = "Verify that the system sends notifications when categories are added or deleted."; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select Category tab | | + | Press Add Category button | | + | Fill in AAA in to Name field | | + | Press Ok button | Verify that message 'Category(ies) have been added' | + | Press Ok button | Verify that AAA is added in list of categories in alphabetical order | + | Press Add Category button | | + | Fill in AAA in to Name field | | + | Press Ok button | Verify that message 'Add Category Failed: category already Exists' appears on the screen | + | Press Ok button | | + | Press Add Category button | | + | Press Ok button | Verify that message 'Category name must not be empty' appears on the screen | + | Press Ok button | | + | Select AAA category | | + | Press Delete Categories button | Verify that message 'Categoty(ies) have been removed' appears on the screen | + | Press Ok button | Verify that list of categories does not contain AAA category only| + | Add A1 and A2 categories | | + | Select A1 and A2 categories | | + | Press Delete Categories button | Verify that message 'Categoty(ies) have been removed' appears on the screen | + | Press Ok button | Verify that list of categories does not contain A1 and A2 categories only | + | Select some of predefined categories | | + | Press Delete Category button | Verify tha message 'Cannot delete a global category' appears on the screen | + | Press Ok button | Verify that no categories have been deleted |" )); }, - // Maps and Navigation select_service_provider: function() { - startApplication("geoservicedemo"); + // Test meta data + testApplication = "Maps and Navigation - Select Service Provider"; + testBinary = "geoservicedemo"; + testGoal = "Verify that service provider can be selected"; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + startApplication(testBinary); select("Service Providers"); select("nokia"); select("Set Service Provider"); - prompt("Verify selected service provider is indicated as current service provider"); + + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | | Verify selected service provider is indicated as current service provider |")); }, request_route_from_one_GPS_location_to_another_data: { - route:["-27.575", "153.088", "-27.465", "153.023", "15901", "15987"] + route1:["-27.575", "153.088", "-27.465", "153.023", "15901", "15987"] }, request_route_from_one_GPS_location_to_another: function(lat1, long1, lat2, long2, distance1, distance2) { - startApplication("geoservicedemo"); + // Test meta data + testApplication = "Maps and Navigation - Route Calculation"; + testBinary = "geoservicedemo"; + testGoal = "Verify that routes can be calculated from one GPS location to another."; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps + startApplication(testBinary); select("Service Providers"); select("nokia"); select("Set Service Provider"); @@ -297,8 +453,15 @@ testcase = { enter(lat2); enter(long2); select("Ok"); - prompt(twiki("Wait until the route is calculated (should be less than 10 seconds)")); - prompt(twiki("Verify the there are 8 segments, first and last instructions indicate to 'Head toward Logan rd' and 'Turn right onto Bartley St'")); + + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Wait until the route is calculated (should be less than 10 seconds) | Verify the there are 8 segments, first and last instructions indicate to 'Head toward Logan rd' and 'Turn right onto Bartley St'")); + select("routes/route"); compare(getText("distance"), distance1); select("Request Route"); @@ -307,138 +470,253 @@ testcase = { enter(lat1); enter(long1); select("Ok"); - prompt(twiki('Wait until the route is calculated (should be less than 10 seconds)')); - prompt(twiki('Verify the instructions for segments 1 and 2 indicate to Head towards Sedgebrook st and Turn right onto Sedgebrook st')); + + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Wait until the route is calculated (should be less than 10 seconds) | Verify the instructions for segments 1 and 2 indicate to Head towards Sedgebrook st and Turn right onto Sedgebrook st")); + compare(getText("distance"), distance2); }, - + geocoding: function() { - prompt(twiki('---+++ Geocoding - Note that testing via proxy is not recommended, incorrect settings can be a cause of the " Socket operation timed out" error - | *Step* | *Verification* | - | Run the GeoServiceDemo application (sources are /tests/location-testing-tools/geoservicedemo) | | - | Select Search By Adress tab | | - | Select One-box Search checkbox | | - | Fill in "Brandl st, Eight Mile Plains, Australia" in search field | | - | Select Geocoding search | | - | Press Ok button | | - | Wait until data is recieved | | - | Select places | Verify that count = 1 | - | Select place | Verify that latitude is -27.5798, longitude is 153.1 | - | Select address | Verify that Country is AUSTRALIA, country code is AUS, city is Eight Mile Plains, street name is Branl St, post code is 4113 |' + // Test meta data + testApplication = "Maps and Navigation - Geocoding"; + testBinary = "geoservicedemo"; // (sources are /tests/location-testing-tools/geoservicedemo) + testGoal = "Verify that geocoding searches are supported."; + testPreconditions = "Note that testing via proxy is not recommended, incorrect settings can be a cause of the 'Socket operation timed out' error"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select Search By Adress tab | | + | Select One-box Search checkbox | | + | Fill in 'Brandl st, Eight Mile Plains, Australia' in search field | | + | Select Geocoding search | | + | Press Ok button | | + | Wait until data is recieved | | + | Select places | Verify that count = 1 | + | Select place | Verify that latitude is -27.5798, longitude is 153.1 | + | Select address | Verify that Country is AUSTRALIA, country code is AUS, city is Eight Mile Plains, street name is Branl St, post code is 4113 |" )); }, - + reverse_geocoding: function() { - prompt(twiki('---+++ Reverse geocoding - Note that testing via proxy is not recommended, incorrect settings can be a cause of the " Socket operation timed out" error - | *Step* | *Verification* | - | Run the GeoServiceDemo application | | - | Select Reverse Geocoding tab | | - | Press Search By Coordinates button | | - | Fill in -27.5798 in Latitude field | | - | Fill in 153.1 in Longitude field | | - | Press Ok button | | - | Wait until data is recieved | | - | Select places/place/adress | Verify that Country is AUSTRALIA, country code is AUS, city is Eight Mile Plains, street name is 54 Branl St, post code is 4113 |' + // Test meta data + testApplication = "Maps and Navigation - Reverse Geocoding"; + testBinary = "geoservicedemo"; + testGoal = "Verify that a geocode can be calculated from a given position."; + testPreconditions = "Note that testing via proxy is not recommended, incorrect settings can be a cause of the 'Socket operation timed out' error"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select Reverse Geocoding tab | | + | Press Search By Coordinates button | | + | Fill in -27.5798 in Latitude field | | + | Fill in 153.1 in Longitude field | | + | Press Ok button | | + | Wait until data is recieved | | + | Select places/place/adress | Verify that Country is AUSTRALIA, country code is AUS, city is Eight Mile Plains, street name is 54 Brandl St, post code is 4113 |" )); }, displaying_a_map: function() { - prompt(twiki('---+++ Different views are displayed - Note that internet connection is required for this test case. - Note that Nokia map engine supports only Street, Satellite and Terrain map types - | *Step* | *Verification* | - | Run the MapView application (sources are /tests/location-testing-tools/mapviewer) | Map for current location is displayed on the screen | - | Press Option button | | - | Press Street button (if button is enabled) | Map is drawn in Street view | - | Press Option button | | - | Press Satellite button (if button is enabled) | Map is drawn in Satellite view | - | Press Option button | | - | Press Terrain button (if button is enabled) | Map is drawn in Satellite view |' + // Test meta data + testApplication = "Maps and Navigation - Map View Options"; + testBinary = "mapviewer"; // (sources are /tests/location-testing-tools/mapviewer) + testGoal = "Verify that maps can be shown in street, satellite and terrain mode."; + testPreconditions = "1. internet connection is required for this test case.<br>1. Nokia map engine supports only Street, Satellite and Terrain map types"; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally and map for current location is displayed on the screen | + | Press Option button | | + | Press Street button (if button is enabled) | Map is drawn in Street view | + | Press Option button | | + | Press Satellite button (if button is enabled) | Map is drawn in Satellite view | + | Press Option button | | + | Press Terrain button (if button is enabled) | Map is drawn in Satellite view |" )); }, zooming_support:function() { - prompt(twiki('---+++ Map is zoomed in and out - Note that internet connection is required for this test case. - | *Step* | *Verification* | - | Run the MapView application | Map is displayed on the screen | - | Scroll mouse wheel down | Map is zoomed out correctly | - | Scroll mouse wheel up | Map is zoomed in correctly| - | Double click on the map | Map is zoomed in correctly, step of zooming is consistent|' + // Test meta data + testApplication = "Maps and Navigation - Zooming"; + testBinary = "mapviewer"; // (sources are /tests/location-testing-tools/mapviewer) + testGoal = "Verify that maps can be zoomed in and out."; + testPreconditions = "internet connection is required for this test case."; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Run the MapView application | Map is displayed on the screen | + | Scroll mouse wheel down | Map is zoomed out correctly | + | Scroll mouse wheel up | Map is zoomed in correctly| + | Double click on the map | Map is zoomed in correctly, step of zooming is consistent|" )); }, capturing_coordinates:function() { - prompt(twiki('---+++ Coordinates are captured - Note that internet connection is required for this test case. - | *Step* | *Verification* | - | Run the MapView application | Map is displayed on the screen | - | Zoom in tha map to see Brisbane | | - | Right mouse click on the square which represents Brisbane | | - | Select Coordinates menu item | | - | Select Capture menu item | Verify that dialog with coordinates appears on the screen. Latitude is about -27.46, longitude is about 153.02 |' + // Test meta data + testApplication = "Maps and Navigation - Coordinate Capturing"; + testBinary = "mapviewer"; // (sources are /tests/location-testing-tools/mapviewer) + testGoal = "Verify that coordinates can be captured when selecting a location on the map."; + testPreconditions = "internet connection is required for this test case."; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally. Map is displayed on the screen | + | Zoom in the map to see Brisbane | | + | Right mouse click on the square which represents Brisbane | | + | Select Coordinates menu item | | + | Select Capture menu item | Verify that dialog with coordinates appears on the screen. Latitude is about -27.46, longitude is about 153.02 |" )); }, pixmap_object_zooming: function() { - //test case for QTMOBILITY-757: Be able to prevent a QGeoMapPixmapObject from being scaled when zooming occurs - //test case for QTMOBILITY-701: Add a QGraphicsItem based map object. //Test application testqtLocation covers just one use case meanwhile we have 8 different situation //depending on what units and transforms are in use (we have 4 types of units (PixelUnit, MeterUnit, RelativeArcSecondUnit, AbsoluteArcSecondUnit) //and 2 types of transforms (BilinearTransform, ExactTransform)). New set of tests has to be created as soon as testqtLocation is improved. - prompt(twiki('---+++ Pixmap object is not scaled during zooming - Note that GPS and internet connection is required for this test case - | *Step* | *Verification* | - | Run the testQtLocation application | | - | Select the MapNavigation | | - | Go to Map tab | Verify that map is loaded for current position | - | Swith to MapObject mode | | - | Tap on the screen to create pixmap object | Verify that blue square appears on the screen in place of touch | - | Switch to Pan/Zoom mode | | - | Increase zoom level | Verify that the blue square is not scaled | - | Decrease zoom level | Verify that the blue square is not scaled |' + + // Test meta data + testApplication = "Maps and Navigation - Pixmap Object Zooming"; + testBinary = "testQtLocation"; + testGoal = "Verify that "; + testPreconditions = "GPS and internet connection is required for this test case"; + testGroups = "BAT"; + testRequirements = "QTMOBILITY-757: Be able to prevent a QGeoMapPixmapObject from being scaled when zooming occurs<br> + QTMOBILITY-701: Add a QGraphicsItem based map object."; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select the MapNavigation | | + | Go to Map tab | Verify that map is loaded for current position | + | Swith to MapObject mode | | + | Tap on the screen to create pixmap object | Verify that blue square appears on the screen in place of touch | + | Switch to Pan/Zoom mode | | + | Increase zoom level | Verify that the blue square is not scaled | + | Decrease zoom level | Verify that the blue square is not scaled |" )); }, request_landmarks_for_given_coordinate_with_reverse_geocoding: function() { + // Test meta data + testApplication = "Maps and Navigation - Landmarks for Coordinate with Reverse Geocoding"; + testBinary = "weatherinfo_with_location"; + testGoal = "Verify that "; + testPreconditions = "None"; + testGroups = "BAT"; + + // Test steps +/* + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally |"); +*/ + skip( "Nothing tested", SkipAll ); }, + //TESTED_COMPONENT=plugins/declarative/location qml_display_map: function() { - //test case for QTMOBILITY-796: QML for Maps & Navigation:mapping - prompt(twiki('---+++ Map is displayed - Note that GPS and internet connection is required for this test case - | *Step* | *Verification* | - | Run the testQtLocation application | | - | Select the MapNavigation.qml | | - | Tap on Mode button | Verify that map is loaded for current position |' + // Test meta data + testApplication = "Location - Map Display"; + testBinary = "testqtlocation"; + testGoal = "Verify that a map can be loaded for a given position."; + testPreconditions = "GPS and internet connection is required for this test case."; + testGroups = "BAT"; + testRequirements = "QTMOBILITY-796: QML for Maps & Navigation:mapping"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select the MapNavigation.qml | | + | Tap on Mode button | Verify that map is loaded for current position |" )); }, qml_zoom_map: function() { - //test case for QTMOBILITY-796: QML for Maps & Navigation:mapping - prompt(twiki('---+++ Zoom in and out the map - Note that GPS and internet connection is required for this test case - | *Step* | *Verification* | - | Run the testQtLocation application | | - | Select the MapNavigation.qml | | - | Tap on the Mode button | Verify that map is loaded | - | Tap on Plus button | Verify that map is zoomed in | - | Tap on Plus button | Verify that zoom level is decreased and map is displayed correctly with new zoom level |' + // Test meta data + testApplication = "Location - Zoom In and Out"; + testBinary = "testQtLocation"; + testGoal = "Verify that "; + testPreconditions = "GPS and internet connection is required for this test case."; + testGroups = "BAT"; + testRequirements = "QTMOBILITY-796: QML for Maps & Navigation:mapping."; + + // Test steps + prompt(twiki("---+++ " + testApplication + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Select the MapNavigation.qml | | + | Tap on the Mode button | Verify that map is loaded | + | Tap on Plus button | Verify that map is zoomed in | + | Tap on Plus button | Verify that zoom level is decreased and map is displayed correctly with new zoom level |" )); } |