You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently latest surefire plugin (version 2.17) is using deprecated TestNG configure (Map) method in which Map argument is converted to CommandLineArgs. Unfortunately the suitethreadpoolsize parameter is missing and CommandLineArgs.SUITE_THREAD_POOL_SIZE is not set and not executed.
The following fragment of code placed in org.testng.TestNG.java in method configure(Map cmdLineArgs) will resolve this issue:
Object suiteThreadPoolSize = cmdLineArgs.get(CommandLineArgs.SUITE_THREAD_POOL_SIZE);
if (null != suiteThreadPoolSize) {
if (suiteThreadPoolSize instanceof String){
result.suiteThreadPoolSize=Integer.parseInt((String) suiteThreadPoolSize);
}
if (suiteThreadPoolSize instanceof Integer){
result.suiteThreadPoolSize=(Integer) suiteThreadPoolSize;
}
}
The text was updated successfully, but these errors were encountered:
Currently latest surefire plugin (version 2.17) is using deprecated TestNG configure (Map) method in which Map argument is converted to CommandLineArgs. Unfortunately the suitethreadpoolsize parameter is missing and CommandLineArgs.SUITE_THREAD_POOL_SIZE is not set and not executed.
The following fragment of code placed in org.testng.TestNG.java in method configure(Map cmdLineArgs) will resolve this issue:
Object suiteThreadPoolSize = cmdLineArgs.get(CommandLineArgs.SUITE_THREAD_POOL_SIZE);
if (null != suiteThreadPoolSize) {
if (suiteThreadPoolSize instanceof String){
result.suiteThreadPoolSize=Integer.parseInt((String) suiteThreadPoolSize);
}
if (suiteThreadPoolSize instanceof Integer){
result.suiteThreadPoolSize=(Integer) suiteThreadPoolSize;
}
}
The text was updated successfully, but these errors were encountered: