morebot-develop Mailing List for morebot
Brought to you by:
larham
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Larry H. <sou...@co...> - 2005-02-24 19:05:24
|
When spidering, there is a potential drawback to recursion because of the potentially huge number of future links after whatever is given as the starting point(s). Therefore, in the design of morebot, the loop at bottom is used within main(). The idea is to avoid recursion, but this also means that the suite is not self-contained and otherwise easily amenable to running in JUnit's regular runner. I suppose that this could be rewritten as part of a "wrapper" JUnit test; let me know if you find success in doing so! larry MorebotTestRunner runner = new MorebotTestRunner(new MorebotResultPrinter(state)); runner.doRun(test.suite()); // each test may add links to explore; we avoid recursion // by handling the links here, with a special, accumulating test runner while (state.hasMoreLinks()) { List list = new ArrayList(state.getLinkTests()); for (Iterator iterator = list.iterator(); iterator.hasNext();) { CrawlTest crawltest = (CrawlTest) iterator.next(); runner.doRun(crawltest); } state.getLinkTests().removeAll(list); } At 09:53 AM 2/24/2005, Dave Bender wrote: >Is it possible to run a morebot job in the JUnit GUI interface? It seems like it should be do-able, but how? > >Dave > |
From: Dave B. <da...@be...> - 2005-02-24 17:53:35
|
Is it possible to run a morebot job in the JUnit GUI interface? It seems like it should be do-able, but how? Dave |
From: Larry H. <sou...@co...> - 2004-11-19 02:01:01
|
Just some small improvement in diagnostic output. Download is here: http://sourceforge.net/project/showfiles.php?group_id=78092 larry |