Setup and Teardown

ó°ƒ­ 2024-10-02

Setup and Teardown

Sequence of Execution

  1. Suite setup proceed
  2. Test setup proceed
  3. Test proceed
  4. Test teardown proceed
  5. Test setup proceed
  6. Test proceed
  7. Test teardown proceed
  8. Suite teardown proceed

Example Done

*** Settings ***
Suite Setup    log to console    Suite setup proceed
Suite Teardown    log to console    Suite teardown proceed
Test Setup    log to console    Test setup proceed
Test Teardown    log to console    Test teardown proceed


*** Test Cases ***
007_01
    log to console    test case 007_01 proceed
    
007_02 
    log to console    test case 007_02 proceed

007_03
    [Setup]    log to console    Test setup proceed#
    [Teardown]    log to console    Test teardown proceed#
    log to console    test case 007_03 proceed