tidy feature file
This commit is contained in:
parent
feaf8711d3
commit
eb122a2b8c
@ -1,5 +1,5 @@
|
||||
@routing @testbot @mode
|
||||
Feature: Testbot - Mode flag
|
||||
Feature: Testbot - Travel mode
|
||||
|
||||
# testbot modes:
|
||||
# 1 normal
|
||||
@ -12,6 +12,140 @@ Feature: Testbot - Mode flag
|
||||
Background:
|
||||
Given the profile "testbot"
|
||||
|
||||
Scenario: Testbot - Modes in each direction, different forward/backward speeds
|
||||
Given the node map
|
||||
| | 0 | 1 | |
|
||||
| a | | | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | river | |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | 0 | ab | 3 |
|
||||
| a | b | ab | 3 |
|
||||
| 0 | 1 | ab | 3 |
|
||||
| 0 | b | ab | 3 |
|
||||
| b | 1 | ab | 4 |
|
||||
| b | a | ab | 4 |
|
||||
| 1 | 0 | ab | 4 |
|
||||
| 1 | a | ab | 4 |
|
||||
|
||||
Scenario: Testbot - Modes in each direction, same forward/backward speeds
|
||||
Given the node map
|
||||
| | 0 | 1 | |
|
||||
| a | | | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | steps |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes | time |
|
||||
| 0 | 1 | ab | 5 | 60s +-1 |
|
||||
| 1 | 0 | ab | 6 | 60s +-1 |
|
||||
|
||||
@oneway
|
||||
Scenario: Testbot - Modes for oneway, different forward/backward speeds
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | river | yes |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | ab | 3 |
|
||||
| b | a | | |
|
||||
|
||||
@oneway
|
||||
Scenario: Testbot - Modes for oneway, same forward/backward speeds
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | steps | yes |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | ab | 5 |
|
||||
| b | a | | |
|
||||
|
||||
@oneway
|
||||
Scenario: Testbot - Modes for reverse oneway, different forward/backward speeds
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | river | -1 |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | | |
|
||||
| b | a | ab | 4 |
|
||||
|
||||
@oneway
|
||||
Scenario: Testbot - Modes for reverse oneway, same forward/backward speeds
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | steps | -1 |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | | |
|
||||
| b | a | ab | 6 |
|
||||
|
||||
@via
|
||||
Scenario: Testbot - Mode should be set at via points
|
||||
Given the node map
|
||||
| a | 1 | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | river |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | modes | turns |
|
||||
| a,1,b | ab,ab | 3,3 | head,via,destination |
|
||||
| b,1,a | ab,ab | 4,4 | head,via,destination |
|
||||
|
||||
Scenario: Testbot - Starting at a tricky node
|
||||
Given the node map
|
||||
| | a | | | |
|
||||
| | | | b | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | river |
|
||||
| bc | primary |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| b | a | ab | 4 |
|
||||
|
||||
Scenario: Testbot - Mode changes on straight way without name change
|
||||
Given the node map
|
||||
| a | 1 | b | 2 | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | name |
|
||||
| ab | primary | Avenue |
|
||||
| bc | river | Avenue |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes | turns |
|
||||
| a | c | Avenue,Avenue | 1,3 | head,straight,destination |
|
||||
| c | a | Avenue,Avenue | 4,1 | head,straight,destination |
|
||||
| 1 | 2 | Avenue,Avenue | 1,3 | head,straight,destination |
|
||||
| 2 | 1 | Avenue,Avenue | 4,1 | head,straight,destination |
|
||||
|
||||
Scenario: Testbot - Mode for routes
|
||||
Given the node map
|
||||
| a | b | | | |
|
||||
@ -35,20 +169,7 @@ Feature: Testbot - Mode flag
|
||||
| b | d | bc,cd | head,left,destination | 2,1 |
|
||||
| a | f | ab,bc,cd,de,ef | head,right,left,straight,straight,destination | 1,2,1,1,1 |
|
||||
|
||||
Scenario: Testbot - Different modes in each direction, start between nodes
|
||||
Given the node map
|
||||
| a | 1 | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | river |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| 1 | b | ab | 3 |
|
||||
| 1 | a | ab | 4 |
|
||||
|
||||
Scenario: Testbot - Modes for each direction
|
||||
Scenario: Testbot - Modes, triangle map
|
||||
Given the node map
|
||||
| | | | | | | d |
|
||||
| | | | | | 2 | |
|
||||
@ -81,161 +202,3 @@ Feature: Testbot - Mode flag
|
||||
| e | a | ce,abc | 4,1 |
|
||||
| a | d | abc,cd | 1,1 |
|
||||
| d | a | de,ce,abc | 1,4,1 |
|
||||
|
||||
Scenario: Testbot - Modes in each direction (simple)
|
||||
Given the node map
|
||||
| | 0 | 1 | |
|
||||
| a | | | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | river | |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| 0 | 1 | ab | 3 |
|
||||
| 1 | 0 | ab | 4 |
|
||||
|
||||
Scenario: Testbot - Modes in each direction (same speed in both direction)
|
||||
Given the node map
|
||||
| | 0 | 1 | |
|
||||
| a | | | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | steps |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes | time |
|
||||
| 0 | 1 | ab | 5 | 60s +-1 |
|
||||
| 1 | 0 | ab | 6 | 60s +-1 |
|
||||
|
||||
Scenario: Testbot - Modes for oneway
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | steps | yes |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | ab | 5 |
|
||||
| b | a | | |
|
||||
|
||||
Scenario: Testbot - Modes for reverse oneway
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | steps | -1 |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| b | a | ab | 6 |
|
||||
| a | b | | |
|
||||
|
||||
@via
|
||||
Scenario: Testbot - Mode should be set at via points
|
||||
Given the node map
|
||||
| a | 1 | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | river |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | modes | turns |
|
||||
| a,1,b | ab,ab | 3,3 | head,via,destination |
|
||||
| b,1,a | ab,ab | 4,4 | head,via,destination |
|
||||
|
||||
@via
|
||||
Scenario: Testbot - Modes and via point at dead end
|
||||
Given the node map
|
||||
| a | b | c |
|
||||
| | d | |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| abc | primary |
|
||||
| bd | steps |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | modes |
|
||||
| a,d,c | abc,bd,bd,bd,abc | 1,5,5,6,1 |
|
||||
| c,d,a | abc,bd,bd,bd,abc | 1,5,5,6,1 |
|
||||
|
||||
@via
|
||||
Scenario: Testbot - Modes and via point at river
|
||||
Given the node map
|
||||
| | | 0 | | |
|
||||
| a | b | | c | d |
|
||||
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | primary |
|
||||
| bc | river |
|
||||
| cd | primary |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | modes | turns |
|
||||
| a,0,d | ab,bc,bc,cd | 1,3,3,1 | head,straight,via,straight,destination |
|
||||
| d,0,a | cd,bc,bc,ab | 1,4,4,1 | head,straight,via,straight,destination |
|
||||
|
||||
Scenario: Testbot - Modes when starting on forward oneway
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | river | yes |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | ab | 3 |
|
||||
| b | a | | |
|
||||
|
||||
Scenario: Testbot - Modes when starting on reverse oneway
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | oneway |
|
||||
| ab | river | -1 |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | | |
|
||||
| b | a | ab | 4 |
|
||||
|
||||
Scenario: Testbot - Starting at a tricky node
|
||||
Given the node map
|
||||
| | a | | | |
|
||||
| | | | b | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | river |
|
||||
| bc | primary |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| b | a | ab | 4 |
|
||||
|
||||
Scenario: Testbot - Mode changes on straight way without name change
|
||||
Given the node map
|
||||
| a | 1 | b | 2 | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | name |
|
||||
| ab | primary | Avenue |
|
||||
| bc | river | Avenue |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes | turns |
|
||||
| a | c | Avenue,Avenue | 1,3 | head,straight,destination |
|
||||
| c | a | Avenue,Avenue | 3,1 | head,straight,destination |
|
||||
| 1 | 2 | Avenue,Avenue | 1,3 | head,straight,destination |
|
||||
| 2 | 1 | Avenue,Avenue | 3,1 | head,straight,destination |
|
Loading…
Reference in New Issue
Block a user