网站测试用例示例格式
对于Web开发,
您可以发送一些示例测试用例xls报告,
或者有什么好的开源请参考,
有没有免费的PHP Web开发自动化测试,
谢谢
For web development ,
Can u send some sample test case xls report ,
Or is there any good open source plz refer ,
Is there any free automated testing for php web development ,
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有人可以为您的网站提供测试用例,因为每个项目/应用程序/网站都是独一无二的,并且应该有自己独特的测试用例。测试中没有“对”或“错”之分。测试是一门艺术,您应该选择什么以及它对您的效果如何在很大程度上取决于项目与项目的不同以及您的经验。
但作为一名专业的测试专家,我的建议是,将自动测试和手动测试健康地结合起来。
(下面的示例采用 PHP 语言,但您可以轻松找到适合您所使用的语言/框架的正确示例)
自动化测试
单元测试
使用 PHPUnit 测试您的类、函数以及它们之间的交互。
http://phpunit.sourceforge.net/
自动化功能测试
如果可能的话,您应该自动化大量的功能测试。一些框架作品内置了功能测试。否则你必须使用工具来完成它。如果您正在开发网站/应用程序,您可能需要看看 Selenium。
http://www.webinade.com/ web-development/function-testing-in-php-using-selenium-ide
持续集成
使用 CI 确保每次团队中有人提交项目时所有自动化测试都会运行。
http://martinfowler.com/articles/continuousIntegration.html
手动测试
尽管我很喜欢自动化测试,但恕我直言,它并不能替代手动测试。主要原因是自动化设备只能执行被告知的操作,并且只能验证其被告知的内容以视为通过/失败。人类可以利用其智能来发现错误并提出测试其他事物时出现的问题。
ET 是一种成本非常低且有效的发现项目缺陷的方法。它利用了人类的智慧,并且比我所知道的任何其他测试技术都更能教会测试人员/开发人员有关该项目的信息。针对测试环境中部署的每个功能进行 ET 会话,不仅是快速发现问题的有效方法,也是一种学习和乐趣的好方法!
http://www.satisfice.com/articles/et-article.pdf
这个答案(几乎)与我对另一个问题给出的答案相同。查看该问题,因为它还有其他一些可能对您有帮助的好答案。
我们如何决定可以使用哪种测试方法?< /a>
Nobody can give you test cases for your web site since every project/application/website is unique and deserves their own unique test cases. There is no "right" or "wrong" in testing. Testing is an art and what you should choose and how well it works out for you depends a lot from project to project and your experience.
But as a professional Test Expert my suggestion is that you have a healthy mix of automated and manual testing.
(Examples below are in PHP but you can easily find the correct examples for what ever langauge/framework you are using)
AUTOMATED TESTING
Unit Testing
Use PHPUnit to test your classes, functions and interaction between them.
http://phpunit.sourceforge.net/
Automated Functional Testing
If it's possible you should automate a lot of the functional testing. Some frame works have functional testing built into them. Otherwise you have to use a tool for it. If you are developing web sites/applications you might want to look at Selenium.
http://www.webinade.com/web-development/functional-testing-in-php-using-selenium-ide
Continuous Integration
Use CI to make sure all your automated tests run every time someone in your team makes a commit to the project.
http://martinfowler.com/articles/continuousIntegration.html
MANUAL TESTING
As much as I love automated testing it is, IMHO, not a substitute for manual testing. The main reason being that an automated can only do what it is told and only verify what it has been informed to view as pass/fail. A human can use it's intelligence to find faults and raise questions that appear while testing something else.
ET is a very low cost and effective way to find defects in a project. It take advantage of the intelligence of a human being and a teaches the testers/developers more about the project than any other testing technique i know of. Doing an ET session aimed at every feature deployed in the test environment is not only an effective way to find problems fast, but also a good way to learn and fun!
http://www.satisfice.com/articles/et-article.pdf
This answer is (almost) identical to one that I gave to another question. Check out that question since it had some other good answers that might help you.
How can we decide which testing method can be used?
PHP 自动化测试工具:
Automated testing tools for PHP: