WangWeimin 9e4bdabc08 fix percySnapshot issue in pin test hace 3 años
..
assets fb73577852 test: adjust test code hace 5 años
.percy.yml 5354ace934 test: set Selenium browser window size hace 5 años
1.basic.py 798b70cc27 maint: reformat code hace 4 años
10.aiohttp_multiple_session_impliment.py 798b70cc27 maint: reformat code hace 4 años
11.charts.py 26a3aa38a9 fix: bokeh show chart error hace 4 años
12.cors.py fe6254c55c test update hace 3 años
13.misc.py 8024298d41 update test case hace 4 años
14.django_multiple_session_impliment.py 798b70cc27 maint: reformat code hace 4 años
15.tornado_http_multiple_session.py 9ccad2062d fix: `tornado_http_multiple_session.py` test case cdn issue hace 4 años
16.path_deploy.py 757e9926f8 test: update `path_deploy` test case hace 4 años
17.fastapi_backend.py a988d03539 feat: support FastAPI and Starlette hace 4 años
18.pin_test.py 9e4bdabc08 fix percySnapshot issue in pin test hace 3 años
2.script_mode.py 798b70cc27 maint: reformat code hace 4 años
3.django_backend.py 798b70cc27 maint: reformat code hace 4 años
4.flask_backend.py 798b70cc27 maint: reformat code hace 4 años
5.coroutine_based_session.py 798b70cc27 maint: reformat code hace 4 años
6.flask_coroutine.py 798b70cc27 maint: reformat code hace 4 años
7.multiple_session_impliment.py 798b70cc27 maint: reformat code hace 4 años
8.flask_multiple_session_impliment.py 798b70cc27 maint: reformat code hace 4 años
9.aiohttp_backend.py 798b70cc27 maint: reformat code hace 4 años
Readme.md 597b42a1f6 test: use run_all.py script to run all test hace 5 años
output_diff.py 798b70cc27 maint: reformat code hace 4 años
run_all.sh f0d622a7f4 test: fix a case hace 5 años
template.py 8024298d41 update test case hace 4 años
util.py fe6254c55c test update hace 3 años

Readme.md

Test

使用 selenium 进行 + percy 进行测试。

测试的原理为使用selenium打开编写的PyWebIO测试服务,在页面上进行模拟操作, 将一些时刻的网页快照使用percy进行保存,percy可以比较不同提交之间的相同页面的区别。

编写测试用例

// todo

运行测试用例

pip3 install -e ".[dev]" 
npm install -D @percy/agent
export PERCY_TOKEN=[projects-token]

npx percy exec -- python3 1.basic_output.py auto