Skip to content

Commit

Permalink
Remove not working cucumber tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauline Jean-Marie committed Sep 24, 2024
1 parent 32a537a commit 1706a08
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@

Feature: US 10.1: Linear RAO with relative margin

@fast @rao @mock @ac @preventive-only @relative
Scenario: US 10.1.1: unsecured case
Given network file is "common/TestCase12Nodes.uct"
Given crac file is "epic10/ls_relative_margin_unsecure.json"
Given configuration file is "epic10/RaoParameters_relMargin_megawatt.json"
Given Glsk file is "common/glsk_proportional_12nodes.xml"
When I launch search_tree_rao
Then its security status should be "UNSECURED"
And the value of the objective function after CRA should be 275.8
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive
And the worst margin is -275.8 MW on cnec "FFR1AA1 FFR2AA1 1 - preventive"
And the relative margin on cnec "NNL2AA1 BBE3AA1 1 - preventive" after PRA should be 2286.2 MW
And the relative margin on cnec "DDE2AA1 NNL3AA1 1 - preventive" after PRA should be 2474.7 MW

@fast @rao @mock @ac @preventive-only @relative
Scenario: US 10.1.2: secured case
Given network file is "common/TestCase12Nodes.uct"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,6 @@ Feature: US 13.5: dynamic of range actions available in several instants
Then the optimization steps executed by the RAO should be "FIRST_PREVENTIVE_FELLBACK_TO_INITIAL_SITUATION"
And the worst margin is -184.1 A

@fast @rao @mock @ac @contingency-scenarios
Scenario: US 13.5.5: Preventive and curative optimization with absolute limit on curative PST
Given network file is "epic13/TestCase12NodesForCurative.uct"
Given crac file is "epic13/12nodes_onePreventiveAndCurativePst_relativeLimit.xml"
Given configuration file is "common/RaoParameters_maxMargin_megawatt_ac.json"
When I launch search_tree_rao at "2019-01-08 00:30"
Then the worst margin is 1432 MW
And the margin on cnec "CnecCurativeDir - curative" after CRA should be 1432 MW
And the tap of PstRangeAction "SelectTapPSTPrev" should be 12 in preventive
And the tap of PstRangeAction "SelectTapPSTCur" should be 14 after "Contingency" at "curative"
And the value of the objective function after CRA should be -1432

@fast @rao @mock @ac @contingency-scenarios
Scenario: US 13.5.6: Preventive and curative optimization with relative limit on curative PST
Given network file is "epic13/TestCase12NodesForCurative.uct"
Expand All @@ -94,18 +82,6 @@ Feature: US 13.5: dynamic of range actions available in several instants
And the tap of PstRangeAction "SelectTapPSTPrev" should be 12 in preventive
And the tap of PstRangeAction "SelectTapPSTCur" should be 14 after "Contingency" at "curative"

@fast @rao @mock @ac @contingency-scenarios
Scenario: US 13.5.7: Preventive and curative optimization with wrong absolute limit on curative PST
Given network file is "epic13/TestCase12NodesForCurative.uct"
Given crac file is "epic13/12nodes_onePreventiveAndCurativePst_absoluteLimitError.xml"
Given configuration file is "common/RaoParameters_maxMargin_megawatt_ac.json"
When I launch search_tree_rao at "2019-01-08 00:30"
Then the worst margin is 1422 MW
And the margin on cnec "CnecCurativeDir - curative" after CRA should be 1422 MW
And the tap of PstRangeAction "SelectTapPSTPrev" should be 12 in preventive
And the tap of PstRangeAction "SelectTapPSTCur" should be 12 after "Contingency" at "curative"
And the value of the objective function after CRA should be -1422

@fast @crac @mock
Scenario: US 13.5.8: PST filtering
Given network file is "epic13/TestCase12NodesForCurative.uct"
Expand All @@ -116,17 +92,6 @@ Feature: US 13.5: dynamic of range actions available in several instants
And range action "SelectTapPSTPrev" should have 1 ranges
And range action "SelectTapPSTPrevWrongRange" should have 0 ranges

