一、pytest之parameterize参数化
-
如果要入多个参数就需要列表套列表[["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""]]
二、安装配置allure
- 1、第一步打开pycharm导包,命令:pip install allure-pytest
- 2、第二步下载一个allure压缩包解压至software目录下
- 3、因为allure是Java写的,所以需要JDK环境变量,先检查一下win+r打开命令行输入:Java,javac
- 4、Java环境没问题后,去我的电脑配置allure的环境变量,把allure的安装目录复制到系统变量的path路径里面,最后再打开命令行窗口验证一下输入:allure
- 5、重启pycharm