cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaurav Aradhye (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7203) Add try catch blocks in setUp() and setUpClass() methods in test cases and call tearDown methods explicitly in case we catch exception
Date Wed, 30 Jul 2014 10:05:38 GMT
Gaurav Aradhye created CLOUDSTACK-7203:
------------------------------------------

             Summary: Add try catch blocks in setUp() and setUpClass() methods in test cases
and call tearDown methods explicitly in case we catch exception
                 Key: CLOUDSTACK-7203
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7203
             Project: CloudStack
          Issue Type: Improvement
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Automation
    Affects Versions: 4.5.0
            Reporter: Gaurav Aradhye
            Assignee: Gaurav Aradhye
             Fix For: 4.5.0


If exception occurs in setUp() and setUpClass(), then in that case cleanup does not happen
(tearDown method is called only when setUp is successful).

Hence it is wise to catch the exception and call the tearDown method explicitly, so that previously
created resources get cleaned up and it does not affect the execution of the next test cases



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message