📜  面向对象测试和传统测试的区别

📅  最后修改于: 2022-05-13 01:57:00.367000             🧑  作者: Mango

面向对象测试和传统测试的区别

常规测试是在开发软件时使用瀑布生命周期时进行的软件测试过程。这种测试总是在软件开发生命周期的测试阶段进行,通常在开发阶段之后,然后进入实施阶段。在这个测试阶段,主要会进行三种测试,首先进行系统测试,然后进行集成测试,最后进行单元测试。该测试是一种算法技术,其中程序由算法运行。

面向对象测试是一种软件测试过程,它使用面向对象的范式(如封装、继承、多态性等)来测试软件。软件通常会经历许多级别的测试,从单元测试到系统或验收测试。通常,单元内测试、小“单元”或软件模块是单独测试的,重点是测试该模块的代码。在更高阶的测试(例如验收测试)中,测试整个系统(或子系统),重点是测试系统的功能或外部行为。这种测试方法是一种以数据为中心的技术,而不是算法。它是一种基于类的层次结构和明确定义的对象的技术。在这里,对象被定义为用于存储数据和发送和接收任何消息的实体或类的实例,并且可以将定义为具有共同属性的一组对象。

面向对象测试和传统测试的区别

 Object-Oriented TestingConventional Testing
1.In object-oriented testing, the module or subroutine, or procedure are considered as a unit.In Conventional Testing, a class is considered as a unit.
2.Here, a single operation of a procedure can be tested.Here, we cannot test a single operation in isolation but rather as part of a class.
3.It focuses on composition.It focuses on decomposition.
4.It uses an incremental approach in the testing process.It uses a sequential approach in the testing process.
5.This testing requires at every class level wherein each class is tested individually.This testing is following the waterfall life cycle in its testing process.
6.This testing has a hierarchical control structure.This testing does not have any hierarchical control structure.
7.Top-down or bottom-up integration is possible in this testing.Here, any ordering is not possible to follow.
8.In object-oriented testing, it has unit, integration, validation, and system testing as its levels of testing.Conventional Testing also has the same levels of testing but the approach is different.