摘要: 当程序出现异常或者测试中有异常测试案例可以使他抛出异常 例如:0不可以当做除数,如果将除数设置为0会抛出异常 在testNG上加上 expectedExceptions = ArithmeticException.class 运行测试案例测试通过 package com.lc.testngYiCha 阅读全文
posted @ 2020-12-07 14:49 中华田园猫饭饭 阅读(625) 评论(0) 推荐(0) 编辑