📜  静态测试与动态测试

📅  最后修改于: 2021-01-11 02:02:25             🧑  作者: Mango

静态测试与动态测试

静态测试

静态测试是测试,它在不执行代码的情况下检查应用程序。这是一个验证过程。一些基本活动是在静态测试下完成的,例如业务需求审查,设计审查,代码演练和测试文档审查。

静态测试是在白盒测试阶段执行的,在该阶段,程序员检查代码的每一行,然后再交给测试工程师。

静态测试可以手动完成,也可以借助工具在开发的早期阶段通过发现错误来提高应用程序的质量。这就是为什么它也称为验证过程。

在审阅过程中进行文档审阅,高层和底层设计审阅,代码演练。

动态测试

动态测试就是测试,它是在运行时环境中执行代码时完成的。这是一个验证过程,在其中执行功能测试[单元,集成和系统测试]和非功能测试[用户接受测试]。

我们将执行动态测试,以检查应用程序在安装期间或之后是否正常运行,并且没有任何错误。

静态测试和动态测试之间的区别

Static testing Dynamic testing
In static testing, we will check the code or the application without executing the code. In dynamic testing, we will check the code/application by executing the code.
Static testing includes activities like code Review, Walkthrough, etc. Dynamic testing includes activities like functional and non-functional testing such as UT (usability testing), IT (integration testing), ST (System testing) & UAT (user acceptance testing).
Static testing is a Verification Process. Dynamic testing is a Validation Process.
Static testing is used to prevent defects. Dynamic testing is used to find and fix the defects.
Static testing is a more cost-effective process. Dynamic testing is a less cost-effective process.
This type of testing can be performed before the compilation of code. Dynamic testing can be done only after the executables are prepared.
Under static testing, we can perform the statement coverage testing and structural testing. Equivalence Partitioning and Boundary Value Analysis technique are performed under dynamic testing.
It involves the checklist and process which has been followed by the test engineer. This type of testing required the test case for the execution of the code.