What Design Approaches Can Be Applied to Testing?

What Design Approaches Can Be Applied to Testing?
February 16 07:44 2016 Print This Article

It is well-known that a lot of various approaches and principles are applied in software testing field. These approaches may concern not only IT sphere. That is why curious and inquisitive employees are needed and highly required by QA company.

During mobile testing or web application testing, a specialist may apply various approaches to design, which have their own peculiarities and are applicable to different software checking types.

There Are Such Approaches to Design as:

  • the design-by-contract approach;
  • the defensive design.

According to the design-by-contract approach, the modules (methods) are defined on the basis of pre-conditions and post-conditions.

What Are the Core Factors of Design-By-Contact Approach?

  • Post-conditions. They show what option the module should perform, for example, open a file, send a message, print a page, etc.
  • Pre-conditions. They are more numerous. Pre-conditions describe the factors which ensure the fulfilment of the function. For instance, for opening the file, this exact file should be available – it should exist; the file should be named or have another information to be identified with; there should be the possibility for the file to be opened, etc.

The design-by-contract is the basis for testing-by-contract. Such checking type is performed only when pre-conditions are met.

The defensive design presupposes the acceptance of any input combination. In other words, defensive testing is executed under both normal and abnormal pre-conditions. This approach makes functional testing more complicated and time-consuming.

Related Posts:

About Article Author

view more articles
Nataliia Vasylyna
Nataliia Vasylyna

View More Articles

0 Comments

write a comment

No Comments Yet!

You can be the one to start a conversation.

Add a Comment

Your data will be safe! Your e-mail address will not be published. Also other data will not be shared with third person.
All fields are required.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.