DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39092>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39092 ------- Additional Comments From [EMAIL PROTECTED] 2006-03-25 13:48 ------- Created an attachment (id=17978) --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17978&action=view) A jmx file I used for testing the combination of BeanShell Sampler and htmlparser1.6 Incidentally, I would like to show how valuable the combination of htmlparser1.6 and BeanShell Sampler is. The attached jmx file demonstrates it. This jmx accesses www.apache.org and retrieve link-tags by this beanshell codes: parser = new Parser(); parser.setInputHTML(new String(ctx.getPreviousResult().getResponseData(), "iso-8859-1")); // pickup apache sites shown on the left. aTags = parser.parse(new AndFilter(new TagNameFilter("td"), new HasAttributeFilter("class", "navleft"))) .extractAllNodesThatMatch(new LinkRegexFilter("http://.*/"), true); # htmlparser's NodeFilters are very cool! and after that, put them into variables: for(i = 0; i < aTags.size() && i < 10; ++i) { href = aTags.elementAt(i).getAttribute("href"); server = href.substring("http://".length(), href.length() - 1); log.info("The server of found site is : " + server); vars.put("SITES_SERVER_" + (i + 1), server); } and ForEach Controller and parameterized HTTP Sampler calls each retrieved URL. The above is only an example, this process has unprecedented flexibility, maintainability and easiness to correlate. It hasn't been provided by LoadRunner/Rational or any other test tool! I'm so grateful to the developers of htmlparser and BeanShell Sampler. Really Exciting! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]