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

如何建设网站平台必要商城官网

如何建设网站平台,必要商城官网,php cms网站建设,做游戏的软件app原始的cucumber report 比较粗糙 我们可以通过cucumber-reporting 插件对报告进去优化 在pom.xml里面添加cuccumber-reporting 插件 !-- 根据 cucumber json文件 美化测试报告--dependencygroupIdnet.masterthought/groupIdartifactId…原始的cucumber report 比较粗糙 我们可以通过cucumber-reporting 插件对报告进去优化 在pom.xml里面添加cuccumber-reporting 插件 !-- 根据 cucumber json文件 美化测试报告--dependencygroupIdnet.masterthought/groupIdartifactIdcucumber-reporting/artifactIdversion5.7.5/version/dependency 根据cuccumber-reporting创建一个工具类 reportUtils.java 生成报告 package com.cacho.s2b.lesson.util;import net.masterthought.cucumber.Configuration; import net.masterthought.cucumber.ReportBuilder; import net.masterthought.cucumber.presentation.PresentationMode; import net.masterthought.cucumber.sorting.SortingMethod;import java.io.File; import java.util.ArrayList; import java.util.List;/*** Description cucumber-reporting 美化测试报告* Author LingWei* date 2023/12/31**/public class reportUtils {public void generateCucumberReport(){String buildNumber Release 23.12;String projectName Test Demo;File reportOutputDirectory new File(target);ListString jsonFiles new ArrayList();// 根据cucumber生成的原始json报告去生成测试报告jsonFiles.add(target/json-report/run.json);// 测试报告配置信息目录项目名称Configuration configuration new Configuration(reportOutputDirectory,projectName);// 测试报告版本configuration.setBuildNumber(buildNumber);// 测试报告展示模式configuration.addPresentationModes(PresentationMode.EXPAND_ALL_STEPS);configuration.addPresentationModes(PresentationMode.PARALLEL_TESTING);// 排序方式设置configuration.setSortingMethod(SortingMethod.ALPHABETICAL);configuration.addClassifications(Platform,Windows 11);configuration.addClassifications(Component,API Test);configuration.addClassifications(Version,23.12);configuration.addClassifications(User,Cacho);// json文件和配置一起去生成报告ReportBuilder reportBuilder new ReportBuilder(jsonFiles,configuration);reportBuilder.generateReports();} }在测试入口类 ApiTest.java 里面添加AfterClass并调用reportUtils.java用cucumber跑完测试后的json文件再去生成美化后的报告。 package com.cacho.s2b.lesson;import com.cacho.s2b.lesson.engine.ApiInfoHub; import com.cacho.s2b.lesson.util.reportUtils;import io.cucumber.junit.Cucumber; import io.cucumber.junit.CucumberOptions; import lombok.extern.slf4j.Slf4j; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.runner.RunWith;Slf4j RunWith(Cucumber.class) CucumberOptions(plugin {pretty,json:target/json-report/run.json}, // 生成的json文件features {classpath:features }, //features路路径,glue com.cacho.s2b.lesson, //步骤所在的包名monochrome true, //tags test //指定标签多标签标签1 or/and/and not 标签2 ) public class ApiTest {BeforeClasspublic static void beforeClass(){ApiInfoHub apiEnv ApiInfoHub.getInstance();log.info(运行的环境是{},apiEnv.getEnvInfo().getDescription());}AfterClasspublic static void afterClass(){reportUtils report new reportUtils();report.generateCucumberReport();} }运行后在项目的target\cucumber-html-reports目录下生成报告 测试报告样式
http://www.pierceye.com/news/629858/

相关文章:

  • 怎样推广产品专业黑帽seo推广
  • 网站调用字体在阿里云备案网站通过
  • 手机网站做落地页石家庄网络营销
  • 如何把网站主关键词做到百度首页网站页面设计优化方案
  • 做门户网站多少钱做视频解析网站播放器和接口
  • 打开一个网站网站被挂马无法访问
  • 大连网站建设公司排名装饰设计公司哪个好
  • 苏州企业建设网站公司400电话网站源码
  • 贵州住房和城乡建设厅官网泰安千橙网站建设优化熊掌号
  • metro网站模板平面设计师网站
  • 怎样通过阿里云建设网站国内免费crm
  • 网站开发都需要学什么iis7网站建设
  • 网站 关键字it网站建设资讯网
  • 白银网站建设公司石家庄建行网站
  • 做网站全部乱码怎么办教学资源网站建设方案
  • 自己做的网站怎么添加文档做淘宝详情的网站
  • 安全认证的机票网站成就怎么做山东省住房和城乡建设厅政务服务
  • 海口网站建设方案咨询信息流优化师面试常见问题
  • 网上课程网站wordpress自定义页面分页
  • 自建站成本深圳网站建设营销服务平台
  • 模仿网站怎么做网站编辑建设
  • 湖南做网站 磐石网络引领免费网上开店
  • wordpress内容做成目录seo排名分析
  • 大型网站 网站建设做网站赔了8万
  • python官方网站建设网站要什么
  • 青海 网站开发 图灵如何创建自己的网页
  • 建设银行网站怎么登陆不做网站首页的尺寸
  • 谁能给我一个网站谢谢dedecms收费怎么办
  • dede 网站地图 模块青岛做网站服务商
  • 征信网站开发扬州市建设局网站