svn commit r44030 - trunk/commons/qa/web-test-framework/mashup/lib

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit r44030 - trunk/commons/qa/web-test-framework/mashup/lib

Yumani Ranaweera
Author: yumani
Date: Sun Aug 23 23:56:14 2009
New Revision: 44030
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=44030

Log:
adding a service to test scraper host object.

Added:
   trunk/commons/qa/web-test-framework/mashup/lib/scraper.js

Added: trunk/commons/qa/web-test-framework/mashup/lib/scraper.js
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/mashup/lib/scraper.js?pathrev=44030
==============================================================================
--- (empty file)
+++ trunk/commons/qa/web-test-framework/mashup/lib/scraper.js Sun Aug 23 23:56:14 2009
@@ -0,0 +1,17 @@
+function scraperConfig()
+{
+var config =
+<config>
+<var-def name='response'>
+<html-to-xml>
+<http method='get' url='http://ww2.wso2.org/~builder/'/>
+</html-to-xml></var-def>
+</config>;
+
+var scraper = new Scraper(config);
+var result = scraper.response;
+var resultXML = new XML(result.substring(result.indexOf('?>') + 2));
+return resultXML;
+}
+
+

_______________________________________________
Commons-dev mailing list
[hidden email]
https://wso2.org/cgi-bin/mailman/listinfo/commons-dev