From ba2bf4f78e414f79b385bf7bccb0d302f55377a4 Mon Sep 17 00:00:00 2001 From: FILLAU Jean-Maxime Date: Wed, 17 May 2017 11:36:27 +0200 Subject: [PATCH] Adding cucumber file test "side_param_feature" for the side parameter. - test on normal segment - test on oneway segment Signed-off-by: FILLAU Jean-Maxime --- features/testbot/side_param.feature | 207 ++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 features/testbot/side_param.feature 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