自动化测试的三层封装
时间: 2023-10-02 15:04:49 浏览: 86
自动化测试的三层封装包括测试用例层、领域层和待测系统层。测试用例层用于表达应用程序的测试逻辑,即编写测试用例。领域层用业务领域术语来给待测系统建模,并封装HTTP请求、浏览器控制、结果解析逻辑等,为测试用例层提供一个接口。待测系统层是基于领域层构建的,包含待测系统的具体实现。这种分层结构可以使测试逻辑易于理解、维护和修改,避免了测试逻辑与无关代码混在一起的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【自动化框架】](https://blog.csdn.net/CSDN_mayan/article/details/126979758)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [自动化测试的分层结构](https://blog.csdn.net/zcsq1987/article/details/108710284)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文