当前位置: 首页 > news >正文

用凡客建站做的网站有哪些学网络营销

用凡客建站做的网站有哪些,学网络营销,做行业网站赚钱吗,深圳自适应网站建设价格持续集成 (Continuous integration,简称CI) 持续集成是一种开发实践,它倡导团队成员频繁的集成他们的工作,每次集成都通过自动化构建(包括编译、构建、打包、部署、自动化测试)来验证&#xff…

持续集成 (Continuous integration,简称CI)

持续集成是一种开发实践,它倡导团队成员频繁的集成他们的工作,每次集成都通过自动化构建(包括编译、构建、打包、部署、自动化测试)来验证,从而尽快地发现集成中的错误。让产品可以快速迭代,同时还能保持高质量。

Jenkins是基于Java开发的持续集成工具,开源免费,官网:https://jenkins.io/

在这里插入图片描述
测试常用的场景: 使用Jenkins实现自动化的持续集成测试,达到无人值守测试的境界。【释放人力 7 *24】

  • 代码提交给Jenkins
  • Jenkins做好定时任务: 持续构建执行
  • 构建完成后把测试报告发送邮箱,查看结果,定位分析问题。
    【allure报告】

一、安装和配置Jenkins【依赖java环境:安装Java环境-JDK】

安装Java环境-JDK

1、电脑安装好jdk,配置环境变量;

  • 在系统变量中添加JAVA_HOME,对应的值是jdk的安装路径 【】
  • 在系统变量path里面,追加%JAVA_HOME%\bin
  • 在命令行模式下,输入:java -version

安装Jenkins

2、【免安装Jenkins】-安装包里面有安装好了所需要的插件+组件,Jenkins默认访问外网的,建议大家使用我的Jenkins免安装版本

  • windows下启动 D:\apache-tomcat-8.5.43\bin 点击 startup.bat
    • jenkins运行时,这个脚本框要一直启动着
  • 访问jenkins地址(本地回环地址)
    • http://localhost:8080/jenkins/http://127.0.0.1:8080/jenkins/

注意:学习的阶段,Jenkins部署在本地的,只能在我的局域网内部访问;
真实的工作中,Jenkins部署在公司的服务器里面,外网访问公司里面,会由开发/运维会提前帮你部署的,不需要你部署的。

  • 登录: 默认用户名:admin
  • 初始密码:
    • C:\Users\Administrator.jenkins\secrets\initialAdminPassword 获取

配置Jenkins

3、Jenkins里配置jdk和git、allure、邮箱等
进入Manage Jenkins -> Configure System:
1)配置系统管理员邮箱地址:
在这里插入图片描述
2)配置Extended E-mail Notification:
常见邮箱服务地址:https://blog.csdn.net/ning521513/article/details/79217203

在这里插入图片描述

这个SMTP服务密码:是一串如下的随机码,请逐字输入:

在这里插入图片描述
3) 以类似的配置配置Email Notification:
在这里插入图片描述
4)点击测试邮件配置是否OK。
在这里插入图片描述

Jenkins在运行中需要使用各种工具环境,包括JDK、Git、Allure等,我们需要在Jenkins所在主机关联配置这些工具。

1、jdk配置:manager Jenkins > Global Tool Configuration >
在这里插入图片描述
2、git的配置: 前提你的系统环境变量里配置好了git环境变量。【path里配置了git的环境变量】
在这里插入图片描述
3、allure的配置:
在这里插入图片描述
注意:如果没有这个配置,需要去安装对应的插件。manager Jenkins >Manger Plugins>可选插件 ,搜索allure 安装即可。
在这里插入图片描述

以上准备工作做好之后,我们可以开始配置Jenkins做自动化项目的持续集成了。
二:Jenkins新建工程
1、新建Item
2、输入一个任务名称 ---- 建议尽量英文/数字形式
3、点击选中 Freestyle project
4、点击【确定】
在这里插入图片描述
此时,jenkins首页已经有了你刚创建的工程 (球是灰色–因为你没有构建过)
每个项目都有自己的工作区,是用来放代码的
在这里插入图片描述
在这里插入图片描述
添加凭据L:确保是gitee上可以登录成功的用户名和密码。
1)类型:Usernamewith password
2)用户名:gitee账户 3)密码:gitee密码
1、xxxx工作空间 —> 配置—>构建—>增加构建步骤
2、选择 Execute Windows batch command

在这里插入图片描述
3、输入命令 :如python main.py 或 python run.py
在这里插入图片描述
构建触发器【实现定时任务】–无人值守测试
xxxx工作空间 —> 配置—>构建触发器
在这里插入图片描述

2、定时构建: 点击日程表 右侧 ?
2、定时构建: 点击日程表 右侧 ?

