Testing in OO

Testing in OO

Let’s develop the testing! you know? one of the most important concepts that you have to learn in your life as software engineer is know how to test in object oriented, and gess what? im going to tell you all you have to know about testing in OO lets slap you in the face!.

Image by Dmb from Gephy

The shift from traditional to object-oriented environment involves looking at and reconsidering old strategies and methods for testing the software. The traditional programming consists of procedures operating on data, while the object-oriented paradigm focuses on objects that are instances of classes. In object-oriented (OO) paradigm, software engineers identify and specify the objects and services provided by each object. In addition, interaction of any two objects and constraints on each identified object are also determined. The main advantages of OO paradigm include increased reusability, reliability, interoperability, and extendibility.

With the adoption of OO paradigm, almost all the phases of software development have changed in their approach, environments, and tools. Though OO paradigm helps make the designing and development of software easier, it may pose new kind of problems. Thus, testing of software developed using OO paradigm has to deal with the new problems also. Note that object-oriented testing can be used to test the object-oriented software as well as conventional software.

Developing Test Cases in Object-oriented Testing

The methods used to design test cases in OO testing are based on the conventional methods. However, these test cases should encompass special features so that they can be used in the object-oriented environment. The points that should be noted while developing test cases in an object-oriented environment are listed below.

  1. It should be explicitly specified with each test case which class it should test.
  2. Purpose of each test case should be mentioned.
  3. External conditions that should exist while conducting a test should be clearly stated with each test case.
  4. All the states of object that is to be tested should be specified.
  5. Instructions to understand and conduct the test cases should be provided with each test case.
  • Whenever large scale systems are designed, object oriented testing is done rather than the conventional testing strategies as the concepts of object oriented programming is way different from that of conventional ones.
  • The whole object oriented testing revolves around the fundamental entity known as “class”.
  • With the help of “class” concept, larger systems can be divided into small well defined units which may then be implemented separately.
  • The object oriented testing can be classified as like conventional systems. These are called as the levels for testing.

Object Oriented Testing : Levels/Techniques

  • The levels of object oriented testing can be broadly classified into three categories. These are:
This image describes the various levels and techniques of object oriented testing in software testing.

Object Oriented Testing : Techniques

1. Class Testing

  • Class testing is also known as unit testing.
  • In class testing, every individual classes are tested for errors or bugs.
  • Class testing ensures that the attributes of class are implemented as per the design and specifications. Also, it checks whether the interfaces and methods are error free of not.

 2. Inter-Class Testing

  • It is also called as integration or subsystem testing.
  • Inter class testing involves the testing of modules or sub-systems and their coordination with other modules.

 3. System Testing

  • In system testing, the system is tested as whole and primarily functional testing techniques are used to test the system. Non-functional requirements like performance, reliability, usability and test-ability are also tested.

Lest became in pros

References:

http://ecomputernotes.com/software-engineering/object-oriented-testing

Object Oriented Testing

Credits at the outstanding Image

Zetong Li

from Pexels

Deja un comentario