10 2020 档案
allure生成html报告
摘要:1、pytest -m smoke --alluredir=allure_reports\ 2、allure generate ./allure_reports/ -o ./allure_reports/html/ --clean 3、打开 :allure open allure_reports/h 阅读全文
posted @ 2020-10-28 10:42 果糖小块 阅读(1602) 评论(0) 推荐(0)
jenkins中,执行pytest命令时,收集到了测试用例,但是失败
摘要:报错时,构建: 1、execute windows batch command: e: cd 路径 pytest -m smoke 2、修改后: e:cd 路径(或call)pytest -m smoke exit 0 jenkins执行命令,会把命令生成一个批处理文件执行,当pytest命令对于批 阅读全文
posted @ 2020-10-28 09:39 果糖小块 阅读(966) 评论(0) 推荐(0)
Jenkins构建Python项目提示:'python' /'pytest'不是内部或外部命令,也不是可运行的程序
摘要:原因是要在jenkins配置本地环境变量 解决方法: 1、 2、 3、添加python.exe 和pytest.exe的值 阅读全文
posted @ 2020-10-28 08:45 果糖小块 阅读(1030) 评论(0) 推荐(0)
【selenium】自动化测试中,下拉选择值的定位:js的使用方法
摘要:在自动化测试中经常会遇到使用selenium方法定位元素点击操作失败的情况,例如,我们想实现在浏览器输入http://www.baidu.com,进入百度首页后,鼠标悬停在“更多产品”上,点击“全部产品” https://www.cnblogs.com/ffrs/archive/2004/01/13 阅读全文
posted @ 2020-10-16 20:33 果糖小块 阅读(516) 评论(0) 推荐(0)