4 Summary: Website unit/regression testing tool
5 Summary(pl): Narzêdzie do testowania modu³ów sieci Web
10 Group: Libraries/Python
11 Source0: http://www.mechanicalcat.net/tech/webunit/%{module}-%{version}.tar.gz
12 # Source0-md5: 97b9e6b5149dadce48b86adbf2db3b0a
13 URL: http://www.mechanicalcat.net/tech/webunit/
14 BuildRequires: python-devel >= 2.3
15 Requires: python >= 2.3
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 webunit test your websites with code that acts like a web browser.
22 Features in a nutshell:
24 1. Browser-like page fetching including fetching the images and
25 stylesheets needed for a page and following redirects
26 2. Cookies stored and trackable (all automatically handled)
27 3. HTTP, HTTPS, GET, POST, basic auth all handled, control over
28 expected status codes, ...
29 4. DOM parsing of pages to retrieve and analyse structure, including
30 simple form re-posting
31 5. Two-line page-fetch followed by form-submit possible, with error
33 6. Ability to register error page content across multiple tests
34 7. Uses python's standard unittest module as the underlying framework
37 webunit u¿ywany jest do testowania stron WWW przy pomocy kodu
38 symuluj±cego dzia³anie przegl±darki internetowej.
42 1. Pobieranie stron WWW symuluj±ce dzia³anie przegl±darki
43 internetowej, pobieranie obrazków i styli, pod±¿anie za
45 2. Automatyczna obs³uga ciasteczek (cookies).
46 3. Obs³uga protoko³ów HTTP, HTTPS, metod GET, POST, uwierzytelniania,
47 kontrola oczekiwanych kodów statusu.
48 4. Parsowanie struktury DOM stron w celu pobrania i analizy strony,
49 tak¿e w celu ³atwego odsy³ania formularzy.
50 5. Dwutorowe pobieranie strony koñczone wysy³k± formularza wraz ze
52 6. Mo¿liwo¶æ okre¶lenia zawarto¶ci strony z b³êdem przy przechodzeniu
54 7. U¿ycie standardowego modu³u pythona unittest jako zasadniczego
58 %setup -q -n %{module}-%{version}
61 python setup.py build_ext
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
67 python setup.py install \
68 --root=$RPM_BUILD_ROOT \
69 --install-lib=%{py_sitescriptdir} \
72 find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc CHANGES.txt demo README.txt run_tests
80 %{py_sitescriptdir}/webunit