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