Agile techniques recommend having adequate unit and acceptance tests to build a robust test harness around the application.
敏捷推荐围绕应用建立足够的单元测试和验收测试,以构建足够强壮的测试套件。
However, in the real world, not all applications are fortunate enough to have a test harness.
然而,实际情况是:不是所有的应用都有配套的测试套件。
A test coverage measurement is obtained by exercising a code base with a test harness and capturing data that corresponds to code having been "touched" throughout the lifetime of the test process.
通过用一个测试工具执行代码库并捕获整个测试过程中与被“触及”的代码对应的数据,就可以获得测试覆盖度量。
Create a test harness and load test your database.
创建一个测试用具,对数据库进行负载测试。
Because JUnitPerf is a decorator-based framework, in order to actually harness it, you must provide a suite method and decorate your existing test with a TimedTest.
由于JUnitPerf是一个基于装饰器的框架,为了真正地驾驭它,必须提供一个suite方法并将现有的测试装饰以TimedTest。
The overall structure of the test automation harness is shown in Figure 3 and an outline of the code is shown in Figure 4.
图3显示了测试自动化管理的整体结构,图4显示了代码大纲。
This function is provided by the test: : Harness module, which specifies a well-defined interface for creating test scripts containing one or more test cases.
这个功能是由Test:Harness模块提供的,它指定一个良好定义的接口来创建包含一个或多个测试用例的测试脚本。
You can see that test: : Harness also runs timing code during the test process.
可以看到在测试过程期间Test:Harness还运行了计时代码。
To easily test the speed of the incrementally improving modules I planned to develop, I wrote a small test harness to run different versions of the module.
为了可以简单地测试要开发的模块的速度提高情况,我编写了一个简单的测试程序来运行不同版本的模块。
I use methods in System.Threading to launch the form from the console application test harness.
使用System . Threading中的方法来从控制台应用程序测试管理启动窗体。
To further add in constructing add-ins, Erik Mikkelson has created a test harness that shows the outputs, errors, and events that arise from the extensions.
并且为了更进一步地创建插件,ErikMikkelson还已经创建全套的测试工具,它会显示扩展所会产生的输出、错误和事件。
The same JUnit test harness from Part 2 was used to generate the tables in this article; the process illustrates the key aspects of using an ACLPerspective.
第2部分中的同一JUnit测试工具用于生成本文中的表;此流程显示了使用ACLPerspective的主要方面。
At this point you could enhance the test harness with more users, more transactions per user, or more complex transactions.
此时,您可以用更多的用户、更大的每用户事务数,或者更复杂的事务来增强测试工具。
The performance characterization of your environment with a test harness is critical to managing your servers instead of being managed by them.
为了有效管理服务器,而不是为它们而头疼,使用一个测试用具体现环境的性能十分重要。
The application server ran on one machine, and the test harness and database ran on the second machine.
应用服务器运行在一台计算机上,而测试工具和数据库运行在另一台计算机上。
Now that you have a solid understanding of how the test harness works, you're probably eager to try it out yourself.
现在对于测试装具模块如何工作已经有了很好的认识,可能迫不及待要自己试试它了。
Good unit tests encourage loose coupling between units, a requirement to get the test running in a test harness.
好的单元测试要求单元间的松散耦合,这是在测试条件下让测试得以运行的条件。
For production applications, it is critical to study the expected workload and develop a test harness that mirrors reality as much as possible.
对于产品应用程序,研究预期的工作负载并开发一个最接近现实的测试装具模块十分关键。
If so, you might want to copy the source files for the implementation and test harness onto your disk drive so you can alter the parameters, styles, or code ( see Download).
如果想开发自己的工具提示部件,那么可以将这个实现的源文件和测试页面复制到硬盘上,然后就可以修改参数、样式或代码(参见下载)。
You should not rely on simply "noticing" that test harness runs are taking longer to report a performance issue.
您不应该依赖于简单的“注意到”测试运行了很长时间后才报告性能问题。
You can use a mini-test harness to shorten some of the early tests and also gather verbose information on the system output.
您可以使用小型测试工具来缩短一些早期测试的时间,还可以获得系统输出的详细信息。
Doing so will give you a margin of error in the definition of the test harness.
这样做将使您获得测试工具定义中的误差幅度。
Creating a realistic test harness is a critical step in effective tuning.
创建实际测试工具是有效优化的关键步骤。
He presents numerous examples to show how the reader can place even the most convoluted and tightly coupled code into a unit test harness.
他列举了大量的示例,以说明读者如何将费解的、耦合的代码放进单元测试中。
现在进行测试。
Install the test harness in your development environment.
在开发环境中安装测试装具模块。
All the graphs in this article were generated with JMeter as the load generator, also know as the "test harness."
本文中的所有图形都是使用JMeter作为负载生成器(也称“测试用具”)的情况下生成的。
To indicate that a test case is asynchronous, the test case alerts the harness by returning a doh.Deferred object.
要指示一个测试用例是异步的,此测试用例需要通过返回一个doh . Deferred对象来提示doh。
For these reasons I am not going to build a test harness for the pingwww program.
由于这些原因,对于pingwww程序,我不会构建测试装置。
I should really just put it in a nice test harness, where I run 100, 200, 1,000 trials, but I didn't want to bore you with that here.
我应该把它放到一个测试组件中,我运行100次,200次,1000次,但是我现在不想用这个来烦你们。
应用推荐