只要通过所有的测试用例,我就将向单元测试自动库添加新的单元测试类,在每次构建时运行。
As long as all the test cases pass, I add the new unit test class to my unit test automation library, which gets run on every build.
通过设计基于类描述的测试用例,一个人能够在较深的级别上测试系统。
By designing test cases based on class descriptions, one is able to test the system at a deeper level.
有了由超级用户,顶级装备或者其它主要领域专家组成的验收团队,用户验收测试用例将不需要低水平用户界面或者类细节。
With an acceptance team built of high-value power users, top guns or other subject matter experts, a user acceptance Test case will not require low-level user interface or class details.
测试用例创建了两个类装入器,每个类装入器使用的类路径看起来相同。
The test case creates two class loaders, each with what appears to be the same classpath.
相反,我编写根据类中的方法运行所有单元测试用例的类。
Instead, I would write the class that runs all the unit test cases against the methods in the class.
现在,我们将在IE、Firefox和Safari浏览器上运行测试用例类。
Now, let's run the test case class on IE, Firefox and Safari browser.
JUnit提供了一个TestRunner类来执行测试用例。
启动并捕获浏览器后,可以通过以下命令行运行测试用例类。
After launching and capturing the browsers, you can run the test case classes by using the following command line.
记住该GUI之所以简单只有一个原因:它演示了TestNG - Abbot的三个fixture类以及一些要引导的测试用例!
Keep in mind that this GUI is simple for a reason: It demonstrates three of TestNG-Abbot's fixture classes and a few test cases to boot!
在第十四行中,为了在日志中显示这个测试用例的名称,一个测试用例必须有一个可以将自变量传递到它的父类(TestCase)的专门的串参数构造器。
In line 14, a test case must have a single string parameter constructor that passes the argument to its parent class (TestCase) for the purpose of displaying the test case name in a log.
清单2到清单4的测试用例产生了NoClassDefFoundError,因为类B 的隐式装入会失败
The test case in Listings 2 through 4 produce a NoClassDefFoundError because an implicit load of class B will fail
清单2给出了针对这个类的一个简单的JUnit测试用例,图1展示了我在Eclipse中运行这个测试时的结果。
Listing 2 gives a simple JUnit test case for this class, and Figure 1 shows the results when I run this test in eclipse.
清单3中Bike类的测试用例展示了如何使用自动生成的访问器。
The test case for the Bike class in Listing 3 demonstrates the use of the automatically generated accessor.
也许你正在为这些类库编写测试用例,但是发现这是一个让人烦躁的工作。
Perhaps you're writing a test suite for such a library and find writing the testing code a tedious task.
由于能与类方法测试有机的结合,该方法不用专门地去另外设计测试用例。
Being able to connect with class method testing properly, it avoids the design of extra testing cases.
本文提出了一种从形式规格说明中利用等价类划分的方法自动生成软件测试用例的算法,给出了算法步骤。
The paper puts forward an automated testing case generator algorithm which uses equivalence class division methods and formal specification.
摘要:回归测试中测试用例的优化选择是个关键环节,借助黑盒测试中的等价类划分选择测试用例可以提高测试的效率。
Absrtact: the optimization choice of test case in regression testing is one of the key steps. Advance the efficiency of testing via equivalence partitioning method belonging to black box testing.
摘要:回归测试中测试用例的优化选择是个关键环节,借助黑盒测试中的等价类划分选择测试用例可以提高测试的效率。
Absrtact: the optimization choice of test case in regression testing is one of the key steps. Advance the efficiency of testing via equivalence partitioning method belonging to black box testing.
应用推荐