I completely isolate the code under test to the controller layer.
要测试的代码被完全限制在控制层。
The code under test, shown in Listing 13, is simplicity itself.
清单13所示的测试中的代码本身十分简单。
Don't make your tests more complicated than the code under test.
不要使您的测试代码比被测代码更复杂。
It runs the latest, rebuilt, versions of the test and the code under test.
而是运行测试和测试代码的最新的、重新生成版本。
Only after you have your tests written (and failing) do you write the code under test.
只有在编写了测试(并失败)后,您才可以编写测试中的代码。
This method is one that I would use when I do not have the ability to change the code under test.
这种方法是当我不能改变测试中的代码时所使用的。
Both Fit and Cucumber needs "glue" code that sits between the high level language and the code under test.
Fit和Cucumber都需要“胶合”代码,它处于高级语言和测试语言之间。
This rebuilds changed projects and then runs the rebuilt versions of the test and the code under test.
这样将重新生成发生更改的项目,然后运行测试和测试代码的重新生成版本。
Test cases also serve as adept documentation because they implicitly demonstrate how the code under test works.
测试案例因为暗示了代码在测试工作中是如何工作的,所以还可以充当内行的文档。
If you find that you're having difficulty writing a test, it's a red flag that the code under test may be complex.
如果您发现自己难以编写某一代码,那么这是一种警示,表示正在测试的代码可能很复杂。
Unit tests often need to test nuanced behavior of the code under test, leading to similar and duplicated situations.
单元测试常常需要测试有细微差异的代码行为,因此涉及到相似和重复的情况。
They all typically use some form of instrumentation of the code under test, which inserts hooks into the product code.
它们都典型地使用被测代码的某种形式的装置,这将钩子(hooks)加入了产品代码中。
By default, private, internal, and friend elements in your code under test are not visible to your test code, but you can still test them.
默认情况下,测试代码中的私有、内部和友好元素对测试代码不可见,但您仍然可以测试它们。
If you changed code or test Settings, you can run the latest versions of the tests and code under test while using the latest test Settings.
如果更改了代码或测试设置,可以使用最新的测试设置来运行测试和测试代码的最新版本。
If. you modify the tests or the code under test, you can choose to run either the original code or the re-compiled code when you re-run your tests.
如果您修改这些测试或受测试的程序码,则可在重新执行测试时选择执行原始的程序码或重新编译过的程序码。
By placing assertions inside the mock code, you can verify that the code under test is passing the correct arguments to its collaborators at the right time.
通过把断言放在mock代码中,可以检查要测试的代码是否在适当的时候把适当的参数传递给它的协作者。
If you changed the code under test or the code of your tests, this action does not rerun the same versions of that code that you ran the previous time.
如果更改了测试代码或测试的代码,此操作不会重新运行上次运行代码时的同一版本。
Mock objects mimic the behavior of classes written with the sole purpose of guiding code execution so that it falls within those areas under test.
模拟对象将模仿出于指导代码执行的惟一目的而编写的类的行为,以便它在测试时符合代码执行要求。
The original EAR file contains code that assumes that it will be installed under port 8080, which is what the test environment USES by default.
原先的EAR文件包含假定它被安装在8080端口(这是测试环境使用的缺省端口)的代码。
Instead of placing building blocks under measured forces to test their structural integrity, software engineers write code for their testing.
与通过施加压力来测试建筑砖块的结构完整性不同的是,软件设计者靠编写代码来测试他们的程序。
The complete code listing can be found in Dojo 1.6 under the test directory for dojox.mobile.
完整代码清单见dojox.mobile测试目录之下的Dojo 1.6。
Figure 1 shows the test cases run on the left, with the visualization of the code execution on the right under the test Page TAB. (Click here to see a larger version of Figure 1.)
图1在左侧显示了运行的测试用例,而在右侧TestPage选项卡下则可视化显示了代码执行(单击这里可以看到图1的放大图)。
The RSpec descriptions go in a describe method, and you pass in the name of the class under test and a code block that has the actual spec.
describe方法提供了RSpec描述,您将传入测试类的名称和包含实际规范的代码块。
Typically, you will use the separation of concerns principle when you plan how you will divide and structure your test code for application-under-test features and behaviors.
通常,在您计划如何为被测试应用的特性和行为进行分离和组织测试代码时,您将会使用关注分离这个基本原理。
Response time breakdown shows you how much time was spent in each part of the system under test code as the system was exercised.
当这个系统运行时,响应时间细分数据为您显示了被测试系统的每一部分所花费的时间。
There are multiple ways to code test scripts, depending on the skill of the tester and the complexity of the application under test.
编写测试脚本有很多种方式,这取决于测试员的技巧和测试程序的复杂程度。
This is a little misleading since the source code has been converted and now exists under our component test project.
这是一点小小的误导,因为源代码已被变换并且现在处于组件测试项目中。
Things went horribly wrong for test pilot Ken Collins (flying under his Area 51 code name Ken Colmar) when testing the plane's subsonic engines at low altitude.
试飞员肯·柯林斯(他在51区的飞行代号为肯·科尔马)在低空测试飞机的亚音速发动机时遭遇了可怕的事故。
The Selenium architecture essentially consists of two logical entities: the test code you write and the Selenium server, which facilitates interactions with the application under test.
Selenium架构实际上由两个逻辑实体组成:您编写的代码以及能够简化与测试中的应用程序的交互的 Selenium服务器。
I set an int delay variable to 1500 (milliseconds) to feed to the Thread.Sleep method so I can pause 1.5 seconds at various points in the test automation. To launch the app under test I use this code.
我为Thread. Sleep方法设置了一个值为1500(毫秒)的整型延时变量,这样在测试自动化的各个时刻都可以暂停1.5秒。
应用推荐