Testing -  Object-oriented system testing

In an object-oriented system, four levels of testing can be identified:

 

  1. Testing the individual operations associated with objects - These are functions or procedures and the black-box and white-box approaches may be used.
  2. Testing individual object classes -  the principles of black- box testing is and unchanged but the notion of equivalence class must be extended to cover related operation sequences.
  3. Testing clusters of objects -  Strict top-down or bottom-up integration may bein appropriate to create groups of related objects. Other approaches such as scenario-based testing should be used.
  4. Testing the object-oriented system -  V & V against the system requirements specification is carried out in exactly the same way as for any other type of system.

 

 

Object Class Testing

When  testing objects, complete test coverage should include:

  1. The testing in isolation of all operations associated with the object.
  2. The setting and interrogation of all attributes associated with the object.
  3. The exercise of the object in all possible status. This means that all even that cause a state change in the object should be simulated.

 

 

Object Integration

In object-oriented systems, there is no obvious ‘top’ that provides for the integration nor is there a clear hierarchy of objects that can be created. Clusters, therefore, have to be created using knowledge of there operation and the features of the system that are implemented by these clusters. There are three possible approaches an integration testing that may be used.

 

  1. Use-case or scenario-based testing - Testing can be based on the scenario descriptions and object clusters created to support the use-cases that relate to the mode of use.
  2. Thread testing -  Thread testing is based on testing the system’s response to a particular input or set of input events.
  3. Object interaction testing - An intermediate level of integration testing can be based on identifying ‘ method- message’ paths. These are traced through a sequence of object interactions which stop when an object operation does not call on the services of any other object.

About Tec News

Tec News is optimized for learning Web Development, Programming, Database System and Tutorials, Articles, References for your development. This web help developers, learners learn these technologies easy and free.

Contact Us

If you have any suggestions or have any questions regarding our web please feel free to contact us.

info@tec-news.com        

https://www.tec-news.com