Versions Compared

Key

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

...

 A Pre-Condition is like defining the step "0" for your tests. This is very useful in many use cases where you have to start by doing exactly the same thing. For example, if you are going to do something on a system, you most probably have to authenticate first, right? But sometimes, you have to do several things  (e.g., restore DB, authenticate) before going through your Test steps. And each of those things may be done and used independently, i.e., some Tests may require just restoring the DB, another may require just to authentication, and others may require both things or more.  

 

Table of Contents

Pre-Condition Types

Pre-Conditions Types must be the same Type Kind of the Test they are associated with, so they can be Manual or Automated.

  • Manual Type Steps Pre-Conditions: Conditions to be executed by the user before starting the Associated Test.
  • Automated[Generic] Type Unstructured kind Pre-Conditions: Conditions to be executed by the external tool before starting the Associated Test.
  • Automated[Cucumber] Type PreGherkin kind Pre-Conditions: Cucumber Background Gherkin clauses to be executed before starting the associated Scenarios.

...