Define tests to run automatically as part of the build.
定义要随生成自动运行的测试。
You can also write contract tests on classes or aspects, where you can define tests on constructors and invariant conditions on instance fields.
也可以在类或方面上编写合约测试,在这些类或方面中可以在构造函数上定义测试,在实例字段上定义不变条件。
So, how do you define widget tests?
那么,怎样定义小部件测试呢?
You can define multiple acceptance tests using the table-based format in Listing 6.
使用清单6中基于表格的格式,可以定义多个接受测试。
Business analysts often perform tests based on specifications or use case documents that define the software application.
业务分析师常常执行基于定义软件应用的规格说明或用例文档的测试。
You can discover, run and schedule tests, as well as being able to define and enable human task emulators, as shown in Figure 6.
您可以发现、运行和计划安排测试,并且能够定义和启用人工任务模拟器,如图6所示。
Notice that the invariant and other tests refer to an implied balance field, even though an interface can't define fields.
注意,虽然接口不能定义字段,但不变条件测试和其他测试引用了一个隐含的余额字段。
Instead, we're envisioning a scenario where developers develop component tests on their own and then work with testers to define the test data to be used in the test.
我们预想一个场景,开发人员他们自己的开发组件测试,然后和测试人员一起工作,来确定要在测试中使用的测试数据。
Even if you test all of the methods of the classes individually, be sure to define class-level tests.
即使你分别测试了每个类的所有方法,确保定义类-级的测试。
For example, I like to define four types of developer tests in my Ant builds: unit, component, system, and functional.
例如,在我的Ant构建中,我喜欢定义四种类型的开发者测试:单元、组件、系统和功能。
Another interesting feature of TestNG is its ability to define groups of tests.
TestNG另外一个有趣的特性是其定义测试组的能力。
Keyword testing to streamline GUI test automation: Rational functional Tester provides the ability to define and automate keywords that can be reused in both functional and manual tests.
流线化GUI测试自动化的关键字测试:RationalFunctionalTester提供了定义和自动化可以在功能性测试和手动测试中重用的关键字。
You can use JUnit's TestSuite class (which is of type test) to define a collection of tests as belonging together.
可以使用JUnit的testsuite类(属于test类型)来定义许多互相归属的测试。
You may define a custom class with equality and inequality tests to hold all XML documents with the root element
您可以定义一个带有相等和不等测试的自定义类,来包含带有根元素
But with parametric tests, you can define one test case and then push your desired parameter patterns (for example) into TestNG's suite files. That's what I've done in Listing 6.
但是,如果使用参数化测试,就可以只定义一个测试用例,然后,(举例来说)把所需的参数模式加到TestNG的测试套件文件中。
To run these tests, you must define at least four Ant tasks: one for unit tests, another for component tests, and so on.
为运行这些测试,必需至少定义四个Ant任务:为单元测试定义一个,为组件测试定义一个,依此类推。
For example, you could define as test cases Runnable.run , main methods, and of course JUnit tests.
比如,可以将测试用例定义为Runnable . run或main方法,当然也可以使用JUnit测试。
The functional tests define your working system in a useful manner. A maintained suite of functional tests
功能测试以一种有用的方式对您的工作系统进行说明。
An extension can define tags, filters, tests, operators, global variables, functions, and node visitors.
一个扩展可以定义标签、过滤器、测试、操作、全局变量、函数和节点访问等。
Following the TDD pattern, we have continued to define our unit tests, as shown in Listing 6-25.
遵照TDD模式,我们继续定义了我们的单元测试,如清单6 - 25所示。
Using test categories to Select Tests to run After Building Your Application or Before Check-In: You can use a build definition to define which test categories to run to test a new build.
使用测试类别选择要在生成应用程序后或签入前运行的测试:可使用生成定义来定义为测试新生成而运行的测试类别。
You can define unit tests to verify the behavior of your database objects.
您可以定义单元测试,以验证资料库物件的行为。
Provides information and links to additional topics about how you can define unit tests to verify the behavior of your database objects.
提供有关如何定义单元测试以验证数据库对象的行为的信息和相关主题的链接。
For example, you might define your tests before you make code changes.
例如,您可能先进行程序码变更,再定义测试。
If you use test Settings that run automated tests or collect data remotely for manual tests, you must define a set of roles in your test Settings.
如果您使用的测试设定会执行自动化测试或远端收集手动测试资料,则必须在测试设定中定义角色集。
Validate your system with the requirements and intended design: Define acceptance tests or system tests based on the requirements models.
根据需求和计划的设计验证系统:可以根据需求模型定义验收测试或系统测试。
You can define unit tests to verify the behavior of your database objects and associate each test project with a different data generation plan, deployment configuration, and connection string.
您可以定义单元测试来验证资料库物件的行为,以及将每一个测试专案与不同的资料产生计划、部署组态和连接字串产生关联。
Each filter has its own attributes and to determine them you need to consider multiple tests to define the "DNA" of a filter.
每个过滤器都有自己的属性,检查这些属性你需要考虑多种不同的测试来定义一个过滤器的“DNA”。
Each filter has its own attributes and to determine them you need to consider multiple tests to define the "DNA" of a filter.
每个过滤器都有自己的属性,检查这些属性你需要考虑多种不同的测试来定义一个过滤器的“DNA”。
应用推荐