摘要: 为了方便管理文件和目录,Linux 系统将它们组织成一个以根目录 / 开始的倒置的树状结构。Linux 中的目录,和 Windows 系统中的文件夹类似,不同之处在于,Linux 系统中的目录也被当做文件看待。 文件系统的最顶层是由根目录开始的,系统使用“/”来表示根目录,在根目录之下的既可以是目录 阅读全文
posted @ 2020-12-14 23:39 中华田园猫饭饭 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 使用 groups 属性 package com.lc.tesgFenZu; import org.testng.annotations.AfterGroups; import org.testng.annotations.BeforeGroups; import org.testng.annota 阅读全文
posted @ 2020-12-14 22:00 中华田园猫饭饭 阅读(159) 评论(0) 推荐(0) 编辑
摘要: “超时”表示如果单元测试花费的时间超过指定的毫秒数,那么TestNG将会中止它并将其标记为失败。 使用属性 timeOut = 参数(1s*1000) package com.lc.testngChaoShi; import org.testng.annotations.Test; public c 阅读全文
posted @ 2020-12-14 21:27 中华田园猫饭饭 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 一个TestNG 测试类中如果有的方法不想测试可以使用 enabled 属性 enabled = false 该方法不参与测试 enabled = true 该方法参与测试 @Test 不写enabled默认为true package com.lc.testngHuLue; import org.t 阅读全文
posted @ 2020-12-14 21:18 中华田园猫饭饭 阅读(133) 评论(0) 推荐(0) 编辑