Added invocationCount=10 to each of the methods. Outputs are still not
interleaved. I also tried with count 20, 30 but still sequential
behavior. Obviously there is something I am missing here.
To explain it further I am trying to write my selenium scripts so that
my two test groups can run in parallel. So eventual goal of my
experiment is to run two browsers at the same time and run tests in
parallel.
Thanks Cedric for helping out.
C:\TestNGParallelRuns\testng1.xml
Hello there 1st thread
Hello there 1st thread
Hello there 1st thread
Hello there 1st thread
Hello there 1st thread
Hello there 1st thread
Hello there 1st thread
Hello there 1st thread
Hello there 1st thread
Hello there 1st thread
===============================================
customer
Total tests run: 10, Failures: 0, Skips: 0
===============================================
[TestNG] Running:
C:\TestNGParallelRuns\testng2.xml
Hello there 2nd thread
Hello there 2nd thread
Hello there 2nd thread
Hello there 2nd thread
Hello there 2nd thread
Hello there 2nd thread
Hello there 2nd thread
Hello there 2nd thread
Hello there 2nd thread
Hello there 2nd thread
===============================================
dept
Total tests run: 10, Failures: 0, Skips: 0
===============================================