上一页 1 2 3 4 5 6 7 ··· 44 下一页
摘要: 自动化测试过程中,需要验证某些特殊场景时,需要传空或者传null null 参数的参数化注解 @NullSource 注解 参数为空的参数化注解 @EmptySource 注解 需要 null 和空都进行参数化,使用 @NullAndEmptySource 注解 还有其他参数可以用@ValueSou 阅读全文
posted @ 2023-08-24 21:16 Mr_sven 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 使用枚举类作为测试数据。 枚举参数参数化注解 @EnumSource。 必须与 @ParameterizedTest 结合使用。 需要添加@EnumSource注解 测试方法传入枚举类作为参数 package com.mytest; import org.junit.jupiter.params.P 阅读全文
posted @ 2023-08-23 23:15 Mr_sven 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 通过@MethodSource注解引用方法作为参数化的数据源信息 在 @MethodSource 注解的参数必须是静态的工厂方法,除非测试类被注释为@TestInstance(Lifecycle.PER_CLASS) 静态工厂方法的返回值需要和测试方法的参数对应 如果在 @MethodSource  阅读全文
posted @ 2023-08-23 23:07 Mr_sven 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 多参数参数化注解 @CsvSource。 @CsvSource 通过指定的分隔符实现参数化。 package com.mytest; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params. 阅读全文
posted @ 2023-08-23 23:02 Mr_sven 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 引入依赖 <!-- 参数化依赖--> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId> <version>5.8.1</version> <scope>tes 阅读全文
posted @ 2023-08-23 22:48 Mr_sven 阅读(60) 评论(0) 推荐(0) 编辑
摘要: package com.mytest; import org.junit.jupiter.api.*; import static org.junit.jupiter.api.Assertions.assertEquals; public class Case2Test { //前置条件,只执行一次 阅读全文
posted @ 2023-08-22 22:34 Mr_sven 阅读(9) 评论(0) 推荐(0) 编辑
摘要: package com.mytest; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; pub 阅读全文
posted @ 2023-08-22 22:01 Mr_sven 阅读(12) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2023-08-22 21:29 Mr_sven 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 工具计算(PS或者FW) 以fw为例,按照2倍图缩放 1.导入图片后,选中图片,下方显示整张图片的尺寸大小(208x655) 2.修改宽大小为原来的一半:104 回车 3.测量图标大小(23x23),坐标为(59x194) 相关代码 <body> <div class="search-index"> 阅读全文
posted @ 2023-08-20 22:44 Mr_sven 阅读(15) 评论(0) 推荐(0) 编辑
摘要: flex布局原理 flex 是 flexible Box 的缩写,意为"弹性布局",用来为盒状模型提供最大的灵活性,任何一个容器都可以指定为 flex 布局。 当我们为父盒子设为 flex 布局以后,子元素的 float、clear 和 vertical-align 属性将失效。 flex布局又叫伸 阅读全文
posted @ 2023-08-20 21:49 Mr_sven 阅读(22) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 44 下一页