会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
菜鸟需勤奋
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
48
下一页
2023年9月3日
mvn test 执行testng测试用例
摘要: maven项目,把testng用例放在test目录下,配置pom.xml 文件如下,执行mvn test 能自动执行testng里面的用例。 pom文件配置 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://ww
阅读全文
posted @ 2023-09-03 23:00 iTao0128
阅读(376)
评论(0)
推荐(0)
2023年8月31日
JSONPath的使用
摘要: 参考 https://blog.csdn.net/qq_41497111/article/details/96426824 {"store":{"book":[{"category":"reference","author":"Nigel Rees","title":"Sayings of the
阅读全文
posted @ 2023-08-31 22:09 iTao0128
阅读(22)
评论(0)
推荐(0)
2023年8月27日
文件的上传下载
摘要: controller package com.example.file.controller; import com.example.file.utils.FileUtil; import org.springframework.beans.factory.annotation.Autowired;
阅读全文
posted @ 2023-08-27 16:22 iTao0128
阅读(54)
评论(0)
推荐(0)
2023年8月26日
Allure用法
摘要: 查看官网:https://docs.qameta.io/allure/#_junit_5 源码example: https://github.com/allure-examples/allure-examples/tree/master/allure-junit5/src/test/java/io/
阅读全文
posted @ 2023-08-26 10:58 iTao0128
阅读(78)
评论(0)
推荐(0)
2023年8月25日
Allure常用命令
摘要: 命令格式: allure [option] [command] [command options] allure --help 帮助 allure --version 查看版本信息 allure serve 生成在线版本的测试 allure generate <allure-result中间文件>
阅读全文
posted @ 2023-08-25 23:00 iTao0128
阅读(557)
评论(0)
推荐(0)
Allure环境安装
摘要: 1、安装 Java (推荐 1.8 版本),需要配置环境变量2、安装 Allure (2.13以上版本),需要配置环境变量 【下载地址】 https://repo1.maven.org/maven2/io/qameta/allure/allure-commandline/ mac/linux: 下载
阅读全文
posted @ 2023-08-25 22:19 iTao0128
阅读(290)
评论(0)
推荐(0)
禁用测试用例
摘要: 给用例添加禁用标识,被禁用的用例执行后会添加跳过的状态,可以禁用测试类、也可以禁用测试方法 注意:IDEA 不支持,maven 构建才支持 import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Tag; import
阅读全文
posted @ 2023-08-25 21:53 iTao0128
阅读(101)
评论(0)
推荐(0)
标记用例tag
摘要: 通过 Tag 对用例分组: 环境分组: 测试环境、预发布环境 阶段分组: 冒烟用例 版本分组: V1.1、V1.2 设置标签 根据标签执行 结合 Maven 执行 结合测试套件执行 import org.junit.jupiter.api.Tag; import org.junit.jupiter.
阅读全文
posted @ 2023-08-25 21:37 iTao0128
阅读(72)
评论(0)
推荐(0)
重复用例
摘要: import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.RepeatedTest; import org.junit.jupiter.api.Test; public class RepeatedExampleTe
阅读全文
posted @ 2023-08-25 21:20 iTao0128
阅读(28)
评论(0)
推荐(0)
2023年8月24日
执行排序
摘要: 排序方式 方法排序 类排序 Suite 方法排序的类型 类型说明 OrderAnnotation(重点) @Order 注解指定排序 DisplayName 根据显示名称排序 Random 随机排序 MethodName 根据方法名称排序 import org.junit.jupiter.api.M
阅读全文
posted @ 2023-08-24 22:30 iTao0128
阅读(21)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
48
下一页
公告