一、环境准备
步骤:
1、下载并安装python3.X版本
2、下载pycharm编辑器工具
3、pycharm新建New Project,如下:

4、点击create之后,pycharm会自动为你创建虚拟环境,如下:

二、安装pytest所需要的支持库
2.1 安装需要的库
1、在项目根目录下新建一个“requirements.txt”,在里面写入所要安装的库,如下:

输入内容:
pytest
pytest-html
pytest-xdist
pytest-ordering
pytest-rerunfailures
allure<