# 鼓励的行为

> Selenium项目的一些测试指南和建议.

URL: https://deploy-preview-2974--selenium-dev.netlify.app/zh-cn/documentation/test_practices/

---

关于"最佳实践"的注解：我们有意在本文档中避免使用"最佳实践"的说辞. 
没有一种方法可以适用于所有情况. 
我们更喜欢"指南和建议"的想法. 
我们鼓励您通读这些内容, 并仔细地确定哪种方法适用于您的特定环境. 

由于许多原因, 功能测试很难正确完成. 即便应用程序的状态, 复杂性, 依赖还不够让测试变得
足够复杂, 操作浏览器（特别是跨浏览器的兼容性测试）就已经使得写一个好的测试变成一种挑战. 

Selenium提供了一些工具使得功能测试用户更简单的操作浏览器, 但是这些工具并不能帮助你来写一个好的
架构的测试套件. 这章我们会针对怎么来做web页面的功能测试的自动化给出一些忠告, 指南和建议. 

这章记录了很多历年来成功的使用Selenium的用户的常用的软件设计模式.

---

Section pages:

- [测试自动化概述](https://deploy-preview-2974--selenium-dev.netlify.app/zh-cn/documentation/test_practices/overview/index.md)
- [设计模式和开发策略](https://deploy-preview-2974--selenium-dev.netlify.app/zh-cn/documentation/test_practices/design_strategies/index.md)
- [测试类型](https://deploy-preview-2974--selenium-dev.netlify.app/zh-cn/documentation/test_practices/testing_types/index.md)
- [指南和建议](https://deploy-preview-2974--selenium-dev.netlify.app/zh-cn/documentation/test_practices/encouraged/index.md): Selenium项目的一些测试指南和建议.
- [不鼓励的行为](https://deploy-preview-2974--selenium-dev.netlify.app/zh-cn/documentation/test_practices/discouraged/index.md): 使用Selenium自动化浏览器时应避免的事项.
