Interface Definition LanguageThe specification for service providers is usually written in an interface definition language (IDL). Since they are only for specification, the IDLs are simpler than a programming language. The IDL specification provides several pieces of information that are useful for testing purposes:
Traditional Pre- and Postconditions and InvariantsWe have already presented techniques for building tests from traditional pre- and postconditions, so we will not repeat them here. Distributed components should be designed not to know their location relative to other components; however, the components do have to know about an expanded set of possible errors. The postconditions are expanded to include exceptions for scenarios such as a service that isn't available from the specified provider, a provider that doesn't respond in time, and a requester that provides an invalid address. As with any postcondition, each clause, such as an invalid address, should be covered by a specific test case.
|