473,388 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Web testing framework?


Anybody know about a Python library for testing websites? I'm
thinking of something like a scriptable browser, where you could tell
it to browse to a certain URL, check for the existence of certain text
in a page, follow a certain link, etc.

I've begun writing my own (because it's so easy to do in Python), but
wondering if there's anything out there like this.

Thanks!
Robb
Jul 18 '05 #1
2 1556
Robb Shecter wrote:
Anybody know about a Python library for testing websites?


http://www.python.org/pypi?:action=d...&version=1.3.8

'''
Webunit is a framework for unit testing websites:

- Browser-like page fetching including fetching the images and stylesheets
needed for a page and following redirects
- Cookies stored and trackable (all automatically handled)
- HTTP, HTTPS, GET, POST, basic auth all handled, control over expected
status codes, ...
- DOM parsing of pages to retrieve and analyse structure, including simple
form re-posting
- Two-line page-fetch followed by form-submit possible, with error checking
- Ability to register error page content across multiple tests
- Uses python's standard unittest module as the underlying framework
- May also be used to regression-test sites, or ensure their ongoing
operation once in production (testing login processes work, etc.)
'''
Richard

Jul 18 '05 #2
On Mon, 2004-05-17 at 20:23, Robb Shecter wrote:
Anybody know about a Python library for testing websites? I'm
thinking of something like a scriptable browser, where you could tell
it to browse to a certain URL, check for the existence of certain text
in a page, follow a certain link, etc.


You should look at Python Browsing Probe, <http://pbp.berlios.de/>. It's
a fairly new project but it sounds like it already does exactly what you
want, and more. From the website:

"PBP is a web test tool based on John J. Lee's mechanize. It
exposes the browser functionality at the level of a shell-like
interpreter so that testers can quickly write tests in a simple
language designed specifically for that purpose. Anyone familiar
with a command line should be able to write test scripts for
even the most complex web applications with PBP."
Cheers, Matt

--
Matt Goodall, Pollenation Internet Ltd
w: http://www.pollenation.net
e: ma**@pollenation.net

Any views expressed are my own and do not necessarily reflect
the views of my employer.
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Peter Rilling | last post by:
Does VS.NET 2005 Professional support integrated unit testing, or is that only with the team system?
1
by: tomjbr.32022025 | last post by:
Can anyone recommend a good framework (preferably open source) that can be used for database testing ? The thing I want to be able to do is the following: (1) Define the expected database...
58
by: nw | last post by:
Hi, I have been asked to teach a short course on testing in C++. Until now I have used my own testing classes (which from what I've seen seem similar to the boost unit testing classes)....
2
by: gamesforums | last post by:
Hi! I've been programming in VB.Net and done testing with TypeMock and MbUnit (Testdriven.net) for about 2months now at work. I can see that my testing skills and particular my knowledge about...
5
by: Zhanyong | last post by:
Hi, We are glad to announce that today we have open-sourced Google C++ Testing Framework (http://code.google.com/p/googletest/), a library that helps you write better C++ tests. You can read...
0
by: Matthew Fitzgibbons | last post by:
I'm by no means a testing expert, but I'll take a crack at it. Casey McGinty wrote: I've never run into this. Rule of thumb: always separate software from hardware. Write mock classes or...
2
by: mo.sparrow | last post by:
Typemock Isolator – A powerful mocking framework for .NET unit testing and Test Driven Development (in Visual Studio). http://www.typemock.com/learn_about_typemock_isolator.html NUnit - A...
10
by: Brendan Miller | last post by:
What would heavy python unit testers say is the best framework? I've seen a few mentions that maybe the built in unittest framework isn't that great. I've heard a couple of good things about...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.