diff --git a/features/testbot/side_param.feature b/features/testbot/side_param.feature new file mode 100644 index 000000000..82c07f83d --- /dev/null +++ b/features/testbot/side_param.feature @@ -0,0 +1,207 @@ +@routing @side_param @testbot +Feature: Side parameter + + Background: + Given the profile "car" + And a grid size of 10 meters + + Scenario: Testbot - Start End same side, option both for Start and End + Given the node map + """ + s e + a------b------c + """ + + And the ways + | nodes | + | ab | + | bc | + + When I route I should get + | from | to | sides | route | + | s | e | b b | ab,bc | + + Scenario: Testbot - Start End same side, option both for Start and Default for End + Given the node map + """ + s e + a------b------c + """ + + And the ways + | nodes | + | ab | + | bc | + + When I route I should get + | from | to | sides | route | + | s | e | b d | ab,bc,bc | + + Scenario: Testbot - Start End same side, option both for Start and Opposite for End + Given the node map + """ + s e + a------b------c + """ + + And the ways + | nodes | + | ab | + | bc | + + When I route I should get + | from | to | sides | route | + | s | e | b o | ab,bc | + + Scenario: Testbot - Start End opposite side, option both for Start and End + Given the node map + """ + s + a------b------c + e + """ + + And the ways + | nodes | + | ab | + | bc | + + When I route I should get + | from | to | sides | route | + | s | e | b b | ab,bc | + + Scenario: Testbot - Start End opposite side, option both for Start and Default for End + Given the node map + """ + s + a------b------c + e + """ + + And the ways + | nodes | + | ab | + | bc | + + When I route I should get + | from | to | sides | route | + | s | e | b d | ab,bc | + + Scenario: Testbot - Start End opposite side, option both for Start and Opposite for End + Given the node map + """ + s + a------b------c + e + """ + + And the ways + | nodes | + | ab | + | bc | + + When I route I should get + | from | to | sides | route | + | s | e | b o | ab,bc,bc | + + ############### + # Oneway Test # + ############### + Scenario: Testbot - Test on oneway segment, Start End same side, option both for Start and End, + Given the node map + """ + s e + a------b------c + """ + + And the ways + | nodes | oneway | + | ab | yes | + | bc | yes | + + When I route I should get + | from | to | sides | route | + | s | e | b b | ab,bc | + + Scenario: Testbot - Test on oneway segment, Start End same side, option both for Start and Default for End + Given the node map + """ + s e + a------b------c + """ + + And the ways + | nodes | oneway | + | ab | yes | + | bc | yes | + + When I route I should get + | from | to | sides | route | + | s | e | b d | ab,bc | + + Scenario: Testbot - Test on oneway segment, Start End same side, option both for Start and Opposite for End + Given the node map + """ + s e + a------b------c + """ + + And the ways + | nodes | oneway | + | ab | yes | + | bc | yes | + + When I route I should get + | from | to | sides | route | + | s | e | b o | ab,bc | + + Scenario: Testbot - Test on oneway segment, Start End opposite side, option both for Start and End, + Given the node map + """ + s + a------b------c + e + """ + + And the ways + | nodes | oneway | + | ab | yes | + | bc | yes | + + When I route I should get + | from | to | sides | route | + | s | e | b b | ab,bc | + + Scenario: Testbot - Test on oneway segment, Start End opposite side, option both for Start and Default for End + Given the node map + """ + s + a------b------c + e + """ + + And the ways + | nodes | oneway | + | ab | yes | + | bc | yes | + + When I route I should get + | from | to | sides | route | + | s | e | b d | ab,bc | + + Scenario: Testbot - Test on oneway segment, Start End opposite side, option both for Start and Opposite for End + Given the node map + """ + s + a------b------c + e + """ + + And the ways + | nodes | oneway | + | ab | yes | + | bc | yes | + + When I route I should get + | from | to | sides | route | + | s | e | b o | ab,bc | \ No newline at end of file