Exams should be a method to test whether students grasp the knowledge or not instead of a burden on them.
考试应该是检测学生是否掌握知识的一种方法,而不是成为学生的负担。
Instead of having a test method per use case, we have a text file containing the expected generated code and a optional text file containing the expected compiler messages.
和每个用例有一个测试方法不同,我们有一个文本文件包含所期望的生成代码以及包含所期望编译器消息的可选文本文件。
With the mechanics out of the way, note that I made a few design decisions in my test method.
有了这些原理之后,要注意,我在测试方法中制订了一些设计决策。
If the test method happens to take longer than 1000 milliseconds to execute, it fails.
如果执行该测试方法所花的时间多于1000毫秒,则测试失败。
Within that directory, we have one directory per test method, whose name exactly matches the method name.
在该目录中,我们对每个测试方法都提供了一个目录,其名称完全匹配该方法名称。
The four steps to this combination test method are: test selection, system resource utilization evaluation, kernel code coverage analysis, and final stress test evaluation.
这一组合测试方法的四个步骤是:测试选择、系统资源利用率评价、内核代码覆盖分析以及最终的压力测试评价。
The execution model is a bit strange: The test class is reinstantiated every time a test method is executed.
执行模型有点奇怪:每次执行一个测试方法的时候,都要重新实例化测试类。
I need to decide if I will have just one test method or many test methods for the different test cases.
我需要决定对不同的测试用例是使用一个测试方法还是多个测试方法。
Every test method can be associated with one or more groups; once you've defined these groups, you can choose to run only certain groups of tests.
每个测试方法都可以与一个或多个组相关联,但可以选择只运行某个测试组。
If the test method does not run as anticipated, we will get an error (and a traceback describing the error).
如果测试方法没有按预期运行,我们将得到一个错误(以及描述这个错误的回溯)。
That's why the main test method in Listing 1 USES a while loop instead of a new for loop.
这就是为什么清单1中的main测试方法使用while循环而不是一个新的for循环。
Finally, add some code in your main test method to print out and execute the generated SQL query.
最后,在main测试方法中添加一些代码,用以输出和执行所生成的SQL查询。
The business value of running scalability and performance tests comes once a business formalizes a test method that includes the following.
一旦企业形成一套包含以下几个方面的测试方法,连续的可伸缩性和性能测试就会产生企业价值。
You may have several.tspec files for each test method; they will be executed in alphabetic order.
每个测试方法可以具有多个. tspec文件;它们将按字母顺序执行。
AfterTestMethod methods are executed after the execution of every test method in a class.
afterTestMethod方法在类中的每个测试方法执行之后执行。
JpaTests class USES a shadowing classloader to enhance classes on the fly. It wraps each test method around a transaction and also provides a helper for declaring base Application Contexts.
AbstractJpaTests类使用了一个后台classloader在运行时增强类,它围绕事务来包装测试方法,同时提供帮助类来声明应用上下文。
BeforeTestMethod methods are executed before the execution of any test method in a class.
beforeTestMethod方法在类中的任何测试方法执行之前执行。
Finally, Rails rolls those changes back to return the database to the state that existed before the test method ran.
最后,Rails回滚这些变化,将数据库返回到测试方法运行之前的状态。
This is true for mock objects defined in a common setUp() method or within the actual test method.
这对于在公共的setUp()方法中或在实际测试方法内定义的模拟对象来说是正确的。
Your test class now has a protected field called account, and the test method initializes it.
现在您的测试类有一个叫做account的受保护的字段,测试方法对其进行了初始化。
The JUnit framework runs the setUp method before each test method, so that's the logical place to do any set up that every test needs.
JUnit框架在每个测试方法之前运行setUp方法,因此这就是进行所有测试需要的任何设置的逻辑场所。
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。
In addition, it is desirable to prefix the test method name with "test" so that the test runner will execute all methods automatically.
此外,合适的是测试方法名称都有一个“test ”前缀,这样测试运行人员就可以自动地执行所有的方法。
In JUnit on the other hand, the test page equivalent is a test case, and the test runner would instantiate a separate test case instance for each test method. In other words.
从另一方面来说,在JUnit中,测试页面等同于一个测试用例,testrunner会给每个测试方法生成一个单独的测试用例的实例。
The JUnit naming convention states that all test method names should begin with the word "test."
JUnit命名约定规定所有测试方法名称都应以单词“test”开头。
Move the line that initializes account from the test method to setUp , then delete the declaration and initialization from the other test method. Your test class should now look like Listing 8.
将初始化account的代码从测试方法移到setUp,然后删除其它测试方法中的声明和初始化。
The JUnit 3.8 naming convention states that all test method names should begin with word test.
JUnit 3.8命名约定规定所有测试方法名称应以单词 test开头。
You should see one dot for each test method, and OK (1 test) at the end of the test run.
每个测试方法应该都有一个点,并且在运行完成后会显示OK (1test)。
Static trials represent an experimental test method of defected mode and static strength of a plane construction.
静力测试提供了一种检测飞机机体结构破坏模式以及静强度的试验方法。
Test method for total inward leakage of filtering particle respirator.
过滤式防微粒口罩总透漏率的试验方法。
应用推荐