}
private SahiTestSuite getPreconfiguredBrowserSuite(final HttpRequest request) {
SahiTestSuite suite = null;
BrowserTypesLoader browserLoader = new BrowserTypesLoader();
BrowserType browserType = browserLoader.getBrowserType(request);
Session session = request.session();
String suitePath = request.getParameter("suite");
String base = request.getParameter("base");
boolean isSingleSession = "true".equals(request.getParameter("useSingleSession"));
final int threads = getThreads(request.getParameter("threads"), browserType.capacity());
// launches browser with pre configured browser settings
if(browserType != null){
suite = prepareSuite(suitePath, base, browserType.path(), session.id(), browserType.options(),
browserType.processName(), (""+threads), browserType.useSystemProxy(), isSingleSession, request);
}
return suite;
}