X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FFailFast.robot;h=68c548890bdfae54fb8b87e62ff41675672f3714;hb=HEAD;hp=9c880f62e13b37909dc46bdb5196dc7d43c90180;hpb=39de3404b2681d425af82a66f7f665ecd4a2da3a;p=integration%2Ftest.git diff --git a/csit/libraries/FailFast.robot b/csit/libraries/FailFast.robot index 9c880f62e1..68c548890b 100644 --- a/csit/libraries/FailFast.robot +++ b/csit/libraries/FailFast.robot @@ -1,27 +1,28 @@ *** Settings *** -Documentation Robot keyword library (Resource) for implementing fail fast behavior in Robot suites. -... -... Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. -... -... This program and the accompanying materials are made available under the -... terms of the Eclipse Public License v1.0 which accompanies this distribution, -... and is available at http://www.eclipse.org/legal/epl-v10.html -... -... -... This Resource uses suite variable SuiteFastFail, beware of possible conflicts. -... -... Recommended usage: -... In suite setup, call Do_Not_Fail_Fast_From_Now_On -... Set Fail_This_Fast_On_Previous_Error as Test Setup -... and Start_Failing_Fast_If_This_Failed as Test Teardown -... in the suite setting table. -... If you do not want the test teardown, use this in test case: -... [Teardown] Do_Not_Start_Failing_If_This_Failed -... If you do not want the test setup in a particular test, use this in the test case: -... [Setup] Run_Even_When_Failing_Fast -... If success of such "run even when failing" test case can return the system under test -... back to corret state, call at the end of such test case this: -... Do_Not_Fail_Fast_From_Now_On +Documentation Robot keyword library (Resource) for implementing fail fast behavior in Robot suites. +... +... Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. +... +... This program and the accompanying materials are made available under the +... terms of the Eclipse Public License v1.0 which accompanies this distribution, +... and is available at http://www.eclipse.org/legal/epl-v10.html +... +... +... This Resource uses suite variable SuiteFastFail, beware of possible conflicts. +... +... Recommended usage: +... In suite setup, call Do_Not_Fail_Fast_From_Now_On +... Set Fail_This_Fast_On_Previous_Error as Test Setup +... and Start_Failing_Fast_If_This_Failed as Test Teardown +... in the suite setting table. +... If you do not want the test teardown, use this in test case: +... [Teardown] Do_Not_Start_Failing_If_This_Failed +... If you do not want the test setup in a particular test, use this in the test case: +... [Setup] Run_Even_When_Failing_Fast +... If success of such "run even when failing" test case can return the system under test +... back to corret state, call at the end of such test case this: +... Do_Not_Fail_Fast_From_Now_On + *** Keywords *** Do_Not_Fail_Fast_From_Now_On @@ -30,7 +31,9 @@ Do_Not_Fail_Fast_From_Now_On Fail_This_Fast_On_Previous_Error [Documentation] Mark (immediately) this test case as failed when fast-fail is enabled in suite. - BuiltIn.Run_Keyword_If '''${SuiteFastFail}'''=='True' BuiltIn.Fail SKIPPED due to a failure in a previous fundamental test case. + IF '''${SuiteFastFail}'''=='True' + BuiltIn.Fail SKIPPED due to a failure in a previous fundamental test case. + END Start_Failing_Fast_If_This_Failed [Documentation] Set suite fail fast behavior on, if current test case has failed.