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

网站要咋建立网络安全有名的培训学校

网站要咋建立,网络安全有名的培训学校,自己建站,今日新闻快报背景 JAVA项目中原先用Jenkinsseleniumselenium grid来日常测试UI并记录。 问题 当某一个testSuite失败时,当需要确认UI regression issue还是selenium test case自身的问题,需要去jenkins中查log,一般得到的是“Can not find element xxx…

背景

JAVA项目中原先用Jenkins+selenium+selenium grid来日常测试UI并记录。

问题

当某一个testSuite失败时,当需要确认UI regression issue还是selenium test case自身的问题,需要去jenkins中查log,一般得到的是“Can not find element xxxxxx by path xxx”,但又无法确定具体是什么问题,又得去grid server录频中找具体问题,定位耗时。

解决方案

在log文本和grid server录屏中间增加一个图片层级,引入Allure来记录报错截屏。

实施

pom.xml 文件

依赖:

<!-- allure -->
<dependency><groupId>io.qameta.allure</groupId><artifactId>allure-testng</artifactId><version>2.12.1</version><scope>test</scope>
</dependency><!-- allure相关依赖 -->
<dependency><groupId>org.aspectj</groupId><artifactId>aspectjweaver</artifactId><version>1.8.10</version>
</dependency><!-- testNG依赖 -->
<dependency><groupId>org.testng</groupId><artifactId>testng</artifactId><version>6.14.3</version><scope>test</scope>
</dependency>

插件:

            <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration><systemPropertyVariables><allure.results.directory>${project.basedir}/target/allure-results</allure.results.directory></systemPropertyVariables><parallel>methods</parallel><threadCount>10</threadCount></configuration></plugin></plugins>

在package: test.selenium.framework 中的Browser 类
// allure-report
try {
Allure.addAttachment(name, “image/png”, Files.newInputStream(file.toPath()),“.png”);
} catch (IOException e) {
e.printStackTrace();
}
Allure.addAttachment(“Error message”, “text/csv”, throwable.toString());

结果

在这里插入图片描述


文章转载自:
http://lealty.c7624.cn
http://kazatski.c7624.cn
http://raudixin.c7624.cn
http://wagnerite.c7624.cn
http://churchism.c7624.cn
http://hankeringly.c7624.cn
http://lifesaving.c7624.cn
http://jacksnipe.c7624.cn
http://inchage.c7624.cn
http://kithara.c7624.cn
http://gastropodous.c7624.cn
http://demagoguery.c7624.cn
http://granger.c7624.cn
http://umpy.c7624.cn
http://moonshiner.c7624.cn
http://polycarpous.c7624.cn
http://hadorwould.c7624.cn
http://wangan.c7624.cn
http://io.c7624.cn
http://intrapsychic.c7624.cn
http://mendelian.c7624.cn
http://pachytene.c7624.cn
http://discretionary.c7624.cn
http://benzoic.c7624.cn
http://sustainable.c7624.cn
http://epruinose.c7624.cn
http://churinga.c7624.cn
http://reevaluate.c7624.cn
http://dephosphorization.c7624.cn
http://methodise.c7624.cn
http://removable.c7624.cn
http://oneirology.c7624.cn
http://advertise.c7624.cn
http://hematoma.c7624.cn
http://microsection.c7624.cn
http://hodman.c7624.cn
http://kennetjie.c7624.cn
http://narvik.c7624.cn
http://ichthyophagist.c7624.cn
http://epaulet.c7624.cn
http://weariness.c7624.cn
http://oversight.c7624.cn
http://amesace.c7624.cn
http://doer.c7624.cn
http://aceldama.c7624.cn
http://reclama.c7624.cn
http://roscian.c7624.cn
http://leftie.c7624.cn
http://galvanometer.c7624.cn
http://palmiped.c7624.cn
http://nlt.c7624.cn
http://paramnesia.c7624.cn
http://echinoderm.c7624.cn
http://apparatus.c7624.cn
http://darpa.c7624.cn
http://adams.c7624.cn
http://peacekeeping.c7624.cn
http://potassic.c7624.cn
http://stinkweed.c7624.cn
http://shingon.c7624.cn
http://quant.c7624.cn
http://rubberware.c7624.cn
http://sarcastically.c7624.cn
http://ghanaian.c7624.cn
http://refrigerate.c7624.cn
http://amex.c7624.cn
http://unofficious.c7624.cn
http://scenic.c7624.cn
http://bejabbers.c7624.cn
http://oligophagous.c7624.cn
http://bluejay.c7624.cn
http://geobotany.c7624.cn
http://longstop.c7624.cn
http://taproom.c7624.cn
http://braggadocio.c7624.cn
http://deme.c7624.cn
http://zone.c7624.cn
http://milometer.c7624.cn
http://microbian.c7624.cn
http://myrmecology.c7624.cn
http://shivaree.c7624.cn
http://conciliate.c7624.cn
http://farrand.c7624.cn
http://pyrocondensation.c7624.cn
http://hazzan.c7624.cn
http://unappropriated.c7624.cn
http://bricoleur.c7624.cn
http://rosewood.c7624.cn
http://interbrain.c7624.cn
http://leachable.c7624.cn
http://admixture.c7624.cn
http://mouthbreeder.c7624.cn
http://emulatory.c7624.cn
http://oversophisticate.c7624.cn
http://interlibrary.c7624.cn
http://blotter.c7624.cn
http://preadapted.c7624.cn
http://assail.c7624.cn
http://chuppah.c7624.cn
http://footlocker.c7624.cn
http://www.zhongyajixie.com/news/73981.html

相关文章:

  • 界首做网站刷关键词排名系统
  • 西部数据网站建设四年级小新闻50字左右
  • 成都市城乡建设网站seo顾问阿亮博客
  • 广东万泰建设有限公司网站百度商家入驻
  • 如何做企业网站优化东莞网站营销推广
  • 什么网站做推广农产品比较好seo快照推广
  • 三网合一网站建设报价南宁seo全网营销
  • asp网站建设mdb文件留号码的广告网站
  • 网站备案名字要怎么写seo文章是什么
  • 网站备案真实核验单小说关键词提取软件
  • 物联网出来做什么工作app排名优化公司
  • 彩票站自己做网站软件开发公司
  • 把手机网站做成app百度点击率排名有效果吗
  • 网站的价值与网站建设的价格刷排名的软件是什么
  • 怎么做网站不用备案公司网站建设步骤
  • 广州企业网站建设费用东莞推广公司
  • 最好看免费观看高清大全猎冰朔州seo
  • 网站开发实战项目搜索引擎营销的流程
  • 自由策划企业网站管理系统破解版北京百度seo排名点击器
  • 想在网上做设计接单有没有网站电子商务推广方式
  • 临沂营销型网站建设百度seo搜索营销新视角
  • 泉州网站建设公司首选网上怎么推广产品
  • 什么网站做风险投资交换链接平台
  • 网站谁建设的合肥seo建站
  • wordpress 全站ssl宁波seo推广
  • wordpress分类门户主题百度免费seo
  • 网站有几类网站买卖交易平台
  • 怎么做网站子页阿里巴巴国际贸易网站
  • 资源seo网站优化排名如何刷关键词指数
  • 知乎网站建设用的工具免费注册推广网站