@fast @rao @mock @ac @preventive-only
Scenario: US 13.5.9: Preventive optimization after PST filtering
Given network file is "epic13/TestCase12NodesForCurative.uct"
Given crac file is "epic13/12nodes_oneCorrectPreventivePst.xml"
Given configuration file is "common/RaoParameters_maxMargin_megawatt_ac.json"
When I launch search_tree_rao at "2019-01-08 00:30"
Then the worst margin is 1637 MW
And the margin on cnec "CnecPreventiveDir - preventive" after PRA should be 1637 MW
And the tap of PstRangeAction "SelectTapPSTPrev" should be 12 in preventive
And the value of the objective function after CRA should be -1637

@fast @rao @mock @ac @contingency-scenarios
Scenario: US 13.5.10: CBCORA, CRA and PRA on same PSTs (as done in CORE CC data)
Given network file is "epic13/TestCase16Nodes_with_different_imax.uct"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,6 @@ Feature: US 4.2: Optimization in A/MW, thresholds in A/MW, computation in AC/DC
And the margin on cnec "NNL2AA1 BBE3AA1 1 - preventive" after PRA should be 20.0 MW
And the margin on cnec "FFR2AA1 DDE3AA1 1 - preventive" after PRA should be 44.0 MW

@fast @rao @mock @ac @preventive-only
Scenario: US 4.2.2: MW thresholds in AC mode and min margin in MW
Given network file is "common/TestCase12Nodes.uct"
Given crac file is "epic4/SL_ep4us2_4MR_MW.json"
Given configuration file is "common/RaoParameters_maxMargin_megawatt_ac.json"
When I launch search_tree_rao
Then the worst margin is 19.0 MW
And the value of the objective function after CRA should be -19.0
And the tap of PstRangeAction "PRA_PST_BE" should be 4 in preventive
And the margin on cnec "FFR2AA1 DDE3AA1 1 - N-1 NL1-NL3 - outage" after PRA should be 25.0 MW
And the margin on cnec "NNL2AA1 BBE3AA1 1 - preventive" after PRA should be 19.0 MW
And the margin on cnec "FFR2AA1 DDE3AA1 1 - preventive" after PRA should be 49.0 MW

@fast @rao @mock @dc @preventive-only
Scenario: US 4.2.3: A thresholds in DC mode and min margin in MW
Given network file is "common/TestCase12Nodes.uct"
Expand Down Expand Up @@ -68,16 +55,4 @@ Feature: US 4.2: Optimization in A/MW, thresholds in A/MW, computation in AC/DC
Then the value of the objective function after CRA should be -19.0
Then the tap of PstRangeAction "PRA_PST_BE" should be 5 in preventive
And the margin on cnec "NNL2AA1 BBE3AA1 1 - preventive" after PRA should be 24.0 MW
And the margin on cnec "FFR2AA1 DDE3AA1 1 - N-1 NL1-NL3 - outage" after PRA should be 23.0 MW

@fast @rao @mock @ac @preventive-only
Scenario: US 4.2.6: mixed thresholds in AC mode and min margin in MW
Given network file is "common/TestCase12Nodes.uct"
Given crac file is "epic4/SL_ep4us2_4MR_mixed.json"
Given configuration file is "common/RaoParameters_maxMargin_megawatt_ac.json"
When I launch search_tree_rao
Then the worst margin is 19.0 MW
Then the value of the objective function after CRA should be -19.0
Then the tap of PstRangeAction "PRA_PST_BE" should be 4 in preventive
And the margin on cnec "NNL2AA1 BBE3AA1 1 - preventive" after PRA should be 19.0 MW
And the margin on cnec "FFR2AA1 DDE3AA1 1 - N-1 NL1-NL3 - outage" after PRA should be 23.0 MW
Original file line number Diff line number Diff line change
Expand Up @@ -19,57 +19,6 @@ Feature: US 7.10: Search-tree RAO with loopflow limitation
Then the remedial action "Open FR1 FR2" is used in preventive
Then the remedial action "PRA_PST_BE" is used in preventive

