The setUp function provides the test author with his or her opportunity to optionally construct a test fixture.
setUp函数给测试者提供了一个机会,可以选择在此构造测试夹具(test fixture)。
The tearDown function provides the test author with his or her opportunity to clean up or reset the test fixture.
tearDown函数则给测试者提供了另外一个机会,可以去清除或者重置测试夹具。
As you can see in Listing 3, the Rails environment creates not just your model, but also migrations, a test case, and a test fixture.
如清单3所示,Rails环境不仅创建了模型,还创建了迁移、测试用例和测试fixture。
It is only when you need to alter timeouts, perform setup operations, or tear down data after a test that you would need to construct a test fixture.
只有在需要更改超时值、执行设置操作或在测试后要拆除数据时,才需要构造一个测试装置。
Instead of manually entering values in the browser to test your Rails application, you can use a test fixture to load sample data into your database tables.
不需要在浏览器中手工输入值以测试Rails应用程序,而是可以使用测试fixture将示例数据装载到数据库表中。
This is the problem that the test fixture is designed to solve.
这就是测试夹具设计要解决的问题。
Does the test fixture passed the incoming inspection before they are used?
在使用之前,治具是否通过了进料检验?
DUT is placed in test fixture such as diode, transistors, microstrip circuit and so on.
被测件放在测试夹具里,如二极管、晶体管、微带电路等。
A new hook test fixture has been introduced to test elastic loops using the head probe.
采用一种新的吊钩测试装置和探针测试弹性环。
To prevent electrostatic interference, the capacitor is placed in a shielded test fixture.
为避免静电干扰,该电容器应放在一个屏蔽的测试夹具内。
The requirement for a good test fixture is maximum stiffness for the lightest possible weight.
一台好的试验固紧装置应该是重量轻而刚度大。
The influence of coaxial cables and test fixture on the performance of filters was investigated.
研究了在测量时同轴电缆线和测量夹具对微波滤波器性能的影响。
To minimize noise and leakage resistance, the resistor should be placed in a shielded, guarded test fixture.
为了尽量降低噪声和泄漏电阻的影响,应当将电阻器放在一个屏蔽、保护的测试夹具中。
Figure 2-12 shows a high mega-ohm resistor (RDUT) supported on two insulators mounted in a metal test fixture.
图2 - 12示出了测试夹具上由两个绝缘子支撑的高阻器(RDUT)。
A previous test engineer had designed a test fixture so that he could test batches of this fuse for all spec items.
一个测试工程师以前曾设计了测试工装,以便对一批保险丝测试所有的指标条款。
The measurement principle and method of side force of SRM were introduced by using magnetic suspension test fixture.
简介了发动机磁悬浮试验架侧向力测量原理及方法。
A receptacle for each signal is mounted at the test fixture, and the cables are used to connect them to the switch CARDS.
在测试夹具上为每个信号安装一个插座,用电缆将其连接到开关卡。
Use the appropriate impedance coax cables, and completely shield the test fixture to prevent leakage of high level signals.
请使用合适阻抗的同轴电缆,并完全屏蔽测试夹具,以防大信号的漏泄。
Connect the shield of the test fixture to the LO of the electrometer and connect the LO of the electrometer to the LO of the source.
将测试夹具的屏蔽端连到静电计的LO端,再将静电计的LO 端连到源的LO端。
The following paragraphs discuss cable and test fixture requirements and types of connectors generally used when making low level measurements.
以下各段将讨论在进行低电平测量时对电缆和测试夹具的要求以及常用的连接器类型。
The goal for this chapter is just to introduce the concept of unit testing and give you an idea of what a test fixture looks like and how it is used.
本章的目的只是介绍单元测试概念并给出测试装置看上去像什么以及如何使用它的思想。
To ensure measurement accuracy, check the test fixture for light leaks at doors and door hinges, tubing entry points, and connectors or connector panels.
为了确保测量的准确度,应当检查测试夹具的门、门铰链、管道进口点、连接器和连接器面板等处是否漏光。
Oxygen gas transmission rate ( O2 GTR ) is determined after the package has been mounted on a test fixture and has equilibrated in the test environment.
氧气透过率(O2GTR)是将包装物固定在测试装置上并在测试环境中达到平衡后测定的。
If the test fixture runs without throwing any unhandled exceptions, and all of the Assert statements pass without problems, the test Results window shows a green light.
如果测试装置运行后没弹出任何未处理异常,并且所有断言都通过而没有问题,测试结果窗口显示绿色信号。
As Listing 5 shows, defining a basic set of tests does not require a lot of code per test, even if it requires a test fixture to execute it due to needing to alter the default timeout.
如清单5所示,定义一组基础测试并不需要太多代码,即便由于更改默认超时值而需要用测试装置来执行测试也是如此。
The errors caused by the phase uncertainties of embedded parameters are deleted. In addition, LRL method can be used to DE - embed the s parameters from the microwave transistor test fixture.
由于利用代数消去法,去除了嵌入参量相位不确定性引入的误差,LRL法可用于微波晶体管测试夹具的去嵌入。
A kind of vertical test fixture for firing test of high thrust and short time motor with fore nozzles was designed. Its dynamic characteristics are analyzed and satisfactory results are obtained.
设计了一种适用于前置多喷管大推力短时间特种发动机点火试验的立式试车架,设计中对其动态特性进行了分析,获得了满意结果。
Therefore, it is necessary to carry out the research of vibration test for automotive electrical systems, especially, the research of the design method of the key equipment - vibration test fixture.
因此,有必要开展汽车电器系统的振动试验,特别是试验的关键设备—振动试验夹具的设计方法的研究。
Therefore, it is necessary to carry out the research of vibration test for automotive electrical systems, especially, the research of the design method of the key equipment - vibration test fixture.
因此,有必要开展汽车电器系统的振动试验,特别是试验的关键设备—振动试验夹具的设计方法的研究。
应用推荐