Often, the system seems difficult to test because you're trying to test a method and not a fixture.
进行系统测试之所以困难,是因为您经常尝试测试某个方法,而不是检测某个装置。
The test fixture refers to state intended to be the fixed for all tests in the page.
测试夹具用以给页面中所有的测试准备状态。
Don't test the implementation; test the 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.
只有在需要更改超时值、执行设置操作或在测试后要拆除数据时,才需要构造一个测试装置。
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 bulk of code in the JUnit is in the JUnit Fixture (see Resources), the portion of the JUnit test that sets up the common structures for testing across all the tests.
JUnit中的大量代码都在JUnitFixture(请参见参考资料)中,即设置跨所有测试的通用测试结构的JUnit测试部分。
The tearDown function provides the test author with his or her opportunity to clean up or reset the test fixture.
tearDown函数则给测试者提供了另外一个机会,可以去清除或者重置测试夹具。
The setUp function provides the test author with his or her opportunity to optionally construct a test fixture.
setUp函数给测试者提供了一个机会,可以选择在此构造测试夹具(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将示例数据装载到数据库表中。
Before each test case, the Rails testing frameworks will completely erase each model's data and load each fixture that you specify for each test case.
在处理每个测试用例前,Rails测试框架会完全删除每个模型的数据并加载为每个测试用例所指定的每个固件。
The fixtures method automatically loads the fixture corresponding to the given model name at the start of each test method in the test case.
在测试用例中的每个测试方法的开头,fixtures方法自动地装载与模型名对应的fixture。
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。
Listing 22 has a test suite in which only one out of three tests is using fixture.
在清单22给出的测试套件中,三个测试中只有一个使用装备。
As you know, that command generates your model, migration, unit test, and even a default fixture.
正如您所知,该命令可生成模型、迁移、单元测试甚至一个默认的fixture。
To ensure measurement accuracy, check the test fixture for light leaks at doors and door hinges, tubing entry points, and connectors or connector panels.
为了确保测量的准确度,应当检查测试夹具的门、门铰链、管道进口点、连接器和连接器面板等处是否漏光。
Keep in mind that this GUI is simple for a reason: It demonstrates three of TestNG-Abbot's fixture classes and a few test cases to boot!
记住该GUI之所以简单只有一个原因:它演示了TestNG - Abbot的三个fixture类以及一些要引导的测试用例!
The Rails fixture loading mechanism is already in place so you do not have to add additional code to tell Rails to load the test data.
Railsfixture装载机制已经就位了,所以不需要添加额外的代码来装载测试数据。
In Listing 1, I've created a TestNG test (that doesn't actually have any tests in it) that USES TestNG-Abbot's AbbotFixture object in a fixture to hold an instance of my Word Finder GUI.
在清单1中,我创建了一个TestNG测试(实际上并没有对其做任何测试),该测试在fixture中使用TestNG - Abbot的AbbotFixture对象来存放WordFinder GUI的实例。
The following paragraphs discuss cable and test fixture requirements and types of connectors generally used when making low level measurements.
以下各段将讨论在进行低电平测量时对电缆和测试夹具的要求以及常用的连接器类型。
Mark any test [parallelizable] and it will be permitted to run in parallel with other parallelizable tests in the same fixture.
只要给测试用例(test)加上[parallelizable]属性,这个测试用例就可以和同一个测试套件(fixture)中其他拥有该属性的测试用例并行运行。
Also note that just because a test or fixture is marked parallelizable does not mean it will run in parallel with other tests in particular.
特别需要注意的是,仅仅为测试用例或测试套件添加[parallelizable]属性,并不意味着它一定会和其他的测试并行运行。
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,它将在测试级别上运行。
The folks interested in solving their problem were only interested in the fixture and test article that came under their responsibility.
想要解决他们问题的试验人员只对他们职责范围内的夹具和试件感兴趣。
To make the framework work with Table 1, you must create a fixture, or an intermediary Test Adapter class that tells FIT how to talk to your software.
要让框架能够处理表1,必须创建一个fixture,或创建一个中间Testadapter类,告诉FIT如何与您的软件通信。
To prevent electrostatic interference, the capacitor is placed in a shielded test fixture.
为避免静电干扰,该电容器应放在一个屏蔽的测试夹具内。
To minimize noise and leakage resistance, the resistor should be placed in a shielded, guarded test fixture.
为了尽量降低噪声和泄漏电阻的影响,应当将电阻器放在一个屏蔽、保护的测试夹具中。
Instead of using custom attributes to use a contract verifier, we now use a read-only field in the test fixture.
我们现在使用一个只读字段来标示contract验证器,从而取代了过去使用的自定义属性。
Define and design tooling, fixtures andprograms used in assembly and test process, lead regular tooling/fixture/program verificationor calibration activities.
定义和设计装配和测试过程中使用的工装,夹具及程序,领导定期的工具/夹具/程序确认或校验活动。
The fixture class is derived from the: : testing: : test class declared in gtest.h.
这个装备类派生自gtest . h中声明的:testing:test类。
To report results directly, JUnit tests could implement test, but then they would lose the other features of TestCase (pluggable selector, fixture handling, rerunning test cases, etc.).
为了直接报告结果,JUnit测试可以实现Test,但这样就失去了TestCase的其他特性(可插接的选择器、装置处理、重新运行测试用例等)。
应用推荐