Test setup and teardown for each testcase in a test suite in robot frame work using python
<p>Hi I'm new to robot frame-work. Can someone help me to find if it's possible to have to a test setup and a teardown for each test case in test suite containing around 20 testcases. </p>

<p>Can someone explain this with a example?</p>

<p>Here's an example. A testsuite containing teardown. You can miss the teardown from each testcase if you want to execute it at last. 
Please read the corresponding documentation: </p>

<p><a href="http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-setup-and-teardown" rel="nofollow">http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-setup-and-teardown</a></p>

<pre><code>*** Settings ***
Test Setup       Open Application    App A
Test Teardown    Close Application

*** Test Cases ***
Default values
    [Documentation]    Setup and teardown from setting table
    Do Something

Overridden setup
    [Documentation]    Own setup, teardown from setting table
    [Setup]    Open Application    App B
    Do Something

No teardown
    [Documentation]    Default setup, no teardown at all
    Do Something
    [Teardown]

No teardown 2
    [Documentation]    Setup and teardown can be disabled also with special value NONE
    Do Something
    [Teardown]    NONE

Using variables
    [Documentation]    Setup and teardown specified using variables
    [Setup]    ${SETUP}
    Do Something
    [Teardown]    ${TEARDOWN}
</code></pre>

python robotframework