Что для этого нужно и во сколько потоков они вообще могут выполняться?
это некорректный вопрос :) вопрос в тест раннере, а не в селениуме
5.11.2 - Parallel tests, classes and methods The parallel attribute on the <suite> tag can take one of following values: <suite name="My suite" parallel="methods" thread-count="5"> <suite name="My suite" parallel="tests" thread-count="5"> <suite name="My suite" parallel="classes" thread-count="5"> <suite name="My suite" parallel="instances" thread-count="5"> parallel="methods": TestNG will run all your test methods in separate threads. Dependent methods will also run in separate threads but they will respect the order that you specified. parallel="tests": TestNG will run all the methods in the same <test> tag in the same thread, but each <test> tag will be in a separate thread. This allows you to group all your classes that are not thread safe in the same <test> and guarantee they will all run in the same thread while taking advantage of TestNG using as many threads as possible to run your tests. parallel="classes": TestNG will run all the methods in the same class in the same thread, but each class will be run in a separate thread. parallel="instances": TestNG will run all the methods in the same instance in the same thread, but two methods on two different instances will be running in different threads.
Обсуждают сегодня