@fast @rao @mock @ac @preventive-only @loopflow
Scenario: US 7.10.2: Simple search tree RAO with LF limited by a predefined threshold
Given network file is "common/TestCase12Nodes.uct"
Given crac file is "epic7/crac_lf_rao_3.json"
Given Glsk file is "common/glsk_lots_of_lf_12nodes.xml"
Given configuration file is "epic7/RaoParameters_maxMargin_mw_ac_lf_false_5_100.json"
When I launch loopflow search_tree_rao with default loopflow limit as 50.0 percent of pmax
Then its security status should be "UNSECURED"
Then the worst margin is -349.0 MW
Then the worst margin is -349.0 MW on cnec "FFR2AA1 DDE3AA1 1 - preventive"
Then the tap of PstRangeAction "PRA_PST_BE" should be 4 in preventive
Then 2 remedial actions are used in preventive
Then the remedial action "Open FR1 FR2" is used in preventive
And the loopflow threshold on cnec "DDE2AA1 NNL3AA1 1 - preventive" should be 2000.0 MW
And the loopflow threshold on cnec "NNL2AA1 BBE3AA1 1 - preventive" should be 2000.0 MW
And the loopflow threshold on cnec "FFR2AA1 DDE3AA1 1 - preventive" should be 500.0 MW
And the loopflow threshold on cnec "BBE2AA1 FFR3AA1 1 - preventive" should be 2000.0 MW
And the initial loopflow on cnec "DDE2AA1 NNL3AA1 1 - preventive" should be -391.0 MW
And the initial loopflow on cnec "NNL2AA1 BBE3AA1 1 - preventive" should be -391.0 MW
And the initial loopflow on cnec "FFR2AA1 DDE3AA1 1 - preventive" should be -391.0 MW
And the initial loopflow on cnec "BBE2AA1 FFR3AA1 1 - preventive" should be -391.0 MW
And the loopflow on cnec "DDE2AA1 NNL3AA1 1 - preventive" after PRA should be -498.0 MW
And the loopflow on cnec "NNL2AA1 BBE3AA1 1 - preventive" after PRA should be -498.0 MW
And the loopflow on cnec "FFR2AA1 DDE3AA1 1 - preventive" after PRA should be -498.0 MW
And the loopflow on cnec "BBE2AA1 FFR3AA1 1 - preventive" after PRA should be -498.0 MW

@fast @rao @mock @ac @preventive-only @loopflow
Scenario: US 7.10.3: Simple search tree RAO with LF limited by their initial value
Given network file is "common/TestCase12Nodes.uct"
Given crac file is "epic7/crac_lf_rao_3.json"
Given Glsk file is "common/glsk_lots_of_lf_12nodes.xml"
Given configuration file is "epic7/RaoParameters_maxMargin_mw_ac_lf_false_5_100.json"
When I launch loopflow search_tree_rao with default loopflow limit as 25.0 percent of pmax
Then its security status should be "UNSECURED"
Then the worst margin is -463.0 MW
Then the worst margin is -463.0 MW on cnec "FFR2AA1 DDE3AA1 1 - preventive"
Then the tap of PstRangeAction "PRA_PST_BE" should be 15 in preventive
Then the remedial action "Open FR1 FR2" is used in preventive
And the loopflow threshold on cnec "DDE2AA1 NNL3AA1 1 - preventive" should be 1000.0 MW
And the loopflow threshold on cnec "NNL2AA1 BBE3AA1 1 - preventive" should be 1000.0 MW
And the loopflow threshold on cnec "FFR2AA1 DDE3AA1 1 - preventive" should be 250.0 MW
And the loopflow threshold on cnec "BBE2AA1 FFR3AA1 1 - preventive" should be 1000.0 MW
And the initial loopflow on cnec "DDE2AA1 NNL3AA1 1 - preventive" should be -391.0 MW
And the initial loopflow on cnec "NNL2AA1 BBE3AA1 1 - preventive" should be -391.0 MW
And the initial loopflow on cnec "FFR2AA1 DDE3AA1 1 - preventive" should be -391.0 MW
And the initial loopflow on cnec "BBE2AA1 FFR3AA1 1 - preventive" should be -391.0 MW
And the loopflow on cnec "DDE2AA1 NNL3AA1 1 - preventive" after PRA should be -384.0 MW
And the loopflow on cnec "NNL2AA1 BBE3AA1 1 - preventive" after PRA should be -384.0 MW
And the loopflow on cnec "FFR2AA1 DDE3AA1 1 - preventive" after PRA should be -384.0 MW
And the loopflow on cnec "BBE2AA1 FFR3AA1 1 - preventive" after PRA should be -384.0 MW

