Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7249
| From | Tim <jtim.arnold@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: simple web/html testing |
| Date | 2011-06-08 10:59 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <dee5b311-d703-44a8-95c2-e328bb79baa1@s16g2000prf.googlegroups.com> (permalink) |
| References | <cde90062-8781-4036-ae38-30b099ae3386@glegroupsg2000goo.googlegroups.com> |
On Jun 8, 9:57 am, Santi <santi...@gmail.com> wrote: > For static html testing, I'd avoid using Selenium. Even though Selenium is *the* tool for RIA and javascript intensive environments, feels like bringing up a browser with all the coordination and resources that it takes just to crawl the website and find 404s is an overkill. > > What we implemented for doing that is just a simple crawler based on urllib: > > < nice code snipped > > > Hope this helps > Hi, Yes, Santi that does help, a lot. And Burhan thanks--I see how I can use selenium for broken links, but for now at least, I'm going to write my own tests for the static html. After hours of searching and reading, I think my direction is to use Jenkins and Nose together so I can have centralized control over my test runs along with nice reports. I may write a Nose plugin later on for static html, but for now I'll just write simple tests and see how that goes. I don't see that anyone is using nose in this non-standard way (on static html rather than on python code), but I so far I don't see any reason why it won't work. Santi, you gave me a start with that code--I can rewrite that as a nose test and execute it with Jenkins and the broken-link portion of the tests should be done. Does that sound appropriate for my use-case (jenkins/nose-> static html)? The testing is for a large set of documentation that is built daily. thanks again, --Tim
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: simple web/html testing Santi <santiycr@gmail.com> - 2011-06-08 06:57 -0700 Re: simple web/html testing Tim <jtim.arnold@gmail.com> - 2011-06-08 10:59 -0700
csiph-web