This video will explain -
invocationCount: The number of times a method should be invoked.
threadPoolSize: The size of the thread pool for a method.
timeOut: this works with threadPoolSize
===============
invocation count = 3, Threadcount - 2, timeout 2000
my first testng test
my first testng test
Thread: 14 - 1.21sec
Thread: 13 - 1.21 sec
Thread 13 - 1.21 - failed
2.42 sec
=============
invocation count = 3, Threadcount - 3
my first testng test
Thread: 1
my first testng test
Thread: 1
my first testng test
Thread: 1
==================
invocation count = 3, Threadcount - 2
my first testng test
my first testng test
Thread: 13
Thread: 14
my first testng test
Thread: 14
======How parallel works ======
Task 1 - part - 1st
Task 2 - part - 2nd
Task1 - rest part - 1st
Task1 - rest
Blog - https://qavalidation.com/testng-tutorial/
Code repo - https://github.com/sunilpatro1985/SeleniumTopics