Parallel and Distributed multi-threaded execution

Scene: 1000 test, performing a clock used in Example 1, a person performing the test need 1,000 minutes. Normally we would buy time with the cost of labor costs, plus several people perform together, time will shrink

short. If you only need 10 people to perform together 100 minutes, which is a kind of parallel testing, distributed scenarios.

  • Solve: pytest distributed execution plug-in: pytest-xdist, multiple CPU or host execution

  • Premise: use are independent, there is no order between patients randomized able to run, run repeatedly without affecting other use cases.

  • Installation: the install pytest PIP3-xdist
    • CPU plurality of parallel execution cases, is added directly to the number of parallel -n 3: pytest -n 3 • performed together at a plurality of terminals

 

Guess you like

Origin www.cnblogs.com/QaStudy/p/11567166.html