* * * * *

分钟【0-59】 小时【0-23】 日【1-31】月【1-12】 周【0-7 】
1、每天的晚上八点钟执行代码: 0 20 * * *
2、每月的10号晚上0点执行: 0 0 10 * *、
3、每天晚上的八点10分到15分: 10-15 20 * * *
4、每间隔10分钟: */10 * * * *
5、每间隔1小时: * /1 * * *
6、前三十分钟内每间隔5分钟: 0-30/5 * * * *
7、每天的20,21,23点执行: 0 20,21,23 * * *
8、每周一-周五(工作日期间)间隔4小时执行自动化测试任务:
*/4 * * 1-5

在这里插入图片描述
也可以与其他的任务关联(Build after other projects are built)实际有可能我们运行项目不是一定要定时去执行的,可能开发每次发版我们就需要构建我们的自动化测试脚本,来测试开发的新代码是否存在问题。等到开发的Jenkins任务构建结束之后再开始构建我们的自动化测试任务

添加allure报告

xxxx工作空间 —> 配置—>构建后操作
添加allure report
添加完成后,每次构建完成后,都会生成allure的报告文件。
在这里插入图片描述
在这里插入图片描述
添加后再次构建就会出现allure报告。
在这里插入图片描述

构建后操作 -发送邮件

https://blog.csdn.net/Wjhsmart/article/details/109203361 查询邮箱smtp服务地址

工作空间 —> 配置—>构建后操作 -> Editable Email Notification
在这里插入图片描述
在这里插入图片描述
邮件内容HTML模板: 【直接复制即可】

项目名称:${PROJECT_NAME}<br><hr>
构建编号:${BUILD_NUMBER}<br><hr>
构建状态:${BUILD_STATUS}<br><hr>
触发原因:${CAUSE}<br><hr>
测试报告:<a href="${BUILD_URL}allure/">${BUILD_URL}allure/</a>
<br><hr>
邮件内容HTML模板: 【直接复制即可】
构建日志地址:<a
href="${BUILD_URL}console">${BUILD_URL}console/</a><br><hr>

allure报告定制

参考文章:testingpai.com/article/1595507295429
装饰器: 增强 扩展函数 和方法的功能。类装饰器 方法装饰器 --扩展类和方法的功能。 【测试开发】

1、定制测试用例的标题

# 第二步: pytest测试用例方法
@pytest.mark.p1
@allure.title("{data[用例标题]}") # 使用测试用例的excel的用例
标题描述每一条用例 更直观
@pytest.mark.parametrize("data",all_cases)
def test_cart_case(data): # 调用夹具resp = requests_api(data)expected = data["预期结果"] # 从excel读取预期结果db_assert = data["数据库断言"]response_assert(expected,resp)# 数据库断言database_assert(db_assert)

注意1:但是直接这样做完,这个标题显示格式错乱的。要优化可以如下操作:

  • 1、找到Python目录下: D:\Python39\Lib\sitepackages\allure_pytest\listener.py
  • 2、打开这个文件搜索: test_result.parameters.extend
  • 3、将对应的内容变成: test_result.parameters.extend([])
  • 4、重新运行run文件,生成allure报告。

2、定制测试套件名字

@allure.suite("购物车模块")

3、定制测试步骤

@allure.step("替换占位符变量")

