Go to file
DESKTOP-FKONF7F\DELL d275016df9 20180807 2018-08-07 09:44:38 +08:00
.idea 1111 2018-07-18 19:56:33 +08:00
bin Initial commit 2018-07-18 19:49:36 +08:00
conf Initial commit 2018-07-18 19:49:36 +08:00
lib Initial commit 2018-07-18 19:49:36 +08:00
log Initial commit 2018-07-18 19:49:36 +08:00
page Initial commit 2018-07-18 19:49:36 +08:00
report Initial commit 2018-07-18 19:49:36 +08:00
test_case Initial commit 2018-07-18 19:49:36 +08:00
venv Initial commit 2018-07-18 19:49:36 +08:00
README.md 20180807 2018-08-07 09:44:38 +08:00

README.md

文件夹简介: 1、bin—>run.py主函数运行用例生成报告发送邮件 2、conf—>path.py测试用例、日志、报告等所有存放路径配置 3、conf—>setting.py环境配置邮件、日志、数据库等配置 4、lib—>page—>page.py各个case的具体实现 5、lib框架的基本工具 lib—>log.py管理日志 lib—>pyse.pyUI基本操作方法的二次封装单击、双击、捕捉元素、显式等待。。。 lib—>tool.py通用工能方法如图片处理 lib—>HTMLTestRunner.py测试报告 lib—>send_mail.py发送测试报告邮件 6、log—>test.log输出的日志 7、page—>page.py操作页面对于每个测试页面及页面元素的处理 8、report—>test_report.html生成的测试报告可在浏览器中查看 9、report—>picture—>error.jpg报错页面截图 10、test_case—>xxx.py组织测试用例

需要下载的东西: 1、python 2、python运行环境如pyCharm

写 case 时,根据自己的需求补充对应的文件: 1、conf—>setting.py根据自己的修改相关配置 2、page—>pyge.py根据需求添加要测试的页面及功能方法 3、test_case—>:根据需求组织用例 4、元素定位时按格式书写'方法=>'

运行用例 1、运行bin—>run.py