{"repo":"lucas3414/python_web_framework","free":true,"listed":false,"github":"https://github.com/lucas3414/python_web_framework","clone":"git clone https://github.com/lucas3414/python_web_framework.git","description":"这是一个关于python的WebUI自动化测试的项目，之前用的是unittest测试框架，现在改成pytest测试框架，Python+PageObject+Pytest","language":"Python","stars":168,"topics":["python","selenium","webdriver","pytest","pageobjects"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"python web framework 这是一个关于python的WebUI自动化测试的项目，之前用的是unittest测试框架，现在改成pytest测试框架，Python+PageObject+Pytest 实现页面元素、页面对象及业务、测试数据分离 项目结构：说明 . -- assets -- style.css -- cases --------------------- 测试用例模块 -- conftest.py -- init .py -- logincases --------------------- 测试模块1 -- conftest.py -- init .py -- test login.py -- usercases --------------------- 测试模块2 -- conftest.py -- init .py -- test user add.py -- Common --------------------- 配置和功能函数 -- config -- config.ini --------------------- 配置文件， 日志、报告、截图的目录等 -- init .py -- plugs --------------------- 功能函数 -- basepage.py --------------------- 封装的 webdriver Api (后续可以自己添加，目前只是封装的少许) -- get config.py --------------------- 获取配置文件方法 -- get log.py --------------------- 日志的配置方法 -- init .py -- Locators --------------------- 测试页面定位 -- init .py -- LoginLocators --------------------- 登录模块的页面对象定位 -- init .py -- login locators.py -- UserLocators --------------------- 用户模块的页面对象定位 -- init .py -- user locators.py -- OutPuts --------------------- 输出 -- image --------------------- 截图 -- log --------------------- 日志 -- reports --------------------- 报告 -- report.html -- PageObjects ---------------------- 业务流程 -- IndexPage ---------------------- 主页模块的页面对象 -- index page.py -- init .py -- init .py -- LoginPage ---------------------- 登录模块的页面对象 -- init .py -- login page.py -- UserPage ---------------------- 用户模块的页面对象 -- init .py -- user page.py -- README.md -- TestDatas ---------------------- 测试数据 -- GobalDatas ---------------------- 全局的测试数据 -- gobal datas.py ","default_branch":null,"files":null,"tree":[],"storefront":"/r/lucas3414","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lucas3414/python_web_framework/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}