defnngj / Pyautotest
Stars: ✭ 61
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Pyautotest
Pytest Selenium
Plugin for running Selenium with pytest
Stars: ✭ 246 (+303.28%)
Mutual labels: selenium, pytest
Seleniumbase
A Python framework that inspires developers to become better test automation engineers. 🧠💡
Stars: ✭ 2,520 (+4031.15%)
Mutual labels: selenium, pytest
python-appium-framework
Complete Python Appium framework in 360 degree
Stars: ✭ 43 (-29.51%)
Mutual labels: selenium, pytest
Python-Test-Automation-Framework
Test Automation Framework using selenium and Python
Stars: ✭ 41 (-32.79%)
Mutual labels: selenium, pytest
django-ecommerce-project
The Django-Ecommerce is an open-source project initiative and tutorial series built with Python and the Django Framework.
Stars: ✭ 182 (+198.36%)
Mutual labels: selenium, pytest
Python web framework
这是一个关于python的WebUI自动化测试的项目,之前用的是unittest测试框架,现在改成pytest测试框架,Python+PageObject+Pytest
Stars: ✭ 49 (-19.67%)
Mutual labels: selenium, pytest
Memedensity
CLI tool to let you know amount of memes in facebook feed.
Stars: ✭ 44 (-27.87%)
Mutual labels: selenium
Pytest Mock
Thin-wrapper around the mock package for easier use with pytest
Stars: ✭ 1,020 (+1572.13%)
Mutual labels: pytest
Wdio Video Reporter
Reporter for WebdriverIO v6 that makes videos of failed tests and has optional allure integration
Stars: ✭ 53 (-13.11%)
Mutual labels: selenium
Pytest Idapro
A pytest module for The Interactive Disassembler and IDAPython; Record and Replay IDAPython API, execute inside IDA or use mockups of IDAPython API.
Stars: ✭ 44 (-27.87%)
Mutual labels: pytest
Webwhatsappbot
Core to automatize whatsapp - working 11/2018
Stars: ✭ 59 (-3.28%)
Mutual labels: selenium
Seleniumlibrary
Web testing library for Robot Framework
Stars: ✭ 1,011 (+1557.38%)
Mutual labels: selenium
Edge Selenium Tools
An updated EdgeDriver implementation for Selenium 3 with newly-added support for Microsoft Edge (Chromium).
Stars: ✭ 41 (-32.79%)
Mutual labels: selenium
Dicomweb Client
Python client for DICOMweb RESTful services
Stars: ✭ 60 (-1.64%)
Mutual labels: pytest
Elementium
jQuery-style syntactic sugar for highly reliable automated browser testing in Python
Stars: ✭ 57 (-6.56%)
Mutual labels: selenium
pyautoTest Web UI 自动化项目
特点
- 全局配置浏览器启动/关闭。
- 测试用例运行失败自动截图。
- 测试用例运行失败可以重跑。
- 测试数据参数化。
安装
$ pip install -r requirements.txt
注:安装requirements.txt
指定依赖库的版本,这是经过测试的,有时候新的版本可会有错。
配置
在 config.py
文件配置
class RunConfig:
"""
运行测试配置
"""
# 配置浏览器驱动类型。
driver_type = "chrome"
# 配置运行的 URL
url = "https://www.baidu.com"
# 失败重跑次数
rerun = "3"
# 当达到最大失败数,停止执行
max_fail = "5"
# 运行测试用例的目录或文件
cases_path = "./test_dir/"
运行
不支持在编辑器(pycharm/ VS code ...)中运行,请在 cmd(windows)/终端(Linux)下执行。
$ python run_tests.py (回归模式,生成HTML报告)
$ python run_tests.py -m debug (调试模式)
警告提示
conftest.py
文件有一行在 pycharm 中提示错误:
from py.xml import html
- 原因
从源代码判断,py名称空间中的属性是动态创建的,这就是为什么静态分析工具pylint (pycharm)无法识别它们的原因:
apipkg.initpkg(__name__, attr={'_apipkg': apipkg}, exportdefs={
...
# small and mean xml/html generation
'xml' : {
'__doc__' : '._xmlgen:__doc__',
'html' : '._xmlgen:html',
'Tag' : '._xmlgen:Tag',
'raw' : '._xmlgen:raw',
'Namespace' : '._xmlgen:Namespace',
'escape' : '._xmlgen:escape',
},
})
所以,是pycharm 不够智能!你可以忽略这个错误。
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].