📜  软件测试中错误播种和变异测试的区别

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

软件测试中错误播种和变异测试的区别

1. 错误播种:
错误播种可以定义为向程序代码添加错误的过程,该过程可用于评估系统软件测试部分后剩余错误的数量。该过程通过将错误添加到程序代码中来工作,人们可以在种子错误数量的帮助下尝试查找和估计代码库中实际错误的数量。在错误播种技术中,在程序代码中播种了预定数量的人为错误。该技术旨在检测错误,以找出真实错误和人为错误之间的比率。换言之,人为地在程序中引入一些人为错误,以确定程序中的剩余错误。

2. 突变测试:
突变测试是一种软件测试,用于设计新的软件测试并评估现有软件测试的质量。它也可以被描述为以小的方式重写源代码以消除源代码中的冗余的过程。它与以小方式修改程序代码有关。它侧重于帮助测试人员开发有效的测试或定位程序中使用的测试数据中的弱点。突变测试是一种非常强大的技术,可以发现使用传统测试技术等其他方法无法识别的隐藏缺陷。此外,在突变程序中创建的更改必须保持非常小,以免影响测试中程序的目标。这种测试也称为基于故障的测试

让我们看看这两者之间的区别:

Error SeedingMutation Testing
In the Error Seeding technique, no mutants(a small change in code) are created.For testing purposes, mutants(a small change in code) are created.
In this, the program code is tested within itself for finding the errors.In this, the mutants themselves are combined, compared for testing to detect errors introduced.
In the Error Seeding process, the errors are introduced.In this testing process, special methods are used for finding errors.
This technique requires less time as compared to other testing.This technique requires more time as compared to error seeding.
This technique is also cost-efficient.This technique can be expensive.
This technique is recommended for larger projects or software.This technique is recommended for smaller projects or software.
Here, the test cases are used for detecting errors that are used for testing.Here, the test cases are used for killing mutants are used for testing.
It is an error-oriented technique.It is also an error-oriented technique.