在父类中建立一个内部类,这个内部类是个测试用例。
Make an inner class in the parent class, which is a test case.
每个测试用例都必须是从这个类扩展而来。
下面是我们的简单示例所生成的测试用例类。
Here is the generated test case class for our simple example.
要运行测试用例类,需要启动服务器。
创建一个jar文件,命名为BasicAddUnitTest . jar,包含这两个测试用例类。
Create a jar file, named BasicAddUnitTest.jar, containing the two Test case classes.
每个jwebunit测试的核心都是net . sourceforge . jwebunit . webtestcase类,它代表测试用例。
At the heart of every jwebunit test case is net.sourceforge.jwebunit.WebTestCase class, which represents a test case.
类划分是一个更加形式化的设计测试用例的方法。
Equivalence partitioning is a much more formalized method of test case design.
类划分是一个更加形式化的设计测试用例的方法。
Equivalence partitioning is a much more formalized method of test case design.
应用推荐