Skip to content

Commit

Permalink
Repair cucumber tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com>
  • Loading branch information
Pauline Jean-Marie committed Sep 17, 2024
1 parent f23e570 commit 22ef4cf
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,11 @@ Feature: US 13.3 : Solve a RAO for N compounds states
And the tap of PstRangeAction "pst_fr" should be 15 in preventive
And 1 remedial actions are used after "co1_fr2_fr3_1" at "curative"
And the remedial action "close_fr1_fr5" is used after "co1_fr2_fr3_1" at "curative"
And 1 remedial actions are used after "co2_be1_be3" at "curative"
And the tap of PstRangeAction "pst_be" should be -16 after "co2_be1_be3" at "curative"
And the worst margin is -184 A
And the margin on cnec "FFR2AA1 FFR3AA1 2 - co1_fr2_fr3_1 - outage" after PRA should be -184 A
And the margin on cnec "FFR2AA1 FFR3AA1 2 - co1_fr2_fr3_1 - curative" after CRA should be -141 A
And the margin on cnec "BBE2AA1 FFR3AA1 1 - co2_be1_be3 - outage" after PRA should be 332 A
And the margin on cnec "BBE2AA1 FFR3AA1 1 - co2_be1_be3 - curative" after CRA should be 544 A
And the margin on cnec "BBE2AA1 FFR3AA1 1 - co2_be1_be3 - curative" after CRA should be 132 A
And the margin on cnec "FFR3AA1 FFR5AA1 1 - co1_fr2_fr3_1 - curative" after CRA should be 782 A
And the value of the objective function after CRA should be 184

Expand All @@ -100,16 +98,14 @@ Feature: US 13.3 : Solve a RAO for N compounds states
And the remedial action "close_fr1_fr5" is used in preventive
And the remedial action "open_be1_be4" is used in preventive
And the remedial action "open_fr1_fr3" is used in preventive
And 3 remedial actions are used after "co1_fr2_fr3_1" at "curative"
And the remedial action "close_de3_de4" is used after "co1_fr2_fr3_1" at "curative"
And the remedial action "open_fr1_fr2" is used after "co1_fr2_fr3_1" at "curative"
And 1 remedial actions are used after "co1_fr2_fr3_1" at "curative"
And the tap of PstRangeAction "pst_be" should be -16 after "co1_fr2_fr3_1" at "curative"
And the worst margin is 469 A
And the margin on cnec "BBE2AA1 FFR3AA1 1 - co2_be1_be3 - curative" after CRA should be 469 A
And the margin on cnec "FFR3AA1 FFR5AA1 1 - co1_fr2_fr3_1 - curative" after CRA should be 875 A
And the margin on cnec "FFR3AA1 FFR5AA1 1 - co1_fr2_fr3_1 - curative" after CRA should be 720 A
And the margin on cnec "FFR4AA1 DDE1AA1 1 - preventive" after PRA should be 1004 A
And the margin on cnec "FFR4AA1 DDE1AA1 1 - co2_be1_be3 - curative" after CRA should be 1031 A
And the margin on cnec "FFR4AA1 DDE1AA1 1 - co1_fr2_fr3_1 - curative" after CRA should be 1049 A
And the margin on cnec "FFR4AA1 DDE1AA1 1 - co1_fr2_fr3_1 - curative" after CRA should be 1079 A
And the value of the objective function after CRA should be -469

