编写测试用例的用途

·         Organization. Even on small software projects it's possible to have many thousands of test cases. The cases may have been created by several testers over the course of several months or even years. Proper planning will organize them so that all the testers and other project team members can review and use them effectively.

大量的测试需要得到有效的组织和管理。

 

·         Repeatability. As you've learned, it's necessary over the course of a project to run the same tests several times to look for new bugs and to make sure that old ones have been fixed. Without proper planning, it would be impossible to know what test cases were last run and exactly how they were run so that you could repeat the exact tests.

为准确重现旧有的测试,需要恰当地组织和管理好测试用例。

 

·         Tracking. Similarly, you need to answer important questions over the course of a project. How many test cases did you plan to run? How many did you run on the last software release? How many passed and how many failed? Were any test cases skipped? And so on. If no planning went into the test cases, it would be impossible to answer these questions.

为了准确跟踪测试的全过程,需要准备好测试用例,并且组织好测试用例的执行。

 

·         Proof of testing (or not testing). In a few high-risk industries, the software test team must prove that it did indeed run the tests that it planned to run. It could actually be illegal, and dangerous, to release software in which a few test cases were skipped. Proper test case planning and tracking provides a means for proving what was tested.

组织编写测试用例,对测试用例的执行过程进行记录,可以用于证明测试是否进行了。

  

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
对于网上招聘系统的测试用例,可以根据不同的功能用途测试需求设计。常见的测试用例包括功能性测试、性能测试、可靠性用例、安全性用例、兼容性用例和接口性用例等。 1. 功能性测试用例: a. 用户注册:验证用户能否成功注册,并检查注册后的账号是否可以正常登录。 b. 职位发布:测试职位发布功能是否正常,包括验证职位信息是否准确保存,能否成功发布。 c. 简历上传:测试简历上传功能是否正常,包括验证简历文件是否能够被正确保存和浏览。 d. 搜索职位:测试搜索功能能否根据关键词准确返回相关职位信息。 e. 面试邀请:测试面试邀请功能是否正常,验证是否能够成功发送邀请通知。 2. 性能测试用例: a. 并发用户测试测试系统在高并发情况下的性能表现,验证系统是否能够正常处理大量用户请求。 b. 响应时间测试测试系统的响应时间,包括页面加载时间、搜索结果返回时间等指标。 c. 数据库性能测试测试系统在大量数据操作时的性能表现,验证数据库的读写速度和稳定性。 3. 安全性测试用例: a. 注入攻击测试测试系统是否容易受到SQL注入、XSS等安全攻击。 b. 权限控制测试测试系统是否能够正确限制用户的访问权限,验证用户只能访问自己有权限的信息。 c. 密码安全性测试测试系统对用户密码的存储和传输是否安全,验证密码的加密算法和策略是否合理。 通过编写这些测试用例,可以对网上招聘系统进行全面的测试,确保系统的功能正常、性能优良和安全可靠。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值