对于分离容器(Separate Containers)体系结构,为了进行多线程测试,Tomcat的server . xml中的设置需要作如下调整。
For multithreaded testing for Separate Containers, Settings in Tomcat's server.xml were adjusted as follows.
在实践中,数据流变量提供一种不错的方式来将值从一个线程传输到另一个线程,且它们通常用于传输多线程单元测试中的结果。
In practice, dataflow variables provide an excellent way to communicate values from one thread to another, and they are commonly used to communicate results in multithreaded unit tests.
与多线程相似,这带来对测试的挑战:在正常环境中,分组往往是按正确的顺序到达,实际上并没有测试混乱处理功能。
Similar to multithreading, this presents a testing challenge: in a normal environment, the packets tend to arrive in perfect order, and the perturbation-handling functionality is not actually tested.
应用推荐