To use DbUnit, you need two things.
要使用DbUnit,需要两样东西。
DbUnit is a perfect example of this type of framework.
DbUnit是这类框架的一个典型例子。
DbUnit: a JUnit extension targeted for database-driven projects.
DbUnit:瞄准数据库驱动项目的JUnit扩展。
Download DbUnit: Puts your database into a known state between test runs.
下载DbUnit:在运行测试时,将数据库置于已知的状态。
Finally, I'll use DbUnit to manage the state of the database throughout testing.
最后,在测试过程中,我将用DbUnit管理数据库状态。
I want my DbUnit fixture to do its thing before any logical collection of tests is run.
我希望在运行任何逻辑测试集合前,DbUnitfixture能够完成自己任务。
DbUnit is a framework that makes the process of testing against a database much simpler.
DbUnit是一个框架,它使针对数据库的测试过程变得更加简单。
DbUnit is a JUnit extension that places your database into a known state between test runs.
DbUnit是一项JUnit扩展,它在每一次运行测试之前,使数据库处于一种已知状态。
DbUnit manages the data in a database and Cargo automates container management in a generic fashion.
DbUnit管理数据库中的数据,而Cargo使容器管理以通用的方式实现自动化。
DbUnit is a JUnit extension that facilitates placing a database into a known state between test runs.
DbUnit是个专门方便把数据库放进测试状态中已知状态的JUnit扩展。
DbUnit: a JUnit extension (usable with Ant) that puts a database into a known state between test runs.
DbUnit:一个JUnit扩展(用Ant可以重用),在测试运行中把数据库放在已知状态。
Keep in mind, DbUnit doesn't replace a database; it provides a more efficient mechanism for handling test data.
请牢记,DbUnit并没有替换数据库;它只是提供了一种更加有效的机制来处理测试数据。
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,它将在测试级别上运行。
InfoQ: How does the data Driven test Scenario feature in Twist 2.0 compare with other data testing frameworks like DBUnit?
InfoQ:与其它像DBUnit之类的数据测试框架相比,Twist 2.0的数据驱动测试场景怎么样?
The Assertion type is a custom class defined by DbUnit to facilitate additional assertions specific to database result sets.
Assertion类型是DbUnit定义的定制类,可以进行特定于数据库结果集的额外断言。
Its only purpose is to ascertain the total time to run the setUp method (which of course also sets up a database via DbUnit).
其惟一的目的是确定运行setUp方法(当然,该方法也通过DbUnit设置了一个数据库)的总时间。
As you might recall, DbUnit facilitates working with databases by effectively managing their data within the context of a test scenario.
您可能回想起,DbUnit通过有效地管理测试场景中的数据简化了使用数据库的工作。
With DbUnit configured, all that's left to do is enhance the test case from Listing 6 to verify that everything is okay in the database.
配置好DbUnit 后,剩下的就只有改进清单6的测试用例,验证数据库中的一切OK。
DbUnit makes writing tests that rely on a database easier by handling the associated complexity of seeding a database between test states.
DbUnit能够很好地处理在测试状态间建立一个数据库这样的复杂性,因而它会使编写依赖于数据库的测试变得较为简单。
With DbUnit, you can load a known set of data into a database before a test, which means you can rely on that data being present during testing.
通过使用DbUnit,可以在测试前将一组已知的数据加载到数据库中,这意味着您可以依赖这些在测试过程中呈现的数据。
Programmatic testing also allows you to build out your test framework with DbUnit and Cargo, thus ensuring the logical repeatability of your tests.
编程序测试还允许您使用DbUnit和Cargo构建自己的测试框架,从而确保测试的逻辑可重复性。
DBUnit is about maintaining database integrity across test runs (and in fact you can use DBUnit as part of the set up and tear down of your tests in Twist).
DBUnit是关于跨测试执行(testruns)去维护数据库完整性(事实上,在Twist测试中,你可以使用DBUnit作为测试初始化和运行结束的一部分)。
For example, I often employ the DbUnit framework to help manage a database so that my component tests can verify the functionality of code that relies on the database's data.
例如,我通常使用DbUnit框架来帮助管理数据库,以便组件测试可验证依赖数据库数据的代码功能。
Because I'm relying on DbUnit to put the database into a known state before any tests are run, I can assume that the word, pugnacious, is valid with its part of speech set to Adjective.
因为我用DbUnit让数据库在每次测试之前处于一种已知状态,因此可以假定单词pugnacious是有效的,且其词性设置为adjective。
As I explained in my article about repeatable system tests, DbUnit and Cargo are two of my favorite technologies for implementing logical repeatability in database-dependent Web applications.
正如在我的另一篇文章repeatablesystemtests中解释的一样,DbUnit和Cargo是两种我最喜欢的技术,可以在依赖数据库的Web应用程序中实现逻辑重复。
This month, I'll introduce Selenium and walk you through the features that make it a standout Web application testing framework — especially when combined with the likes of TestNG, DbUnit, and Cargo.
这个月,我将介绍Selenium,并逐一查看使它成为优秀Web测试框架的一些特性——尤其是在结合使用TestNG、DbUnit和Cargo这样的软件时。
This month, I'll introduce Selenium and walk you through the features that make it a standout Web application testing framework — especially when combined with the likes of TestNG, DbUnit, and Cargo.
这个月,我将介绍Selenium,并逐一查看使它成为优秀Web测试框架的一些特性——尤其是在结合使用TestNG、DbUnit和Cargo这样的软件时。
应用推荐