首页 > 其他 > 详细

接口自动化测试jenkins配置

时间:2021-05-26 21:29:44      阅读:25      评论:0      收藏:0      [点我收藏+]

一、安装Jenkins后新建一个freestyle的项目工程

二、插件安装

  1、git plugin(git相关的插件安装)

  2、Groovy

  3、HTML Publisher plugin(报告输出)、

  注意:解决插件下载失败问题

  1、修改jenkins插件的下载源地址,点击manage jenkins,点击manage plugins;

  2、点击高级,更改升级站点下的url为https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json,点击提交,再点击立即获取(重要);

  3、可以重新再次下载插件,在插件管理中,点击可选插件,搜索框中输入想要的插件,点击直接安装。

三、全局配置

  1、Jenkins Location:Jenkins URL:http://localhost:8081/

  2、Global properties:Environment variables:Name:JAVA_TOOL_OPTIONS,Value:-Dfile.encoding=UTF8;        Name:LANG,Value:zh_CN.UTF-8。

  3、GitHub:名称:测试; API URL:https://api.github.com

四、项目配置

  1、Source Code Management

    Repository URL:https://github.com/sunwusunwu/miniparty.git

    Credentials:git 账号密码

  2、Build

    Excute Windows batch command:D:\Python3.7.1\python.exe run_suite.py(python安装位置+脚本运行入口文件)  

    Excute system Groovy script:System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "");解决报告显示异常

  3、Post-build Actions

    技术分享图片

 

   

 

接口自动化测试jenkins配置

原文:https://www.cnblogs.com/wusun/p/14814265.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!