What Design Approaches Can Be Applied to Testing?
by Nataliia Vasylyna | February 16, 2016 7:44 am
It is well-known that a lot of various approaches and principles are applied in software testing[1] 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[2], 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[3] more complicated and time-consuming.
Learn more from QATestLab
Related Posts:
- What are Approaches for Manual and Automated Testing?[4]
Endnotes:- software testing: https://qatestlab.com/services/We-Are-Professionals-in/software-product-testing/
- web application testing: https://qatestlab.com/expertise/types-of-applications/web-application-testing/
- functional testing: https://qatestlab.com/services/We-Are-Professionals-in/functional-testing/
- What are Approaches for Manual and Automated Testing?: https://blog.qatestlab.com/2014/11/24/what-is-the-difference-between-approaches-to-manual-and-automated-testing/
Source URL: https://blog.qatestlab.com/2016/02/16/applied-design-approaches/
Copyright ©2024 QATestLab Blog unless otherwise noted.