@fast @rao @mock @ac @contingency-scenarios
Expand All @@ -120,9 +116,9 @@ Feature: US 13.3 : Solve a RAO for N compounds states
When I launch search_tree_rao
Then 1 remedial actions are used in preventive
And the tap of PstRangeAction "pst_fr" should be 15 in preventive
And 2 remedial actions are used after "co2_be1_be3" at "curative"
And the remedial action "open_be1_be4" is used after "co2_be1_be3" at "curative"
And the tap of PstRangeAction "pst_be" should be -16 after "co2_be1_be3" at "curative"
# Network is better than prev and secure for contingency co2_be1_be3 (min margin 132)
And 0 remedial actions are used after "co2_be1_be3" at "curative"
And the margin on cnec "BBE2AA1 FFR3AA1 1 - co2_be1_be3 - curative" after CRA should be 132 A
And the worst margin is -484 A
And the margin on cnec "FFR2AA1 FFR3AA1 2 - co1_fr2_fr3_1 - curative" after CRA should be -484 A
# For contingency co1_fr2_fr3_1 that has no CRA, Osiris automatically decreases the threshold in outage to match the treshold in curative state
Expand Down Expand Up @@ -163,8 +159,9 @@ Feature: US 13.3 : Solve a RAO for N compounds states
And the tap of PstRangeAction "pst_be" should be -16 in preventive
And 1 remedial actions are used after "co1_fr2_fr3_1" at "curative"
And the remedial action "close_fr1_fr5" is used after "co1_fr2_fr3_1" at "curative"
And 1 remedial actions are used after "co3_fr1_fr3" at "curative"
And the remedial action "open_fr1_fr2" is used after "co3_fr1_fr3" at "curative"
# Min margin is better than prev for contingency co3_fr1_fr3 (657)
And 0 remedial actions are used after "co3_fr1_fr3" at "curative"
And the margin on cnec "FFR1AA1 FFR2AA1 1 - co3_fr1_fr3 - curative" after CRA should be 657 A
And the worst margin is 418 A
And the margin on cnec "FFR2AA1 FFR3AA1 2 - co1_fr2_fr3_1 - outage" after PRA should be 418 A
And the margin on cnec "FFR2AA1 FFR3AA1 2 - co1_fr2_fr3_1 - curative" after CRA should be 485 A
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ Feature: US 13.7: Cross-validation Curative and Loop-flows
Given Glsk file is "common/glsk_proportional_12nodes.xml"
Given configuration file is "common/RaoParameters_maxMargin_megawatt_dc_withLoopFlows.json"
When I launch search_tree_rao at "2019-01-08 12:00"
Then the worst margin is 524.0 MW
Then the worst margin is 505.0 MW
And the margin on cnec "001_FR-DE - preventive" after PRA should be 524.0 MW
And the margin on cnec "003_FR-DE - outage" after PRA should be 921.0 MW
And the margin on cnec "003_FR-DE - curative" after CRA should be 1130.0 MW
And the margin on cnec "003_FR-DE - outage" after PRA should be 505.0 MW
And the margin on cnec "003_FR-DE - curative" after CRA should be 714.0 MW
And the remedial action "Open BE1 BE3" is used in preventive
And the tap of PstRangeAction "PRA_PST_BE" should be -16 after "CO1" at "curative"
And the loopflow threshold on cnec "001_FR-DE - preventive" should be 1200.0 MW
And the initial loopflow on cnec "001_FR-DE - preventive" should be -124.0 MW
And the loopflow on cnec "001_FR-DE - preventive" after PRA should be -200.0 MW
And the loopflow threshold on cnec "003_FR-DE - outage" should be 1600.0 MW
And the loopflow threshold on cnec "003_FR-DE - outage" should be 1268.0 MW
And the initial loopflow on cnec "003_FR-DE - outage" should be -342.0 MW
And the loopflow on cnec "003_FR-DE - outage" after PRA should be -396.0 MW
And the loopflow threshold on cnec "003_FR-DE - curative" should be 1600.0 MW
And the loopflow threshold on cnec "003_FR-DE - curative" should be 1268.0 MW
And the initial loopflow on cnec "003_FR-DE - curative" should be -342.0 MW
And the loopflow on cnec "003_FR-DE - curative" after CRA should be -605.0 MW
And the value of the objective function after CRA should be -524
And the value of the objective function after CRA should be -505

@fast @rao @mock @dc @contingency-scenarios @loopflow
Scenario: US 13.7.4 : Curative RAO with loop-flows with constraining thresholds in curative
Expand All @@ -92,13 +92,13 @@ Feature: US 13.7: Cross-validation Curative and Loop-flows
Given Glsk file is "common/glsk_proportional_12nodes.xml"
Given configuration file is "common/RaoParameters_maxMargin_megawatt_dc_withLoopFlows.json"
When I launch search_tree_rao at "2019-01-08 12:00"
Then the worst margin is 524.0 MW
And the margin on cnec "001_FR-DE - preventive" after PRA should be 524.0 MW
Then the worst margin is 921.0 MW
And the margin on cnec "001_FR-DE - preventive" after PRA should be 940.0 MW
And the margin on cnec "003_FR-DE - outage" after PRA should be 921.0 MW
And the margin on cnec "003_FR-DE - curative" after CRA should be 1012.0 MW
And the remedial action "Open BE1 BE3" is used in preventive
And the tap of PstRangeAction "PRA_PST_BE" should be -7 after "CO1" at "curative"
And the loopflow threshold on cnec "001_FR-DE - preventive" should be 1200.0 MW
And the loopflow threshold on cnec "001_FR-DE - preventive" should be 1450.0 MW
And the initial loopflow on cnec "001_FR-DE - preventive" should be -124.0 MW
And the loopflow on cnec "001_FR-DE - preventive" after PRA should be -200.0 MW
And the loopflow threshold on cnec "003_FR-DE - outage" should be 500.0 MW
Expand All @@ -107,7 +107,7 @@ Feature: US 13.7: Cross-validation Curative and Loop-flows
And the loopflow threshold on cnec "003_FR-DE - curative" should be 500.0 MW
And the initial loopflow on cnec "003_FR-DE - curative" should be -342.0 MW
And the loopflow on cnec "003_FR-DE - curative" after CRA should be -487.0 MW
And the value of the objective function after CRA should be -524
And the value of the objective function after CRA should be -921

