Testing environments

Component Testing for C

When drawing up a test script for a service, you usually need to write several test cases. It is likely that, except for a few variables, these scenarios will be very similar. You could avoid writing a whole series of similar scenarios by factorizing items that are common to all scenarios.

Furthermore, when a test harness is generated, there are often side-effects from one test to another, particularly as a result of unchecked modification of global variables.

To avoid these two problems and leverage your test script writing, the Test Script Language lets you define test environments introduced by the keyword ENVIRONMENT.

These test environments are effectively a set of default tests performed on one or more variables.