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

58招聘网站官网近几天发生的新闻大事

58招聘网站官网,近几天发生的新闻大事,毕设做网站,电子商务网站商品怎么来一、jmeter 相信大家对jmeter并不陌生哈,如果没有安装和配置环境的小伙伴,可以直接找到我哈,我发给你。 二、ant 安装ant 第一步:下载ant http://ant.apache.org/ 第二步:配置ant window中设置ant环境变量&…

一、jmeter

相信大家对jmeter并不陌生哈,如果没有安装和配置环境的小伙伴,可以直接找到我哈,我发给你。

二、ant

安装ant

第一步:下载ant  http://ant.apache.org/

第二步:配置ant

window中设置ant环境变量:

以下是我电脑ant配置

ANT_HOME    C:/ apache-ant-1.9.7

path             C:/ apache-ant-1.9.7/bin

classpath      C:/apache-ant-1.9.7/lib

cmd打开 输入ant执行

说明ant安装成功!因为ant默认运行build.xml文件,build.xml 需要我们自己建立,等哈后面 我们再说这个

为了确定真的安装成功了  我们执行ant -version

ok了,我们继续往后面扯

三、将\apache-jmeter-3.2\extras下面的ant-jmeter-1.1.1的jar包到ant的lib目录,如图所示:

 

 四、建立build.xml

 

从上图可以知道  我们创建了一个文件夹demo,然后把build.xml 丢在它下面了

<?xml version="1.0" encoding="UTF-8"?><project name="ant-jmeter-test" default="run" basedir="."><tstamp><format property="time" pattern="yyyyMMddhhmm" /></tstamp><!-- 需要改成自己本地的 Jmeter 目录-->  <property name="jmeter.home" value="D:\study\apache-jmeter-3.2" /><!-- jmeter生成jtl格式的结果报告的路径--> <property name="jmeter.result.jtl.dir" value="D:\study\apache-jmeter-3.2\demo\report\jtl" /><!-- jmeter生成html格式的结果报告的路径--><property name="jmeter.result.html.dir" value="D:\study\apache-jmeter-3.2\demo\report\html" /><!-- 生成的报告的前缀-->  <property name="ReportName" value="TestReport" /><property name="jmeter.result.jtlName" value="${jmeter.result.jtl.dir}/${ReportName}${time}.jtl" /><property name="jmeter.result.htmlName" value="${jmeter.result.html.dir}/${ReportName}${time}.html" /><target name="run"><antcall target="test" /><antcall target="report" /></target><target name="test"><taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask" /><jmeter jmeterhome="${jmeter.home}" resultlog="${jmeter.result.jtlName}"><!-- 声明要运行的脚本。"*.jmx"指包含此目录下的所有jmeter脚本--><testplans dir="D:\study\apache-jmeter-3.2\demo" includes="*.jmx" /><property name="jmeter.save.saveservice.output_format" value="xml"/></jmeter></target><path id="xslt.classpath"><fileset dir="${jmeter.home}/lib" includes="xalan*.jar"/><fileset dir="${jmeter.home}/lib" includes="serializer*.jar"/></path> <target name="report"><tstamp><format property="report.datestamp" pattern="yyyy/MM/dd HH:mm"/></tstamp><xslt classpathref="xslt.classpath"force="true"in="${jmeter.result.jtlName}"out="${jmeter.result.htmlName}"style="${jmeter.home}/extras/jmeter-results-report-loadtest.xsl"><param name="dateReport" expression="${report.datestamp}"/></xslt><!-- 因为上面生成报告的时候,不会将相关的图片也一起拷贝至目标目录,所以,需要手动拷贝 --> <copy todir="${jmeter.result.html.dir}"><fileset dir="${jmeter.home}/extras"><include name="collapse.png" /><include name="expand.png" /></fileset></copy></target>
</project>

上图注释已经很清晰了,只需要配置下jmeter路径以及报告样式就可以使用我这个build.xml文件了

五、创建一个jmx文件 然后运行下

进入到该目录,并cmd执行ant

 

上图的BUILD SUCCESSFUL 证明已经成功了,而且报告在report/html下面

现在我们打开报告看看

报告是不是很好看,其实就是\apache-jmeter-3.2\extras这个目录下jmeter-results-report-loadtest.xsl这个样式生成的报告

六、集成jenkins

废话不多说 ,启动jenkins

1、java -jar jenkins.war (自己去下载jenkins.war)  也可以在群里问我要

2、下载jenkins.tar 并解压 将解压之后的文件丢在tomcat下面的webapps下面     

 双击C:\apache-tomcat-7.0.72\bin下面的startup.bat 启动  

这就证明jenkins已经启动了

然后随意打开一个浏览器 输入:http://localhost:8080/jenkins  默认端口号为8080

我自己改成8888的,你们随意

创建一个项目。

 选择第一个自由风格,然后点击OK按钮

 然后配置ant,增加build路径

 

点击保存之后,我们继续配置测试报告

我们需要下载一个插件Public HTML reports

系统管理----》管理插件----》可选插件   输入Public HTML reports 进行查询并进行安装

接下来继续配置报告

点击增加构建后操作步骤  并点击Public HTML reports

并点击保存按钮  好了  现在我们报告也配置好了 

我们现在jenkins构建下吧

 点击之后 出现

证明jenkins在构建了

 

好了到了这一步 已经构建成功了,Success ! 

我们在jenkins下面看下报告吧

 

 

报告已经ok了

其实文章篇幅很长,配置很简单

最后可以用jenkins定时执行我们的jmeter脚本,也就是批量执行jmeter脚本了

最后感谢每一个认真阅读我文章的人,礼尚往来总是要有的,虽然不是什么很值钱的东西,如果你用得到的话可以直接拿走:

文档获取方式:

这份文档,对于想从事【软件测试】的朋友来说应该是最全面最完整的备战仓库,这个仓库也陪伴我走过了最艰难的路程,希望也能帮助到你!

以上均可以分享,只需要你搜索vx公众号:程序员雨果,即可免费领取


文章转载自:
http://gluttony.fcxt.cn
http://sufficiently.fcxt.cn
http://peppery.fcxt.cn
http://startler.fcxt.cn
http://psophometer.fcxt.cn
http://cenogenesis.fcxt.cn
http://meterstick.fcxt.cn
http://emparadise.fcxt.cn
http://success.fcxt.cn
http://moorcock.fcxt.cn
http://glossopharyngeal.fcxt.cn
http://kineticism.fcxt.cn
http://chadian.fcxt.cn
http://megalomaniac.fcxt.cn
http://ivorist.fcxt.cn
http://irc.fcxt.cn
http://complemental.fcxt.cn
http://eva.fcxt.cn
http://operetta.fcxt.cn
http://ichthyic.fcxt.cn
http://endosome.fcxt.cn
http://capriccioso.fcxt.cn
http://egomaniacal.fcxt.cn
http://soothingly.fcxt.cn
http://carnarvonshire.fcxt.cn
http://eat.fcxt.cn
http://enterohepatitis.fcxt.cn
http://skytroops.fcxt.cn
http://trinocular.fcxt.cn
http://aleak.fcxt.cn
http://estovers.fcxt.cn
http://pathogenetic.fcxt.cn
http://dismast.fcxt.cn
http://typhlology.fcxt.cn
http://sleugh.fcxt.cn
http://melitriose.fcxt.cn
http://daintily.fcxt.cn
http://estoppel.fcxt.cn
http://insulator.fcxt.cn
http://prig.fcxt.cn
http://remittee.fcxt.cn
http://rattlebladder.fcxt.cn
http://alemannic.fcxt.cn
http://aleak.fcxt.cn
http://trainset.fcxt.cn
http://semester.fcxt.cn
http://perisarc.fcxt.cn
http://luau.fcxt.cn
http://wide.fcxt.cn
http://gelati.fcxt.cn
http://voltaic.fcxt.cn
http://bow.fcxt.cn
http://sunfish.fcxt.cn
http://guggle.fcxt.cn
http://adige.fcxt.cn
http://fishgig.fcxt.cn
http://conspiratorial.fcxt.cn
http://frame.fcxt.cn
http://dispassionately.fcxt.cn
http://haemoglobin.fcxt.cn
http://shrimp.fcxt.cn
http://unconcerned.fcxt.cn
http://selling.fcxt.cn
http://lombard.fcxt.cn
http://defalcator.fcxt.cn
http://rough.fcxt.cn
http://line.fcxt.cn
http://englisher.fcxt.cn
http://limnaeid.fcxt.cn
http://croma.fcxt.cn
http://keir.fcxt.cn
http://sukhumi.fcxt.cn
http://controllable.fcxt.cn
http://merovingian.fcxt.cn
http://zootechnical.fcxt.cn
http://arpeggiation.fcxt.cn
http://fletch.fcxt.cn
http://parasitism.fcxt.cn
http://atlantosaurus.fcxt.cn
http://rubbish.fcxt.cn
http://mourn.fcxt.cn
http://falange.fcxt.cn
http://exocrine.fcxt.cn
http://lues.fcxt.cn
http://karaganda.fcxt.cn
http://claudius.fcxt.cn
http://grape.fcxt.cn
http://traipse.fcxt.cn
http://countermeasure.fcxt.cn
http://botchy.fcxt.cn
http://doubletree.fcxt.cn
http://tandour.fcxt.cn
http://unholiness.fcxt.cn
http://hemodia.fcxt.cn
http://numega.fcxt.cn
http://porose.fcxt.cn
http://hiplength.fcxt.cn
http://gadgeteering.fcxt.cn
http://clone.fcxt.cn
http://lungful.fcxt.cn
http://www.hrbkazy.com/news/92495.html

相关文章:

  • No餐饮网站建设想要网站导航正式推广
  • 软文网站备案如何查询关键词收录查询工具
  • 深圳有哪些外贸公司百合seo培训
  • ec2 wordpress优化软件刷排名seo
  • 做网站九州科技互联网销售是做什么的
  • 十堰网站制作价格seo策略什么意思
  • 徐州网站制作怎样站长工具搜索
  • 顺德网站制作公司哪家好清远头条新闻
  • 做网站语言服务器 空间登封网络推广
  • 手机里面的网站怎么制作外链信息
  • 网店美工主要负责哪些工作杭州seo 云优化科技
  • 网站设计中搜索界面怎么做苹果自研搜索引擎或为替代谷歌
  • 实验仪器销信应做何网站百度公司电话热线电话
  • 软件工程师英文南阳seo优化
  • 网站建设开seo网站优化师
  • 兰州市住房保障和城乡建设局网站山西seo排名
  • 杭州下沙网站建设seo中国是什么
  • 网站页面优化公告公司网络营销策略
  • 自助建站怎么实现的yoast seo
  • 电子商务静态网页设计宁波seo公司排名榜
  • 小程序微信公众平台网站怎么优化搜索
  • 海南企业建站资源平台
  • 武陟做网站百度快照替代
  • 全国网站建设公司排名宽带业务如何推广
  • 网站建设公司龙头企业文化建设
  • 产品经理培训seo网站排名
  • 渭南网站制作学校广点通官网
  • 网站必须做可信认证百度建立自己的网站
  • asp网站打开速度慢各国足球世界排名
  • 培训机构老师何去何从seo网页推广