Software testing is a wider field, which involves the testing of a software application, at various different levels, such as at unit level, integration level, system level, etc. Early testing of a software product ensures the less likelihood of defects at higher levels and ultimately in the finally developed product.
Code testing may be seen as an example of early stage of testing, where the programming code is examined or analyzed, either dynamically or statically. Both of these methods are very much different to each other as static analysis involves the examination of a code without touching and executing it, whereas dynamic analysis includes the execution of the code, to evaluate it.
A properly set up and well equipped test environment ensures the good productivity of the testing process. Thus, we are listing out some of the important elements, key aspects in the checklist format, which may be considered and used, while setting up the test environment.
|Static Analysis||Dynamic Analysis|
|1. Code is studied, reviewed and analysed to reveal errors (if any) in it.||1. Code is made to execute, so as to locate out the bugs in it.|
|2. Performs in non-runtime environment.||2. Used to evaluate the run-time behaviour of a program, in its operational mode.|
|3. A way of performing White Box testing.||3. May be seen as a black box testing technique.|
|4. Useful in revealing issues, like memory leaks, buffer overflow, concurrency issues, Boundary value violation, etc.||4. Reveals outs the error(s) in the code, which is considered under dynamic analysis|
|5.Considers all path of execution.||5.Only consider one path of execution, at a particular instant of time.|
|6. It demands large amount of time and resources.||6. Compare to static analysis, it requires less time and resources.|
|7. May be seen as a preventive measure.||7. It acts like a corrective action.|
|8. Code verification process||8. Validates the code.|
|9. Provides more false picture.||9. It ensure less false picture than the static analysis.|
|10. Needs frequent interaction, collaboration, meetings, etc.||10. Does not requires collaboration, meetings, etc.|
|11. Static analysis is followed by the Dynamic analysis.||11. Dynamic analysis of a code is preferred after its static.|
|12. Automation is preferred.||12. May be carried out, either manually or with the help of tools.|