Are there any tools for automatically generating Java code for screen scraping
Is there a way of browsing a web site through a proxy and autogenerating Java code (using HtmlClient) that can pla开发者_高级运维y back the requests?
Take a look at Selenium. You can use the Selenium IDE to record a session, and then choose use the "Export" menu item to export it to Java tests. You can then use the Java Client Driver to run the tests.
Not sure what your code generation needs are. Have you looked at Apache JMeter that records test cases through a proxy and also provides interfaces for you to generate your own data.
精彩评论