All seems well until I try running the test, whereupon I get the exception in Listing 2.
似乎一切正常,但在运行测试时出现了如清单2所示的异常。
The beauty of using JUnit is that the framework takes care of loading the test class, running the test, and reporting the results.
使用JUnit的美妙之处在于,该框架负责装入测试类、运行测试以及报告结果。
IBM Rational Performance Tester enables you to create any number of test projects, recordings, and schedules for running the test scripts.
IBMRationalPerformance Tester使您能够为运行测试脚本创建任意数量的测试项目、录制和时序安排。
The difference is subtle: running the test without the optional flag helps you understand the total time, even in the case of a failure.
区别很微妙:在一个失败的样例中,不带可选标志运行测试可以帮您了解运行总时间。
The end result of running the test should look like Figure 14 following: a list of continents that you can expand to see the countries under them.
运行测试的结果应该如图14所示:各大洲的列表,您可以展开它以查看该洲区域内的国家。
In this example, we set the think time for this schedule at 2 seconds before running the test, unlike the default, which USES recorded think time.
在这个例子中,我们在运行测试之前,为这个调度设置了一个两秒钟的思考时间,不像默认的那样,使用记载的思考时间。
Make sure you change the dbname in the script to the correct name for your database, and then create the users user1 and user2 before running the test.
确保您将脚本中的dbname更改为了自己数据库的名称,并在运行测试之前创建用户user1和user2。
Running the test case defined in Listing 2 yields two passes!
运行清单2中定义的测试用例会产生两个通过结果!
Run the tests often. When you update, before you commit, during development. Running the test suite (or at least a relevant portion of it) should be part of your development cycle.
经常测试修改的时候要测,提交前要测,开发期间要测。运行测试套件(至少也是其中的相当的一部分)应该成为你开发周期的一部分。
Run the tests often. When you update, before you commit, during development. Running the test suite (or at least a relevant portion of it) should be part of your development cycle.
经常测试修改的时候要测,提交前要测,开发期间要测。运行测试套件(至少也是其中的相当的一部分)应该成为你开发周期的一部分。
应用推荐