testng
-
But TestNG provides a similar feature right out of the box .
但是TestNG提供了开箱即用的类似特性。
-
Another interesting feature of TestNG is its ability to define groups of tests .
TestNG另外一个有趣的特性是其定义测试组的能力。
-
TestNG supports running fixtures at five levels of granularity .
TestNG支持在五种粒度级别上运行fixture。
-
Testing frameworks like JUnit and TestNG use runtime reflection for processing the Annotations .
像JUnit和TestNG这样的测试框架也使用运行时反射来处理注解。
-
Download TestNG : A flexible testing framework that can also be used to drive Selenium 's tests .
下载TestNG:一种灵活的测试框架,可用于驱动Selenium测试。
-
For example , TestNG uses test groups , which can categorize tests according to features such as run times .
例如TestNG中使用了测试分组,它可以根据诸如运行时间这样的特征来对测试分类。
-
In this article , you will learn how to write unit tests for an application using a new testing framework called TestNG .
在本文中,您将学习到如何用这个叫做TestNG的新测试框架为应用程序编写单元测试。
-
It 's a good thing for me that TestNG 's parameter elements are locally scoped .
TestNG的parameter元素的作用域是局部的,这对我来说是件好事。
-
With TestNG , you can check the occurrence of an exception very simply and easily .
使用TestNG,您可以非常简单、非常容易地检测异常的发生。
-
Finally , the last target in the group is the one that actually runs my programmatic Selenium tests via TestNG .
最后,该组中最后的target将通过TestNG实际运行我的编程式Selenium测试。
-
Application of mathematical statistics in testng & verifying analysis-methods
数理统计在验证分析方法中的应用
-
The following sections show you how the two work together with Selenium and TestNG to ensure logically repeatable acceptance tests .
下面几节将向您展示如何结合使用Selenium和TestNG从而确保实现逻辑重复的验收测试。
-
Better yet , TestNG complements its dependency testing setup with a mechanism for rerunning only failed tests .
更有利的是,TestNG采取了只重新运行失败测试的机制,这使它的依赖性测试设置更为完善。
-
TestNG 's trick of skipping , rather than failing , can really take the pressure off in large test suites .
对于大型测试套件,TestNG这种不标记为失败,而只是跳过的处理方法可以减轻很多压力。
-
TestNG 's flexible and parametric fixtures make it an excellent workhorse for defining Selenium 's driven acceptance tests .
TestNG以其灵活性和参数化fixture成为定义Selenium的驱动验收测试的首选。
-
Download TestNG : A powerful , easy-to-use testing framework inspired by JUnit and NUnit .
下载TestNG:一种功能强大、易于使用的测试框架,得益于JUnit和NUnit。
-
By placing parametric data in TestNG 's XML configuration files , you can reuse a single test case with different data sets and even get different results .
通过在TestNG的XML配置文件中放入参数化数据,就可以对不同的数据集重用同一个测试用例,甚至有可能会得到不同的结果。
-
Metadata is commonly used to facilitate communication between program elements and frameworks or tools such as EJB , EMF , and TestNG .
元数据常常用于协助程序元素与框架或者EJB、EMF和TestNG这样的工具之间的通信。
-
Note that each step in the use case is done via Selenium & TestNG just helps with the plumbing , so to speak .
请注意:用例中的每一步都是通过Selenium完成的&所以说,TestNG仅仅帮助进行查找。
-
Even with the abundance of testing frameworks like TestNG , Selenium , and FEST , the reasons for not testing code are manifold .
即使现在已经有了很多测试框架,例如TestNG、Selenium和FEST,但不对代码进行测试的理由仍然充分。
-
Because I 'm using TestNG to drive Selenium , I 'm going to create a DbUnit fixture , which will run at the test level .
由于这里使用了TestNG驱动Selenium,我将创建一个DbUnitfixture,它将在测试级别上运行。
-
TestNG , on the other hand , was built to address testing at higher levels , and consequently , has some features not available in JUnit .
而TestNG则是用来解决更高级别的测试问题,因此,它具有JUnit中所没有的一些特性。
-
The ability to rerun failed tests is especially handy in large test suites , and it 's a feature you 'll only find in TestNG .
在大型测试套件中,这种重新运行失败测试的能力显得尤为方便。这是TestNG独有的一个特性。
-
Download TestNG : A testing framework inspired by JUnit and NUnit but introducing some new features that make it more powerful and easier to use .
下载TestNG:一个受JUnit和NUnit启发而创建的测试框架,但该框架引入了一些新特性,使其功能更强大,也更容易使用。
-
Now that I 've defined a flexible fixture that handles database state and some corresponding tests , I 'm ready to use TestNG to wire everything together .
现在我已经定义了一个灵活的fixture,它将处理数据库状态和相应测试。
-
At the same time , it uses TestNG 's assertions to abstract the details of GUI manipulation into simple fixtures that expose validation methods .
同时,它使用了TestNG的断言,将GUI操作细节提取到了简单的fixture中,后者能够公开验证方法。
-
In this article , I 've offered a quick and practical introduction to TestNG , with the aim of showing how you can start writing unit tests now .
在本文中,我提供了TestNG的快速实用介绍,目的是展示如何开始编写单元测试。
-
As a result , I can easily define generic parameter values in the TestNG configuration file and then override them if necessary in TestNG 's test grouping elements .
这样,我可以很容易地在TestNG配置文件中定义通用参数值,并且当需要时在TestNG的test组元素中重写它们。
-
I can then include my fixture and associated tests via TestNG 's package element , which facilitates finding all tests ( or fixtures ) in a package structure .
我可以通过TestNG的package元素将我的fixture和相关测试包括进来,package元素能够使包结构中所有测试(或fixture)的查找变得简单。
-
What 's more , I use TestNG 's handy DataProvider feature , which allows me to create a generic test case and vary the parameters to it through another method .
而且,我还利用了TestNG方便的DataProvider特性,借助该特性,我创建了一个通用的测试用例并通过另一个方法来改变它的参数。