另一方面,如果您根本不了解与测试覆盖率相关的包耦合的知识,那么为替换第三方库确定的时间最多就是个猜测!
On the other hand, if you know nothing of a package's coupling related to its test coverage, then ascertaining the time to replace a third-party library is, at best, a guess!
(自动的数据关联),测试生成器自动检测到当前请求中要替换的前一个值。
Automatically (automated data correlation), where the test generator automatically detects the previous value to substitute in the current request.
在内心建立用控制反转编写软件的思想,会使得进行单元测试更加容易,因为你可以替换真实实现而在测试中进行模拟。
Writing your software with inversion of control in mind also makes unit testing much, much easier, because you can swap out real implementations for mocks in your tests.
我开始将我单元测试中初始化任务库各个类的范例代码替换成我尚未实现的DSL的范例代码,并且修改了数次,直到我满意为止。
I began by replacing the example code in my unit test which instantiates the task library's classes with example code for my unimplemented DSL and revised it several times until I was satisfied.
那次,我使用了1.4.1的JVM进行测试,结果发现,生成的代码运行起来可能要比它替换的反射代码更快。
At that time, I tested with a 1.4.1 JVM and found that the generated code could run much faster than the reflection code it replaced.
要在您自己的服务器上测试它,需要替换清单5中的api键,如图38所示。
To test this on your own server, you need to replace your API key in Listing 5, which is shown in Figure 38.
该公司已经为英国国防部交付了SPV400进行测试,以及其他供应商提供的两台车辆,以期待以更好地保护车辆替换路虎“夺取”型军车。
The company has delivered the SPV400 to the U.K. Ministry of Defence for trials alongside machines from two other suppliers in hopes of replacing the Snatch Land Rover with a better protected vehicle.
该公司已经为英国国防部交付了SPV400进行测试,以及其他供应商提供的两台车辆,以期待以更好地保护车辆替换路虎“夺取”型军车。
The company has delivered the SPV400 to the U.K.Ministry of Defence for trials alongside machines from two other suppliers in hopes of replacing the Snatch Land Rover with a better protected vehicle.
然后测试变量会替换为测试的记录值(用户名与密码)。
The test variable is then substituted for the test's recorded values (username and password).
通过使用复杂名称元素替换简单名称元素来更新测试文档。
Update the test document by replacing the simple name element with a complex name element.
MapReduce簇可以通过替换函数子和提供新的数据源来重新使用,而无需每次都对整个应用进行编译,测试和部署。
MapReduce clusters are reused by replacing the functors and providing new data sources without having to build, test, and deploy a complete application every time.
切勿替换或除去这三行,否则WebSphere测试环境可能无法正确启动。
Do not replace or remove these three lines, or the WebSphere Test Environment may fail to start up properly.
这个测试使用了一个手动编写的 mock对象来替换FrogMobile。
This test uses a hand-written mock object to replace the FrogMobile.
请牢记,DbUnit并没有替换数据库;它只是提供了一种更加有效的机制来处理测试数据。
Keep in mind, DbUnit doesn't replace a database; it provides a more efficient mechanism for handling test data.
在下面的示例中,我们使用 "dc=CIFS2k3,dc=in,dc=ibm,dc=com"测试域替换它。
In the following example, we replace it with our test domain of "dc=CIFS2k3,dc=in,dc=ibm,dc=com".
这种灵活性使得你能够更加容易地进行单元测试,因为在测试期间,你可以将真实组件替换为Mock对象。
This flexibility also makes unit testing your code much, much easier, since you can swap out real components for mock objects during your tests.
并且测试新的危害较小的HF C气体(R407a),在2012年前将用其替换现在店铺所用冰箱使用的HF C气体(R404a)。
It is also trialing a new, less damaging type of HFC gas (R407a) to replace existing HFC (R404a) gas in in-store fridges by 2012.
为了演示这个框架的使用方法,我把main 替换为清单 2中的代码,从而重新对 清单1 中的代码进行基准测试
As a quick application of the framework, I'll rebenchmark the code in Listing 1 by replacing main with the code in Listing 2
生产数据很可能不包含您想要测试的许多特殊情况,并且这不是理想测试场景的一个替换。
Production data will most likely not contain many of the special cases you'll want to test for, and it's not a replacement for well-thought-out test scenarios.
在ksh (aix中使用的默认shell)中,以及UNIX和Linux使用的其他shell中,一定要知道如何使用测试、逻辑和替换操作符。
In KSH, the default shell used in AIX, as well as other shells used in UNIX and Linux, it's important to know how to use test, logical, and substitution operators.
您需要注意的是,不要通过替换每个与模式相匹配的文本节点来测试它是否是该父元素中的第一个文本节点。
You have to be careful not to replace every text node that matches the pattern, so test whether it's the first text node in that parent.
尽管测试成绩喜忧参半,而且学校四年后替换了它,但杰克逊还是只要可能就继续使用它。
Test scores were mixed, and the school replaced it four years later. But Mr. Jackson continued to use it when he could.
您可以使用您自己的字符串,或者来自另一个数据源的值来替换该值,这些数据源包括数据汇,引用,通用代码,或者其他的测试变量。
You can substitute this value with your own text string or a value from another data source, such as a data pool, reference, custom code, or another test variable.
可能测试费会比较高,但是,大部分都会远远低于可替换课程的学费。
Testing fees can be pricy, but are almost always significantly lower than tuition for the courses they replace.
然而,对于使用大量测试数据构造起来的真正可升级的测试实例来说,替换数据池也许并不是最佳的解决方案。
However, for truly scalable test cases built by using a huge set of test data, substituting Datapools may not be the best solution.
还要注意的是图表不再从0%到100%,而替换为测试的度量数字。
Notice also that the chart no longer runs from 0% to 100%, but instead measures number of tests.
如果使用单元素方面(默认的),那么对于方面的字段所做的所有改变,如用mock替换一个字段,在测试结束时都必须撤销。
If you use singleton aspects (the default), any change you make to an aspect's fields, such as replacing one with a mock, must be undone at the end of the test.
注意:这里的Page_Name将会被测试日程中的页面标题替换,在测试日程中每一页面将会有一个单独的列。
Note: Page_Name here will be replaced by the page titles in your test schedule, and there will be a separate column for each page in the test schedule.
您又是怎样来平衡那些需要完整的容器、数据库的端到端(endto end)测试和用Mocks替换关键的JEE构件而进行的轻量级测试的呢?
How do you balance writing end to end tests that require a full container and database (but replicate the full environment) versus lighter tests that make use of mocks for key JEE constructs?
您又是怎样来平衡那些需要完整的容器、数据库的端到端(endto end)测试和用Mocks替换关键的JEE构件而进行的轻量级测试的呢?
How do you balance writing end to end tests that require a full container and database (but replicate the full environment) versus lighter tests that make use of mocks for key JEE constructs?
应用推荐