jekins添加全局凭据,创建任务

 

 创建任务

 

 

 

 

 

 中午12点    H/5 * * * 代表5分钟一次

cd /var/jenkins_home/workspace/autotest  代表进入jenkins从git拉取到的项目路径,这个项目路径下有个文件test_ruall.py

import pytest
pytest.main(["-v",f'--html=test.html'])
python3 -m pytest代表会通过pytest框架来执行autotest下的这个文件,这个文件会执行所有的用例,并且会在autotest下生成一个测试报告test.html

 

posted @ 2022-10-25 15:06  聚散浮沉  阅读(44)  评论(0)    收藏  举报