@fast @rao @mock @ac @preventive-only @loopflow
Scenario: US 7.10.4: Simple search tree RAO with loop-approximation ON
Given network file is "common/TestCase12Nodes.uct"
Expand Down Expand Up @@ -108,21 +57,4 @@ Feature: US 7.10: Search-tree RAO with loopflow limitation
Then the remedial action "PRA_PST_BE" is used in preventive
Then the remedial action "PRA_PST_DE" is used in preventive
Then the remedial action "Open_BE1_BE3" is used in preventive
Then the remedial action "Open_NL1_NL2" is used in preventive

@fast @rao @mock @ac @preventive-only @loopflow
Scenario: US 7.10.6: Complex search tree RAO with LF limitation
Given network file is "common/TestCase12Nodes2PSTs.uct"
Given crac file is "epic7/crac_lf_rao_4.json"
Given Glsk file is "common/glsk_lots_of_lf_12nodes.xml"
Given configuration file is "epic7/RaoParameters_maxMargin_mw_ac_lf_false_5_100.json"
When I launch loopflow search_tree_rao with default loopflow limit as 35.0 percent of pmax
Then its security status should be "UNSECURED"
Then the worst margin is -290.0 MW
Then the worst margin is -290.0 MW on cnec "FFR1AA1 FFR2AA1 1 - preventive"
Then the tap of PstRangeAction "PRA_PST_DE" should be -11 in preventive
Then the tap of PstRangeAction "PRA_PST_BE" should be -1 in preventive
Then 2 remedial actions are used in preventive
And the loopflow threshold on cnec "BBE2AA1 FFR3AA1 1 - preventive" should be 525.5 MW
And the initial loopflow on cnec "BBE2AA1 FFR3AA1 1 - preventive" should be -391.0 MW
And the loopflow on cnec "BBE2AA1 FFR3AA1 1 - preventive" after PRA should be -521.0 MW
Then the remedial action "Open_NL1_NL2" is used in preventive
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,3 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Feature: US 7.7: Handle optimisation unfeasibility with loopflow constraints

@fast @rao @mock @ac @preventive-only @loopflow
Scenario: US 7.7.1: Simple search tree RAO with LF limitation and infeasible linear problem
Given network file is "common/TestCase12Nodes.uct"
Given crac file is "epic7/crac_lf_rao_3bis.json"
Given Glsk file is "common/glsk_lots_of_lf_12nodes.xml"
Given configuration file is "epic7/RaoParameters_maxMargin_mw_ac_lf_false_5_100.json"
When I launch loopflow search_tree_rao with default loopflow limit as 50.0 percent of pmax
Then the worst margin is -402.0 MW
Then the margin on cnec "FFR2AA1 DDE3AA1 1 - preventive" after PRA should be -402.0 MW
Then the tap of PstRangeAction "PRA_PST_BE" should be -9 in preventive
And the loopflow threshold on cnec "FFR2AA1 DDE3AA1 1 - preventive" should be 500.0 MW
And the initial loopflow on cnec "FFR2AA1 DDE3AA1 1 - preventive" should be -391.0 MW
And the loopflow on cnec "FFR2AA1 DDE3AA1 1 - preventive" after PRA should be -490.0 MW
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,3 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Feature: US 8.3: Handle elementName tag

@fast @rao @mock @ac @preventive-only @loopflow
Scenario: US 8.3.1
Given network file is "epic8/US2-3-case1-elementName.uct" for CORE CC
Given crac file is "epic8/12nodes_pst_topo_frm_cbcora_elementName.xml"
When I launch search_tree_rao at "2019-01-08 12:00"
Then the value of the objective function after CRA should be 24.0
Then the margin on cnec "Cnec1 - preventive" after PRA should be -24.0 MW
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,3 @@ Feature: US 8.5: Management of FRM during computation
When I launch search_tree_rao at "2019-01-08 12:00"
Then the value of the objective function after CRA should be -26.0
Then the margin on cnec "Cnec1 - preventive" after PRA should be 26.0 A

@fast @rao @mock @ac @preventive-only
Scenario: US 8.5.2: case with a FRM of 50 MW
Given network file is "epic2/US2-3-case1-standard.uct" for CORE CC
Given crac file is "epic8/12nodes_pst_topo_frm_cbcora.xml"
When I launch search_tree_rao at "2019-01-08 12:00"
Then the value of the objective function after CRA should be 24.0
Then the margin on cnec "Cnec1 - preventive" after PRA should be -24.0 MW

0 comments on commit 1706a08

Please sign in to comment.