4 Summary: Website unit/regression testing tool
5 Summary(pl.UTF-8): 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: rpmbuild(macros) >= 1.710
15 BuildRequires: python-devel >= 1:2.3
16 BuildRequires: python-modules
17 BuildRequires: rpm-pythonprov
18 Requires: python >= 2.3
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 webunit test your websites with code that acts like a web browser.
25 Features in a nutshell:
27 1. Browser-like page fetching including fetching the images and
28 stylesheets needed for a page and following redirects
29 2. Cookies stored and trackable (all automatically handled)
30 3. HTTP, HTTPS, GET, POST, basic auth all handled, control over
31 expected status codes, ...
32 4. DOM parsing of pages to retrieve and analyse structure, including
33 simple form re-posting
34 5. Two-line page-fetch followed by form-submit possible, with error
36 6. Ability to register error page content across multiple tests
37 7. Uses python's standard unittest module as the underlying framework
39 %description -l pl.UTF-8
40 webunit używany jest do testowania stron WWW przy pomocy kodu
41 symulującego działanie przeglądarki internetowej.
45 1. Pobieranie stron WWW symulujące działanie przeglądarki
46 internetowej, pobieranie obrazków i styli, podążanie za
48 2. Automatyczna obsługa ciasteczek (cookies).
49 3. Obsługa protokołów HTTP, HTTPS, metod GET, POST, uwierzytelniania,
50 kontrola oczekiwanych kodów statusu.
51 4. Parsowanie struktury DOM stron w celu pobrania i analizy strony,
52 także w celu łatwego odsyłania formularzy.
53 5. Dwutorowe pobieranie strony kończone wysyłką formularza wraz ze
55 6. Możliwość określenia zawartości strony z błędem przy przechodzeniu
57 7. Użycie standardowego modułu pythona unittest jako zasadniczego
61 %setup -q -n %{module}-%{version}
64 python setup.py build_ext
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
71 --install-lib=%{py_sitescriptdir} \
74 find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc CHANGES.txt demo README.txt run_tests
82 %{py_sitescriptdir}/webunit