Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are a lot of Metadata tags used in FlexUnit, and if you're still new to the framework it can be a bit overwhelming to know what to use and what can be included inside them. Here's a comprehensive list of the commonly used tags with a brief explanation of where they can be used. You should be able to find reference to most of these in the code examples listed in this wiki.

...

BeforeClass

...

– Used to specify a static method within a TestCase should run one time, before the constructor and all test cases, this only happens once per TestCase, per case execution, regardless of how many tests are in the test case. It's most commonly a BeforeClass marked method would be used to create tables, or connect to a database that would be used in a group of tests. For more information about BeforeClass see [Sequences]

  • ''Attributes:'' order, description, timeout, async, ui, user defined

...

– Used to specify a static method within a TestCase should run once, after all of the tests in a given test case are complete. In other words, when all of the tests in a test case are complete, before proceeding to the next testcase, this method executes. Conversely to a BeforeClass method AfterClass should preform cleanup on created tables, disconnect from databases, etc. For more information about AfterClass see [Sequences]

  • ''Attributes:'' order, description, timeout, async, ui, user defined

...

– Used to specify a method with a TestCase should be run before every [Test] in that class. For more information about Before see [Sequences]

  • ''Attributes:'' order, description, timeout, async, ui, user defined

...

– Used to specify a method with a TestCase should be run after every [Test] in that class. For more information about After see [Sequences]

  • ''Attributes:'' order, description, timeout, async, ui, user defined

...