下面所示的是包含测试逻辑的ServiceClassTes t类代码。
The code for the ServiceClassTest class, which is shown below, contains the test logic.
测试逻辑可以很容易地使用决策表进行追踪与变更,这样可以被非程序员阅读和填写。
A testing logic easy to keep track of and to change with the decision tables that can be read and filled out by non-programmers.
这种方法清晰的将决策脚本中的测试逻辑封装与测试脚本中执行的测试动作和验证分离开来。
This approach clearly separates the testing logic encapsulated in the decision scripts from the test actions and verifications performed in the test scripts.
在模拟中使用业务项实例非常有用,特别是希望测试逻辑或者根据实际数据运行模拟时更是如此。
Using business item instances in a simulation can be useful, particularly if you want to test your logic, or run a simulation based on real data.
文中首先分析了时序元件的不可测因素,提出了扫描设计前增加测试逻辑的设计方法。
In This paper, based on analysis of the untested factors of the sequence cell, presents a design method, which the test logic inserted, before the scan design.
您可以从代码看到,测试逻辑非常简单:传入一个单词(比如pugnacious),然后验证相应的Label文本是否得到正确定义。
As you can see from the code, the test is logically simple: pass in a word (such as pugnacious) and then verify that the corresponding Label has the correct definition as its text.
在我先编写测试时,我有许多奇异的逻辑。
尽管如此,我还想获得更高级点的应用,我开始考虑测试中的逻辑是否可重复使用。
Getting a little more advanced, though, I want to start thinking about whether the logic in my tests is repeatable.
我们已经遵从逻辑测试成功地测试了传入数据,并且向用户显示了正确结果或者一些负面的反馈。
We have successfully tested the incoming data for compliance with the logical test and have either shown the user the correct result or some negative feedback.
该框架还支持测试套件的概念,这使我能以逻辑单元来组织测试。
The framework also supports the notion of test suite, which lets me organize the tests in logical units.
对于每种情况,我需要的只是被测试的组件的逻辑名称以及一系列步骤,以便创建场景。
All I needed for each case was a logical name for the component under test and a series of steps to create the scenario.
在本文的示例中,在运行每个逻辑测试集合前,我希望数据库具有一组干净的数据。
In my case, I'd like the database to have a clean set of data before each logical test collection is run.
当规则中所有测试及在其逻辑中使用的函数都是标量时,该规则就是标量的。
A rule is scalar when all the tests and functions used in its logic are scalar.
如果测试结果显示规则逻辑不能按照预想正常运行,修改相应规则定义。
If the test results show that the rule logic is not working as expected, modify the rule definition accordingly.
测试包括逻辑智力和形象化问题,还包括词汇问题和基础的物理化学问题。
The test includes logic puzzles and visualization problems, but it also has questions on vocabulary and basic physics and chemistry.
首先,我们将设置一个简单的逻辑测试用于检查确保燕子坠落的速度在规定的范围内,因为燕子的空中速度可能不同。
First we will set up a simple logical test that checks to make sure the speed of a swallow falls within a specified range, since the airspeed of a swallow may vary.
测试、分析并验证业务逻辑。
测试包括逻辑智力和形象化问题,还包括词汇问题和基础的物理化学问题。
S.The test includes logic puzzles and visualization problems, but it also has questions on vocabulary and basic physics and chemistry.
这种特性使得测试DAO逻辑变得非常简单,并且不会对数据库中的数据造成影响。
This feature makes testing your DAO logic easy and does not affect the data in your database.
执行逻辑测试来做出各种选择,比如隐藏还是显示某个元素。
Performing logical tests that determine such choices as whether to hide or show a particular element.
只有一个综合的,自动的测试组可以发现逻辑错误。
Only a comprehensive, automated test suite can find logic errors.
实现并测试数据逻辑。
我们还可以测试数据访问逻辑而无需关心gui。
You can also test the data access logic without concern for the GUI.
一些输入是数字或有指定的式样。在这些情况下,您可以使用逻辑过滤选项并针对表达式或其他逻辑测试检查数据。
Some input is numeric or has a specified pattern In these cases, you can use the logical filtering options and check data against an expression or other logical tests.
因此现在在进行修改向测试环境添加相同数目的逻辑分区之后,测试环境看上去将像原始的生产设置了,如下表所示。
So now, after making the changes to add the same number of logical partitions to test environment, the test should look like the original production setup, shown in the table below.
您将需要一个具有正确查找数据的活动数据库来测试GUI,和一个运行正常的GUI来测试数据访问逻辑。
You'll need a live database properly seeded with lookup data to test the GUI and a properly working GUI to test the data access logic.
模仿对象用来单独测试代码逻辑的一部分。
Mock objects are used to test a portion of your code logic in isolation from the rest of the code.
可以,只需在逻辑测试名或单元测试名前面加上 DISABLE_前缀,它就不会执行了。
Yes, simply add the DISABLE_ prefix to the logical test name or the individual unit test name and it won't execute.
可以,只需在逻辑测试名或单元测试名前面加上 DISABLE_前缀,它就不会执行了。
Yes, simply add the DISABLE_ prefix to the logical test name or the individual unit test name and it won't execute.
应用推荐