您使用哪些测试方法来开发网站? [英] What test methods do you use for developing websites?

查看:35
本文介绍了您使用哪些测试方法来开发网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有很多测试方法,即blackboxgraybox, 单元功能性回归

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 I asked this question to gain an idea of what test methods to use and why should I use them. You can answer in the following format:

测试方法 - 你在什么地方使用它

Test Method - what you use it on

例如

  1. 单元测试 - 我将它用于...(等等,等等)
  2. 回归测试 - 我用它来......(等等,等等)

我被要求从事TDD,当然我必须研究测试方法.但是它们太多了,我不知道该用什么(因为它们听起来都很有用).

I was asked to engage into TDD and of course I had to research testing methods. But there is a whole plethora of them and I don't know what to use (because they all sound useful).

推荐答案

1.开发人员使用单元测试来确保他编写的单元代码是正确的.这通常是白盒测试以及某种程度的黑盒测试.

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.回归测试是测试人员用来确保系统中的新变化没有破坏任何现有功能的功能测试

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.功能测试是在一个完整的、集成的系统上进行的测试,以评估系统是否符合其指定的要求.功能测试属于黑盒测试的范围,因此不需要了解代码或逻辑的内部设计

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

.

这个测试驱动开发功能驱动开发 wiki 文章将对您有很大帮助.

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

对于 TDD,您需要遵循以下流程:

  1. 文档功能(或用例)您需要实施或增强在您的应用程序中当前不存在.
  2. 编写功能测试集可以确保上述情况的情况功能(从第 1 步开始)有效.你可能需要编写多个测试用例以上功能测试所有不同可能的工作流程.
  3. 编写代码来实现上述功能(从第 1 步开始).
  4. 使用您的测试用例测试此代码之前写过(在第 2 步中).实际
    测试可以是手动的,但我建议创建自动化测试如果可能的话.
  5. 如果所有测试用例都通过了,那么您很高兴走.如果不是,则需要更新代码(返回第 3 步)从而使测试用例通过.
  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 是为了确保在您编码之前编写的功能测试用例应该可以工作,而不管代码是如何实现的.

这篇关于您使用哪些测试方法来开发网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