diff options
author | Natalia Shubina <natalia.shubina@nokia.com> | 2012-05-02 14:21:30 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-02 06:29:00 +0200 |
commit | 1da085bbe46bd15e283bb7ab0876a355c45bbbbd (patch) | |
tree | aced030038e5d9159fc23a9341122d6d46e5dbc1 /tests | |
parent | 894f0e1143987f9280d5167089a03fdaa0c3e465 (diff) | |
download | qtlocation-1da085bbe46bd15e283bb7ab0876a355c45bbbbd.tar.gz |
removing urls from routing tests
Task-number: QTBUG-24715
Change-Id: Id09ff1766dcf7d40ea058431d2c4131bb7e5c31d
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/system/routing/sys_routing.qtt | 241 |
1 files changed, 131 insertions, 110 deletions
diff --git a/tests/system/routing/sys_routing.qtt b/tests/system/routing/sys_routing.qtt index 5bd63be6..c5451a2d 100644 --- a/tests/system/routing/sys_routing.qtt +++ b/tests/system/routing/sys_routing.qtt @@ -43,14 +43,48 @@ testcase = { + qml_no_route_data: { + distant_points:["-27.575", "153.088", "56", "44"] + }, + + qml_no_route: function(lat1, long1, lat2, long2) + { + // Test meta data + testTitle = "QML: Maps and Navigation - no available route"; + testBinary = "qml_location_mapviewer"; + testSource = "$QTDIR/qtlocation/examples/declarative/mapviewer" + testGoal = "Verify that route can not be calculated."; + testPreconditions = "Internet connection is required for this test case"; + testGroups = "BAT, 5.0"; + testRequirements = "MTMW-235: QML Routing"; + + // Test steps + prompt(twiki("---+++ " + testTitle + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + *Requirements:* " + testRequirements + "<br> + + | *Step* | *Verification* | + | Launch [" + testBinary + "] | App launches normally | + | Select [Tools] button | | + | Select [Route] menu item | | + | Select [Clear] button | | + | Fill in [" + lat1 + "] in From Latitude field | | + | Fill in [" + long1 + "] in From Longitude field | | + | Fill in [" + lat2 + "] in To Latitude field | | + | Fill in [" + long2 + "] in To Longitude field | | + | Select [Go!] button | Verify that route cannot be calculated |" + )); + }, + qml_route_for_two_points_data: { - close_points:["-27.575", "153.088", "-27.465", "153.023", "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.575,153.088&waypoint1=-27.465,153.023&mode0=fastestNow;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2011-12-28T21:51:25Z&instructionformat=text&language=en_AU"], - medium_distant_points:["-27.4709", "153.0235", "-33.8689", "151.2071", "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.4709,153.0235&waypoint1=-33.8689,151.2071&mode0=fastestNow;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2011-12-28T21:52:33Z&instructionformat=text&language=en_AU"], - distant_points:["-27.4709", "153.0235", "56", "44", "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.4709,153.0235&waypoint1=56,44&mode0=fastestNow;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2011-12-28T21:54:35Z&instructionformat=text&language=en_AU"], - loop_test_points:["51.5", "-0.11", "51.2207", "0.1", "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=51.5,-0.11&waypoint1=51.2207,0.1&mode0=fastestNow;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2012-02-19T23:11:52Z&instructionformat=text&language=en_AU"] //test for QTBUG-20869 + close_points:["-27.575", "153.088", "-27.465", "153.023", "15.9km", "8"], + distant_points:["-27.4709", "153.0235", "-33.8689", "151.2071", "930km", "36"], + loop_test_points:["51.5", "-0.11", "51.2207", "0.1", "50.9km", "19"] //test for QTBUG-20869 }, - qml_route_for_two_points: function(lat1, long1, lat2, long2, url) + qml_route_for_two_points: function(lat1, long1, lat2, long2, distance, steps) { // Test meta data testTitle = "QML: Maps and Navigation - Route for two points"; @@ -69,27 +103,25 @@ testcase = { *Requirements:* " + testRequirements + "<br> | *Step* | *Verification* | - | Open " + url + " url in a desktop browser | | - | Launch " + testBinary + " | App launches normally | - | Select Tools button | | - | Select Route menu item | | - | Select Clear button | | - | Fill in " + lat1 + " in From Latitude field | | - | Fill in " + long1 + " in From Longitude field | | - | Fill in " + lat2 + " in To Latitude field | | - | Fill in " + long2 + " in To Longitude field | | - | Select Go! button | | - | Wait for the route to be calculated. Expand route info if there were no errors | Verify route information corresponds to the open web page, route has no loops. |" + | Launch [" + testBinary + "] | App launches normally | + | Select [Tools] button | | + | Select [Route] menu item | | + | Select [Clear] button | | + | Fill in [" + lat1 + "] in From Latitude field | | + | Fill in [" + long1 + "] in From Longitude field | | + | Fill in [" + lat2 + "] in To Latitude field | | + | Fill in [" + long2 + "] in To Longitude field | | + | Select [Go!] button | | + | Wait for the route to be calculated. | Verify that distance is [" + distance + "], there are [" + steps + "] steps. All steps are not empty. |" )); }, - qml_route_for_two_addresses_data: { - points:["Brandle st","Eight Mile Plains", "Australia", "Heal st", "New Farm", "Australia", "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.58157,153.09726&waypoint1=-27.45983,153.04543&mode0=fastestNow;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2012-02-19T23:23:44Z&instructionformat=text&language=en_AU"], + points:["Brandle st","Eight Mile Plains", "Australia", "Heal st", "New Farm", "Australia", "18.5km", "12"], }, - qml_route_for_two_addresses: function(street1, city1, country1, street2, city2, country2, url) { + qml_route_for_two_addresses: function(street1, city1, country1, street2, city2, country2, distance, steps) { // Test meta data testTitle = "QML: Maps and Navigation - Route for two addresses"; testBinary = "qml_location_mapviewer"; @@ -107,28 +139,27 @@ testcase = { *Requirements:* " + testRequirements + "<br> | *Step* | *Verification* | - | Open " + url + " url in a desktop browser | | - | Launch " + testBinary + " | App launches normally | - | Select Tools button | | - | Select Route menu item | | + | Launch [" + testBinary + "] | App launches normally | + | Select [Tools] button | | + | Select [Route] menu item | | | Select second option group to enter start and end points as address | | - | Select Clear button | | - | Fill in " + street1 + " in From Street field | | - | Fill in " + city1 + " in From City field | | - | Fill in " + country1 + " in From Country field | | - | Fill in " + city2 + " in To City field | | - | Fill in " + country2 + " in To Country field | | - | Fill in " + street2 + " in From Street field | | - | Select Go! button | | - | Wait for the route to be calculated. Expand route info if there were no errors | Verify route information corresponds to the open web page |" + | Select [Clear] button | | + | Fill in [" + street1 + "] in From Street field | | + | Fill in [" + city1 + "] in From City field | | + | Fill in [" + country1 + "] in From Country field | | + | Fill in [" + city2 + "] in To City field | | + | Fill in [" + country2 + "] in To Country field | | + | Fill in [" + street2 + "] in From Street field | | + | Select [Go!] button | | + | Wait for the route to be calculated. | Verify that distance is [" + distance + "], there are [" + steps + "] steps. All steps are not empty. |" )); }, qml_route_for_three_points_data:{ - points:["-27.575", "153.088", "-27.465", "153.023", "-27.3614", "153.0043", "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.575,153.088&waypoint1=-27.465,153.023&waypoint2=-27.3614,153.0043&mode0=shortest;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2012-02-19T23:40:18Z&instructionformat=text&language=en_AU"] + points:["-27.575", "153.088", "-27.465", "153.023", "-27.3614", "153.0043", "29.4km", "19"] }, - qml_route_for_three_points: function(lat1, long1, lat2, long2, lat3, long3, url) + qml_route_for_three_points: function(lat1, long1, lat2, long2, lat3, long3, distance, steps) { // Test meta data testTitle = "QML: Maps and Navigation - Route for several waypoints"; @@ -147,41 +178,38 @@ testcase = { *Requirements:* " + testRequirements + "<br> | *Step* | *Verification* | - | Open " + url + " url in a desktop browser | | - | Launch " + testBinary + " | App launches normally | + | Launch [" + testBinary + "] | App launches normally | | Long press on the map | | - | Select 'Add Marker' menu item | | + | Select [Add Marker] menu item | | | Long Press on the marker | | - | Select 'Move to' menu item | | - | Fill in " + lat1 + " in Latitude field | | - | Fill in " + long1 + " in Longitude | | - | Select Go! button | | + | Select [Move to] menu item | | + | Fill in [" + lat1 + "] in Latitude field | | + | Fill in [" + long1 + "] in Longitude | | + | Select [Go!] button | | | Create another Marker via Long Press | | | Long Press on the second marker | | - | Select 'Move to' menu item | | - | Fill in " + lat2 + " in Latitude field | | - | Fill in " + long2 + " in Longitude | | - | Select Go! button | | + | Select [Move to] menu item | | + | Fill in [" + lat2 + "] in Latitude field | | + | Fill in [" + long2 + "] in Longitude | | + | Select [Go!] button | | | Create third Marker | | | Long Press on the third marker | | - | Select 'Move to' menu item | | - | Fill in " + lat3 + " in Latitude field | | - | Fill in " + long3 + " in Longitude | | - | Press Go! button | | + | Select [Move to] menu item | | + | Fill in [" + lat3 + "] in Latitude field | | + | Fill in [" + long3 + "] in Longitude | | + | Press [Go!] button | | | Long press on the map | | - | Select 'Route to next points' | | - | Wait for the route to be calculated. Expand route info if there were no errors | Verify route information corresponds to the open web page |" + | Select [Route to next points] | | + | Wait for the route to be calculated. | Verify that distance is [" + distance + "], there are [" + steps + "] steps. All steps are not empty. |" )); }, qml_travel_mode_data: { - car:["-27.5789", "153.0919", "-27.5792", "153.096", "Vehicle", - "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.5789,153.0919&waypoint1=-27.5792,153.096&mode0=fastestNow;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2011-12-28T22:07:16Z&instructionformat=text&language=en_AU"], - pedestrian:["-27.5789", "153.0919", "-27.5792", "153.096", "Pedestrian", - "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.5789,153.0919&waypoint1=-27.5792,153.096&mode0=fastestNow;pedestrian&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2011-12-28T22:07:51Z&instructionformat=text&language=en_AU"] + car:["-27.5789", "153.0919", "-27.5792", "153.096", "Vehicle", "2.2km", "7"], + pedestrian:["-27.5789", "153.0919", "-27.5792", "153.096", "Pedestrian", "1.7km", "16"] }, - qml_travel_mode: function(lat1, long1, lat2, long2, mode, url) + qml_travel_mode: function(lat1, long1, lat2, long2, mode, distance, steps) { // Test meta data testTitle = "QML: Maps and Navigation - Travel mode (Car and Pedestrian)"; @@ -200,30 +228,27 @@ testcase = { *Requirements:* " + testRequirements + "<br> | *Step* | *Verification* | - | Open " + url + " url in a desktop browser | | - | Launch " + testBinary + " | App launches normally | - | Select Tools button | | - | Select Route menu item | | + | Launch [" + testBinary + "] | App launches normally | + | Select [Tools] button | | + | Select [Route] menu item | | | Selec first option group | | - | Select Clear button | | - | Fill in " + lat1 + " in From Latitude field | | - | Fill in " + long1 + " in From Longitude field | | - | Fill in " + lat2 + " in To Latitude field | | - | Fill in " + long2 + " in To Longitude field | | - | Select " + mode + " option button | | - | Select Go! button | | - | Wait for the route to be calculated. Expand route info if there were no errors | Verify route information corresponds to the open web page |" + | Select [Clear] button | | + | Fill in [" + lat1 + "] in From Latitude field | | + | Fill in [" + long1 + "] in From Longitude field | | + | Fill in [" + lat2 + "] in To Latitude field | | + | Fill in [" + long2 + "] in To Longitude field | | + | Select [" + mode + "] option button | | + | Select [Go!] button | | + | Wait for the route to be calculated. | Verify that distance is [" + distance + "], there are [" + steps + "] steps. All steps are not empty. |" )); }, qml_route_feature_type_data: { - tolls:["-27.5299", "153.0713", "-27.4395", "153.0504", "Avoid toll roads", - "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.5299,153.0713&waypoint1=-27.4395,153.0504&mode0=fastestNow;car;tollroad:-1&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2011-12-28T22:16:14Z&instructionformat=text&language=en_AU"], - highways:["-27.5299", "153.0713", "-27.4395", "153.0504", "Avoid highways", - "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.5299,153.0713&waypoint1=-27.4395,153.0504&mode0=fastestNow;car;motorway:-1&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2011-12-28T22:16:37Z&instructionformat=text&language=en_AU"] + tolls:["-27.5299", "153.0713", "-27.4395", "153.0504", "Avoid toll roads", "16.8km", "11"], + highways:["-27.5299", "153.0713", "-27.4395", "153.0504", "Avoid highways", "12.6km", "14"] }, - qml_route_feature_type: function(lat1, long1, lat2, long2, feature, url) + qml_route_feature_type: function(lat1, long1, lat2, long2, feature, distance, steps) { // Test meta data testTitle = "QML: Maps and Navigation - Route features (Avoid Highways and Avoid Tool Road)"; @@ -242,30 +267,27 @@ testcase = { *Requirements:* " + testRequirements + "<br> | *Step* | *Verification* | - | Open " + url + " url in a desktop browser | | - | Launch " + testBinary + " | App launches normally | - | Select Tools button | | - | Select Route menu item | | + | Launch [" + testBinary + "] | App launches normally | + | Select [Tools] button | | + | Select [Route] menu item | | | Selec first option group | | - | Select Clear button | | - | Fill in " + lat1 + " in From Latitude field | | - | Fill in " + long1 + " in From Longitude field | | - | Fill in " + lat2 + " in To Latitude field | | - | Fill in " + long2 + " in To Longitude field | | - | Select '" +feature + "' checkbox | | - | Select Go! button | | - | Wait for the route to be calculated. Expand route info if there were no errors | Verify route information corresponds to the open web page |" + | Select [Clear] button | | + | Fill in [" + lat1 + "] in From Latitude field | | + | Fill in [" + long1 + "] in From Longitude field | | + | Fill in [" + lat2 + "] in To Latitude field | | + | Fill in [" + long2 + "] in To Longitude field | | + | Select [" +feature + "] checkbox | | + | Select [Go!] button | | + | Wait for the route to be calculated. | Verify that distance is [" + distance + "], there are [" + steps + "] steps. All steps are not empty. |" )); }, qml_route_optimization_data: { - fastest:["-27.5374", "153.084", "-27.4391", "153.0488", "Fastest", - "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.5374,153.084&waypoint1=-27.4391,153.0488&mode0=fastestNow;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2012-02-20T00:28:38Z&instructionformat=text&language=en_AU"], - shortest:["-27.5374", "153.084", "-27.4391", "153.0488", "Shortest", - "http://prd.lbsp.navteq.com/routing/6.2/calculateroute.xml?referer=qtlocationapi&token=152022572f0e44e07489c35cd46fa246&waypoint0=-27.5374,153.084&waypoint1=-27.4391,153.0488&mode0=shortest;car&alternatives=0&linkattributes=sh,le&maneuverattributes=po,tt,le,di,li&routeattributes=sm,sh,bb,lg&legattributes=links,maneuvers&departure=2012-02-20T00:28:45Z&instructionformat=text&language=en_AU"] + fastest:["-27.5374", "153.084", "-27.4391", "153.0488", "Fastest", "16.4km", "10"], + shortest:["-27.5374", "153.084", "-27.4391", "153.0488", "Shortest", "14.4km", "15"] }, - qml_route_optimization: function(lat1, long1, lat2, long2, optimization, url) + qml_route_optimization: function(lat1, long1, lat2, long2, optimization, distance, steps) { // Test meta data testTitle = "QML: Maps and Navigation - Route optimization (Shortest and Fastest)"; @@ -284,19 +306,18 @@ testcase = { *Requirements:* " + testRequirements + "<br> | *Step* | *Verification* | - | Open " + url + " url in a desktop browser | | - | Launch " + testBinary + " | App launches normally | - | Select Tools button | | - | Select Route menu item | | + | Launch [" + testBinary + "] | App launches normally | + | Select [Tools] button | | + | Select [Route] menu item | | | Selec first option group | | - | Select Clear button | | - | Fill in " + lat1 + " in From Latitude field | | - | Fill in " + long1 + " in From Longitude field | | - | Fill in " + lat2 + " in To Latitude field | | - | Fill in " + long2 + " in To Longitude field | | - | Select '" + optimization + "' option button | | - | Select Go! button | | - | Wait for the route to be calculated. Expand route info if there were no errors | Verify route information corresponds to the open web page |" + | Select [Clear] button | | + | Fill in [" + lat1 + "] in From Latitude field | | + | Fill in [" + long1 + "] in From Longitude field | | + | Fill in [" + lat2 + "] in To Latitude field | | + | Fill in [" + long2 + "] in To Longitude field | | + | Select [" + optimization + "] option button | | + | Select [Go!] button | | + | Wait for the route to be calculated. | Verify that distance is [" + distance + "], there are [" + steps + "] steps. All steps are not empty. |" )); }, @@ -324,15 +345,15 @@ testcase = { *Requirements:* " + testRequirements + "<br> | *Step* | *Verification* | - | Launch " + testBinary + " | App launches normally | + | Launch [" + testBinary + "] | App launches normally | | Select Language button | | - | Select Other | | - | Fill in " + locale + " in Language field | | - | Select Go! button | | - | Select Tools | | - | Select Route | | - | Select Go! | | - | Expand information about the route | Verify that instructions are in " + language + " and uses " + system_type + " system |" + | Select [Other] | | + | Fill in [" + locale + "] in Language field | | + | Select [Go!] button | | + | Select [Tools] button | | + | Select [Route] menu item | | + | Select [Go!] | | + | Expand information about the route | Verify that instructions are in [" + language + "] and uses [" + system_type + "] system |" )); } |