1.异常测试
package com.testngdemo;
import org.testng.annotations.Test;
public class test { Test(expectedExceptions ArithmeticException.class ) public void divisionWithException() { int i 1 / 0; System.out.println("After division the value of i is…
https://testng.org/doc/documentation-main.html TestNG概述
TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as:
Annotations.
Run your tests in arbitrar…