wangweimin a770544e81 test: add more test 5 سال پیش
..
assets ae2aa34387 add: basic input test 5 سال پیش
1.basic_output.py a770544e81 test: add more test 5 سال پیش
2.basic_input.py a770544e81 test: add more test 5 سال پیش
3.script_mode.py a770544e81 test: add more test 5 سال پیش
4.flask_backend.py a770544e81 test: add more test 5 سال پیش
5.coroutine_based_session.py a770544e81 test: add more test 5 سال پیش
6.flask_coroutine.py a770544e81 test: add more test 5 سال پیش
7.multiple_session_impliment.py a770544e81 test: add more test 5 سال پیش
8.flask_multiple_session_impliment.py a770544e81 test: add more test 5 سال پیش
Readme.md 597b42a1f6 test: use run_all.py script to run all test 5 سال پیش
run_all.py 0fe351c1e5 fix: workflows 5 سال پیش
run_all.sh a770544e81 test: add more test 5 سال پیش
template.py a770544e81 test: add more test 5 سال پیش
util.py a770544e81 test: add more test 5 سال پیش

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