Listing 10. The viewport test code.
清单10.viewport测试代码。
What if there are tens or hundreds of locators in the test code?
万一这段测试代码里面有几十上百个定位器怎么办?
The test code at the bottom then sets the value and prints out the new value.
底部的测试代码设置值并打印出新值。
The test code at the bottom starts by deleting all the entries from the database.
底部的测试代码先删除数据库中的所有条目。
Listing 6 shows the main parts of the test code I'll use to check out the performance.
清单6显示用于检查性能的测试代码的主要部分。
Look at all of the scaffolding that was necessary to support two actual lines of test code!
看到了吗?这么多代码只是为了支持两行测试代码!
This is probably a bug, either with the build of Chrome used for this test or with the test code.
这可能是一个bug,问题或是出在用于此次测试的Chrome 的构建,或是出在检测代码。
For instance, run the test code in the server context itself, where the component will be running.
例如,在这个服务器自身中运行这个测试代码,并且这个组件将在这里运行。
The framework enforces the separation of UI modules from the test code, allowing easy refactoring.
框架实行UImodule和测试代码的分离,从而有利于重构。
Before looking at the test code, you need a better understanding of the Rails user interface layer.
在查看测试代码之前,需要对Rails的用户界面层有更好的理解。
The output of each section of match test code is sorted, then added to the overall suggestion link list.
首先,对匹配测试各部分的输出进行排序,然后将其添加到总建议链接列表。
The performance comparisons use the same test code as earlier articles, a seismic data retrieval service.
性能比较使用与之前文章相同的测试代码,即地震数据查询服务。
Testing the form validation can also be done in the unit test (Listing 19 shows the form validation test code).
表单验证的测试也可以在单元测试中完成(清单19展示了表单验证的测试代码)。
The sample you can download from the JiBX site includes an example based on the Part 2 test code (see Resources).
您可以从JiBX站点下载样本,它包含一个基于第2部分测试代码的示例(请参阅参考资料)。
Developed the test code according to the project specification using the Suggested steps and the JUnit framework.
根据工程规范,使用建议步骤和JUnit框架开发测试代码。
To test code that accesses hardware, you must write a piece of code that responds in a way similar to the hardware.
为了测试访问硬件的代码,必须编写一段按照与硬件相似的方式做出响应的代码。
At the same time, recording all test scenarios can create duplicate test code when you're testing similar scenarios.
同时,在测试与以前类似的场景时,记录所有测试场景会创建重复的测试代码。
The self-test code (the command-line usage) provides a straightforward template for any importing module to follow.
自测代码(命令行用法)为任一导入模块提供了一个可遵循的简单模板。
This can make test writing simpler and less error-prone, and also result in test code that is shorter and more readable.
这会简化测试的编写并减少错误,还会使测试更简短、可读性更好。
Analysis can be performed from time to time whenever source code or test code changes, to see what it might uncover.
只要源代码发生变化,分析可以一直进行,以看看有什么发现。
Creating the test code using the Selenium IDE may be easy to use initially, but it is difficult to generalize and refactor.
使用SeleniumIDE生成测试代码,这可能在一开始比较容易,但归纳和重构起来就很困难了。
More than likely, the test code would have to be reviewed in its entirely to locate the lines that needed to be updated.
更有可能发生的是,这段代码需要逐行检查才能找出那几行需要更新的代码。
Response time breakdown shows you how much time was spent in each part of the system under test code as the system was exercised.
当这个系统运行时,响应时间细分数据为您显示了被测试系统的每一部分所花费的时间。
Since this doesn't side-step patents, though, any issues relating to the test code that infringe on patents may still be a problem.
但这么做却无法回避专利问题,因此与这些侵犯了专利的测试代码相关的内容依然是个问题。
A set of command line tools that do the dirty work of setting up directory structures and creating initial production and test code.
一组命令行工具,用于进行设置目录结构和创建初始生产及测试代码的修改工作。
Note: I used Apache Directory Studio to change the user's password to a value that I could put into the test code to make sure it worked.
注意:我使用ApacheDirectoryStudio来将用户的密码更改为一个能放入测试代码以确保它工作的值。
But forcing the public API to accommodate factory objects or abstract factories, just because the test code wants it to, is the wrong design.
但强迫公用api适应工厂对象或抽象工厂(只因为测试代码要求它这样)是错误的设计。
There is no need to write and test code during a method development project, but there is still a need for testing all links and usage threads.
在方法开发项目中,没有必要编写和测试代码,但是仍然需要测试所有的连接。
Starting with the results JSP that is generated with the client, you will see that the test code would invoke and display the Web service results.
从客户端生成的结果JSP开始,您将看见测试代码将调用并显示Web服务结果。
It reduces redundant test code and can enforce a standardized mechanism to perform some tasks and keep track of values returned by the API methods.
它减少了冗余测试代码,能够强制使用标准的机制执行任务,并且可以跟踪api方法的返回值。
应用推荐