命令行执行
#!/bin/bash
cd /home/autoTest/yi_api_test_profess/test_case
python3 -m pytest -vs test_order_profess.py -m cn --alluredir /root/.jenkins/workspace/yihome_autotest/target/allure-results --clean-alluredir
cd /home/autoTest/yi_api_test_profess/report
sleep 3
allure generate /root/.jenkins/workspace/yihome_autotest/target/allure-results/ -o allure-report --clean
cd /home/Mail_API
python3 mail_API.py
启动allure服务
#!/bin/bash
cd /home/report/
anywhere -version