Map<String, List<String>> qunitSuiteNameTestsHM = new LinkedHashMap<String, List<String>>();
final TestMethod[] qunitTestMethods = suite.getTestMethods();
if (!ArrayUtils.isEmpty(qunitTestMethods)) {
PhantomJSDriver driver = new PhantomJSDriver(ResolvingPhantomJSDriverService.createDefaultService(),
DesiredCapabilities.phantomjs());
for (TestMethod method : qunitTestMethods) {
if (!StringUtils.isEmpty(method.getQUnitTestSuiteFilePath())) {
qunitSuiteNameTestsHM.put(method.getQUnitTestSuiteFilePath(), new ArrayList<String>());
final String qunitTestFilePath = (new StringBuilder()).append(QUnitConstants.TMP_FOLDER).append("/")
.append(archive.getName()).append("/").append(method.getQUnitTestSuiteFilePath()).toString();
URL url = new File(qunitTestFilePath).toURI().toURL();
driver.get(url.toExternalForm());
@SuppressWarnings("unchecked")
List<String> qunitTestList = (List<String>) driver.executeScript("return window.arquillianQUnitTests");
if (!CollectionUtils.isEmpty(qunitTestList)) {
for (String moduleTestNameStr : qunitTestList) {