AM:作为测试的一部分,你想要能够模拟产品环境的条件并对软件进行压力测试,从而观察是否以及什么时候会失败。
AM: As part of testing, you want to be able to simulate production environment conditions and then stress test the application to see if and when it fails.
在负载测试中,多个用户同时访问程序,以模拟预期的软件程序使用情况。
In load test, multiple users access the program concurrently to simulate the expected usage of a software program.
在内心建立用控制反转编写软件的思想,会使得进行单元测试更加容易,因为你可以替换真实实现而在测试中进行模拟。
Writing your software with inversion of control in mind also makes unit testing much, much easier, because you can swap out real implementations for mocks in your tests.
应用推荐