throw SkipException in SuiteListener:onStart will hang start from 7.9.0 #3116
Replies: 3 comments 1 reply
-
I implemented the interface IAlterSuiteListener, and clear the tests conditionally. |
Beta Was this translation helpful? Give feedback.
-
hi Songbo Wang, I am experiencing same issue while executing my automation scripts. Can you plz provide a sample code snippet or please provide more details how you resolved this issue? Thanks in Advance. |
Beta Was this translation helpful? Give feedback.
-
I created a listener to implement interface IAlterSuiteListener
|
Beta Was this translation helpful? Give feedback.
-
We have lots of suites, and we use a centralized testng.xml with
Sometimes we want to skip some suites conditionally, so I add some logic in SuiteListener:onStart, and throw SkipException on some conditions.
Before release 7.8.0, this works.
But start from 7.9.0, there is a NPE error on thread, and the main job just hang there:
What is the suggested way to skip a suite conditionally?
I have append a simple project to reproduce the failures.
just run
mvn test
in the project.test.zip
Beta Was this translation helpful? Give feedback.
All reactions