Closed prasanta-biswas closed 7 years ago
@prasanta-biswas
From the stack trace you shared, it looks like a problem with the IntelliJ TestNG plugin (that piece is not owned by the TestNG project)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.remove(ArrayList.java:492)
at org.testng.IDEATestNGRemoteListener.onSuiteStart(IDEATestNGRemoteListener.java:167)
at org.testng.IDEATestNGRemoteListener.onTestStart(IDEATestNGRemoteListener.java:197)
at org.testng.IDEATestNGRemoteListener.onConfigurationStart(IDEATestNGRemoteListener.java:140)
Just to confirm this, can you please let us know if you are seeing this problem surface when you execute via one of the following means ?
If you are not seeing this problem through these means, but encountering this problem when only run via IntelliJ, then you may have to take this up with IntelliJ by logging a bug here
Looking at the codebase here it looks like there's perhaps a race condition of some sort.
@krmahadevan I tried you suggestion and it did work there. It is problem of IntelliJ TestNG plugin. I will report a bug for this.
@prasanta-biswas - Can we close off this issue in that case ?
@prasanta-biswas For reference, could you provide the link to the JetBrains issue?
@juherr here
6.9.10
Expected behavior
All test cases should always pass.
Actual behavior
Sometimes all test cases pass and sometimes some of them fails due to java.lang.IndexOutOfBoundsException
Is the issue reproductible on runner?
Test case sample
I am running the following testng suite:
Sometimes i do not get any error and all test cases pass and sometimes some of the test cases fail. Here is the full output:
I don't understand why this is happening. I have attached the full project. Run it in IntelliJ with TestNG plugin. Any suggestion? TestNGGroups.zip