作者:离开一场爱的风雪 | 来源:互联网 | 2023-09-06 18:02
一:创建项目登陆后,左边栏选择【 NewItem 】输入任务名称(使用英文) 选择【Freestyleproject】创建虚拟环境,官方文档:https:docs.python
一:创建项目
登陆后,左边栏选择 【 New Item 】 ----> 输入任务名称(使用英文) ----> 选择 【 Freestyle project 】
![技术分享图片](https://img6.php1.cn/3cdc5/9b88/2be/23d9b8ab557f02c1.png)
![技术分享图片](https://img6.php1.cn/3cdc5/9b88/2be/817fe1bd9120c2ba.png)
![技术分享图片](https://img6.php1.cn/3cdc5/9b88/2be/3c0c97841629fb68.png)
![技术分享图片](https://img6.php1.cn/3cdc5/9b88/2be/0ebb3ae4399de381.png)
![技术分享图片](https://img6.php1.cn/3cdc5/9b88/2be/9cbd5c147e474e0e.png)
![技术分享图片](https://img6.php1.cn/3cdc5/9b88/2be/5000d39c073d0950.png)
创建虚拟环境,官方文档:https://docs.python.org/zh-cn/3/tutorial/venv.html
# Windows 执行命令
python -m venv venv
venv\Scripts\activate.bat && pip install -r requirements.txt && pytest testcase -s -v
# Mac 执行指令
python3 -m venv venv
venv/bin/activate && pip3 install -r requirements.txt && pytest testcase -s -v
企业微信通知(可根据实际情况,确实是否增加):
安装插件 :Qy Wechat Notification
企业微信群中添加机器人,获取Webhook地址:
![技术分享图片](https://img6.php1.cn/3cdc5/9b88/2be/d99fa84c1dad8a87.png)
![技术分享图片](https://img6.php1.cn/3cdc5/9b88/2be/7587e148a943c0e8.png)
allure 测试报告:
参考 allure 测试报告工具配置 :https://www.cnblogs.com/Z-Queen/p/14578228.html