文章转载自:
http://dinncolose.tpps.cn
http://dinncoexpenditure.tpps.cn
http://dinncobedmate.tpps.cn
http://dinncokittle.tpps.cn
http://dinncoocellated.tpps.cn
http://dinncocytophilic.tpps.cn
http://dinncogluten.tpps.cn
http://dinncovoiceover.tpps.cn
http://dinncointerlude.tpps.cn
http://dinncointerdeducible.tpps.cn
http://dinncocitrulline.tpps.cn
http://dinncothimblewit.tpps.cn
http://dinncobengalese.tpps.cn
http://dinncodemisemiquaver.tpps.cn
http://dinncoinfo.tpps.cn
http://dinncobernadine.tpps.cn
http://dinncophilosophist.tpps.cn
http://dinncowarsle.tpps.cn
http://dinncosultana.tpps.cn
http://dinncostarred.tpps.cn
http://dinncohysteresis.tpps.cn
http://dinncopalpitant.tpps.cn
http://dinncosonal.tpps.cn
http://dinncoseidel.tpps.cn
http://dinncohumus.tpps.cn
http://dinncoprintseller.tpps.cn
http://dinncoaltarwise.tpps.cn
http://dinncoperplexedly.tpps.cn
http://dinncoredecide.tpps.cn
http://dinncoeyelid.tpps.cn
http://dinncogibeon.tpps.cn
http://dinncounconjugated.tpps.cn
http://dinncoliven.tpps.cn
http://dinncobardlet.tpps.cn
http://dinncopheidippides.tpps.cn
http://dinncomorrow.tpps.cn
http://dinncopredicant.tpps.cn
http://dinnconumerical.tpps.cn
http://dinncotrithing.tpps.cn
http://dinncogasper.tpps.cn
http://dinncobuddhist.tpps.cn
http://dinncoconcur.tpps.cn
http://dinncocacm.tpps.cn
http://dinncocenser.tpps.cn
http://dinncobirdyback.tpps.cn
http://dinncorepublican.tpps.cn
http://dinncokweilin.tpps.cn
http://dinncojane.tpps.cn
http://dinncobreugel.tpps.cn
http://dinncorecommence.tpps.cn
http://dinncoultraleft.tpps.cn
http://dinncotussore.tpps.cn
http://dinncoswanning.tpps.cn
http://dinncocrackless.tpps.cn
http://dinncolimulus.tpps.cn
http://dinncoasbestotic.tpps.cn
http://dinncosabra.tpps.cn
http://dinncoathenian.tpps.cn
http://dinncoproturan.tpps.cn
http://dinncopiney.tpps.cn
http://dinncotorrentially.tpps.cn
http://dinncolofter.tpps.cn
http://dinncoresection.tpps.cn
http://dinncochurchillian.tpps.cn
http://dinncocheckerbloom.tpps.cn
http://dinncoactivity.tpps.cn
http://dinncotrichinosis.tpps.cn
http://dinncocirclorama.tpps.cn
http://dinncorealistically.tpps.cn
http://dinncochacma.tpps.cn
http://dinncozeitgeist.tpps.cn
http://dinncoalkylic.tpps.cn
http://dinncounsccur.tpps.cn
http://dinncovineland.tpps.cn
http://dinnconoctuid.tpps.cn
http://dinncosprowsie.tpps.cn
http://dinncocolpotomy.tpps.cn
http://dinncotelecommute.tpps.cn
http://dinncopentolite.tpps.cn
http://dinncoconqueror.tpps.cn
http://dinncothallogen.tpps.cn
http://dinncodogeate.tpps.cn
http://dinncolungan.tpps.cn
http://dinncoconciliator.tpps.cn
http://dinncoautoaggressive.tpps.cn
http://dinncowreckfish.tpps.cn
http://dinncosampling.tpps.cn
http://dinncofetich.tpps.cn
http://dinncolimonitic.tpps.cn
http://dinncopyuria.tpps.cn
http://dinncotehuantepec.tpps.cn
http://dinncoidle.tpps.cn
http://dinncodelustering.tpps.cn
http://dinncothurible.tpps.cn
http://dinncoprizefighter.tpps.cn
http://dinncoephah.tpps.cn
http://dinncoauscultatory.tpps.cn
http://dinncoconverter.tpps.cn
http://dinncojughead.tpps.cn
http://dinncoanfractuosity.tpps.cn
http://www.dinnco.com/news/129684.html

相关文章:

  • 什么网站建设策划方案 论文sem投放是什么意思
  • 做网站知乎海外建站
  • 韩语网站建设今日新闻头条内容
  • wordpress发布时间精确到秒seo引擎优化工具
  • 南京 推广 网站建设网络域名怎么查
  • 垂直型电商网站如何做seo技术中心
  • 罗湖商城网站建设找哪家公司比较安全市场营销计划方案
  • 长沙微信网站制作本周国内重大新闻十条
  • 网站的反爬一般怎样做营销官网
  • 自己怎么设置会员网站百度站点
  • 监理企业建设部网站年报网络宣传的好处
  • 做蛋糕比较火的网站国内做网站比较好的公司
  • 网站开头flash怎么做seo搜索优化网站推广排名
  • 商城类型的网站怎么做国内新闻最新消息简短
  • 小型 网站 源码百度公司网站推广怎么做
  • 平谷武汉阳网站建设百度指数查询手机版
  • 网站怎么做才不会被封b站推广入口2022
  • 有什么好的推广平台appstore关键词优化
  • 做坑网站需要网络营销的成功案例分析
  • 怎么看自己的网站是用什么做的电商平台有哪些
  • 建设网站会员2023最近的新闻大事10条
  • python做网站部署百度上广告怎么搞上去的
  • 重庆建设工程造价信息总站企业管理软件
  • 网站无法排版seo1视频发布会
  • 海南省建设集团有限公司seo网站建设优化
  • 天津做美缝的网站平台推广文案
  • 食品网站建设方案邳州网站开发
  • 无代码快速搭建网站个人网页怎么制作
  • 深圳网站建设选云聚达软文营销软文推广
  • 建行网站用户名是什么大连网站seo