Software Testing Class

Model Based Testing: Testing Type You Must Know!

A graphical description of the behavior of the system is known as a Model. System’s behavior can be defined in terms of series of input sequences, actions, pre-conditions and post-conditions, output and flow of data starting from input to the output received. It should be practically understandable and can be reusable; shareable must have a precise description of the system under test. A model helps us to determine the system behavior under test. The Model Based testing is a lightweight formal method which is used to validate a system. Such testing method is applicable to both hardware and software testing. We use the system requirements in order to generate the efficient test cases with the help of a Model. Given below is an overview of a model based testing.

 

Modeling language:

One of the popularly known languages for modeling is Unified Modeling Language (UML). It is a homogenous general-purpose modeling language which includes a set of graphic notation techniques that are used to create visual models. These graphics notations are capable to describe the very complicated behavior of the system in a simplified manner.

 

Model Based Testing

 

The following are UML notations.

 

Types of Modeling Techniques:

The following are various modeling techniques which are frequently used for the generation of the test cases after describing different aspects of the system’s behavior.

 

 

State chart

 

Therefore, the Model Based Testing can be defined as an evolutionary approach for the creation of the efficient test cases from the business requirements. It helps to test all possible intermittent states which GUI or an application can land at a particular scenario based on the given set of inputs.

 

State Transition Diagram

 

The above example demonstrates a simple model that explains step by step approach to create a word document for an article along with possible actions related to each step.

 

Types of Modelling Based Testing (MBT):

In general, there are two types of Model based testing (MBT).

 

Model Based Testing (MBT) Advantages:

The following are the advantages of Model-Based Testing (MBT).

 

Model-Based Testing (MBT) Disadvantages

MBT (Model based testing) approach demands a high amount of investment as well as an effort for any organization which practices it. The following are the disadvantages of MBT.

 

Over to you:

MBT testing is used by many organizations due to highest testing coverage and low maintenance for long-term regression testing. Skilled testers in these organizations who are adopting MBT approach often builds the model in their mind which can be transformed on the paper or drawn into documents for visual purpose. It is beneficial for the testers in term of re-usability as well as readability of the designed model for detailed testing.

To our QA friends could you please share your experience about MBT testing in comments below.


If you are not a regular reader of this website then highly recommends you Sign up for our free email newsletter!! Sign up just providing your email address below:

Enter your email address:

Check email in your inbox for confirmation to get latest updates Software Testing for free.

Happy Testing!!!

Exit mobile version