@fast @rao @mock @dc @contingency-scenarios @loopflow
Scenario: US 13.7.5 : Curative RAO with loop-flows with constraining initial values in curative
Expand Down Expand Up @@ -139,14 +139,14 @@ Feature: US 13.7: Cross-validation Curative and Loop-flows
Given Glsk file is "common/glsk_proportional_12nodes.xml"
Given configuration file is "epic13/RaoParameters_ep13us7case6.json"
When I launch search_tree_rao at "2019-01-08 12:00"
Then the worst margin is 524.0 MW
And the margin on cnec "001_FR-DE - preventive" after PRA should be 524.0 MW
Then the worst margin is 921.0 MW
And the margin on cnec "001_FR-DE - preventive" after PRA should be 940.0 MW
And the margin on cnec "003_FR-DE - outage" after PRA should be 921.0 MW
And the margin on cnec "003_FR-DE - curative" after CRA should be 1028.0 MW
And the remedial action "Open BE1 BE3" is used in preventive
And the tap of PstRangeAction "PRA_PST_BE" should be -16 after "CO1" at "curative"
And the remedial action "Open NL1 NL3" is used after "CO1" at "curative"
And the loopflow threshold on cnec "001_FR-DE - preventive" should be 1200.0 MW
And the loopflow threshold on cnec "001_FR-DE - preventive" should be 1450.0 MW
And the initial loopflow on cnec "001_FR-DE - preventive" should be -124.0 MW
And the loopflow on cnec "001_FR-DE - preventive" after PRA should be -147.0 MW
And the loopflow threshold on cnec "003_FR-DE - outage" should be 500.0 MW
Expand All @@ -155,4 +155,4 @@ Feature: US 13.7: Cross-validation Curative and Loop-flows
And the loopflow threshold on cnec "003_FR-DE - curative" should be 500.0 MW
And the initial loopflow on cnec "003_FR-DE - curative" should be -342.0 MW
And the loopflow on cnec "003_FR-DE - curative" after CRA should be -452.0 MW
And the value of the objective function after CRA should be -524
And the value of the objective function after CRA should be -921
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<criticalBranch id="003_FR-DE">
<timeInterval v="2019-01-07T23:00Z/2019-01-08T23:00Z"/>
<branch eic="1234567890123450" from="FFR2AA1 " name="FFR2AA1 DDE3AA1 1" order="1" to="DDE3AA1 "/>
<imaxA>2888</imaxA>
<imaxA>2288</imaxA>
<imaxType>SEASONAL</imaxType>
<permanentImaxFactor>1.5</permanentImaxFactor>
<temporaryImaxFactor>1.5</temporaryImaxFactor>
Expand All @@ -60,7 +60,7 @@
<criticalBranch id="004_FR-DE">
<timeInterval v="2019-01-07T23:00Z/2019-01-08T23:00Z"/>
<branch eic="1234567890123450" from="FFR2AA1 " name="FFR2AA1 DDE3AA1 1" order="1" to="DDE3AA1 "/>
<imaxA>2888</imaxA>
<imaxA>2288</imaxA>
<imaxType>SEASONAL</imaxType>
<permanentImaxFactor>1.5</permanentImaxFactor>
<temporaryImaxFactor>1.5</temporaryImaxFactor>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<criticalBranch id="001_FR-DE">
<timeInterval v="2019-01-07T23:00Z/2019-01-08T23:00Z"/>
<branch eic="1234567890123450" from="FFR2AA1 " name="FFR2AA1 DDE3AA1 1" order="1" to="DDE3AA1 "/>
<imaxA>2888</imaxA>
<imaxA>3488</imaxA>
<imaxType>SEASONAL</imaxType>
<permanentImaxFactor>1.5</permanentImaxFactor>
<temporaryImaxFactor>1.5</temporaryImaxFactor>
Expand All @@ -29,7 +29,7 @@
<criticalBranch id="002_FR-DE">
<timeInterval v="2019-01-07T23:00Z/2019-01-08T23:00Z"/>
<branch eic="1234567890123450" from="FFR2AA1 " name="FFR2AA1 DDE3AA1 1" order="1" to="DDE3AA1 "/>
<imaxA>2888</imaxA>
<imaxA>3488</imaxA>
<imaxType>SEASONAL</imaxType>
<permanentImaxFactor>1.5</permanentImaxFactor>
<temporaryImaxFactor>1.5</temporaryImaxFactor>
Expand Down

0 comments on commit 22ef4cf

Please sign in to comment.