What test methods do you use for developing websites?

后端 未结 7 2166
滥情空心
滥情空心 2020-12-09 12:56

There are a lot of testing methods out there i.e. blackbox, graybox, unit, functional, regression etc.

Obviously, a project cannot take on all testing methods. So

7条回答
  •  误落风尘
    2020-12-09 13:40

    1. Unit Testing is used by developers to ensure unit code he wrote is correct. This is usually white box testing as well as some level of black box testing.

    2. Regression Testing is a functional testing used by testers to ensure that new changes in system has not broken any of existing functionality

    3. Functional testing is testing conducted on a complete, integrated system to evaluate the system's compliance with its specified requirements. Functionality testing falls within the scope of black box testing, and as such, should require no knowledge of the inner design of the code or logic

    .

    This Test-driven development and Feature Driven Development wiki articles will be of great help for you.

    For TDD you need to follow following process:

    1. Document feature (or use case) that you need to implement or enhance in your application that currently does not exists.
    2. Write set of functional test cases that can ensure above feature (from step 1) works. You may need to write multiple test cases for above feature to test all different possible work flows.
    3. Write code to implement above feature (from step 1).
    4. Test this code using test cases you had written earlier (in step 2). The actual
      testing can be manual but I would recommend to create automated tests if possible.
    5. If all test cases pass, you are good to go. If not, you need to update code (go back to step 3) so as to make the test case pass.

    TDD is to ensure that functional test cases which were written before you coded should work and does not matter how code was implemented.

提交回复
热议问题