Versions Compared

Key

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

...

  • TestList(.lite): The main TAT file containing all the test suite details
  • Environment: Loads environment variables to be used by the test
  •  Prologue
    • General "set-up" script to be called before all tests
    • Per-test "set-up" script to be called before execution of the test
  • Epilogue
    • General "tear-down" script to be called at the end of all tests
    • Per-test "tear-down" script to be called at the end of the execution of the test
  • Test
    • Command or list of commands to be executed as part of a single test
    • Special commands that can be added to the test, such as sleep to give a delay between commands
    • Commands can be concatenated in a sequential order, or let them run in parallel (for sender/receivers for example)
  • Reference file
    • The tests can be of any kind, for instance unit tests, but also integration tests
    • A way to check the test results of any kind of test is to analyze their output
    • The reference file has all the output of each command run during a test; each command is stored in a different output level (1, 2, 3, etc.) depending on the order of execution
  • Grep and sed files
    • TestList.grep: Is a file where each line is filtered out from the output using grep regular expressions before comparing to reference file
    • TestList.sed: Is a file where each line is used to modify the output according to the sed regular expression before comparing to reference file

Quick TAT example with shunit