testng-parallel

  • For method-level parallelism, then each method has a thread enabled and the execution order is not correct.
    • Share a picture
  • If you want the methods to be executed in order, you need to add Dependency

Share a picture< /p>

The execution results are as follows:

share picture

  • Parallel of classes. There is a problem with the classes level, that is, if the time-out time is specified in the suit tag, parallel=”classes” will not take effect. It hurts, haha

Share pictures

  • For test level, just specify parallel=”tests “

Share pictures

Leave a Comment

Your email address will not be published.