Ticket #230 (new defect)
Test-Harness für funktionale Tests
| Reported by: | fl | Owned by: | csenger |
|---|---|---|---|
| Priority: | blocker | Milestone: | eidg-2 |
| Component: | infrastructure | Keywords: | |
| Cc: | Estimated Hours: | 16 | |
| Add Hours to Ticket: | 6 | Billable?: | no |
| Total Hours: | 12.0 |
Description
- 2days of Peace, Love and Functional Testing
Change History
Note: See
TracTickets for help on using
tickets.

Added first functional tests with zope.testbrowser in the "feature-zope-testbrowser" branch.
Currently zope.testbrowser 4.0.2 ( http://pypi.python.org/pypi/zope.testbrowser) does not support extra_environ used by WebTest? and the repoze.who-testutil package ( http://code.gustavonarea.net/repoze.who-testutil/). repoze.who-testutil is a dependency of repoze.what and fakes authentification with an wsgi environment variable "REMOTE_USER". This is activated/deactivated in test.ini/.config.middleware ("skip_authentication = True") and removes the normal authentication with repoze.who-friendlyform/cookies.
This is neat in tests as an alternative to clicking through the login process.
I've submitted a patch for zope.testbrowser and the 4.0.3 release of testbrowser should be usable out of the box. A modified source egg with the required additions is available from http://downloads.liqd.net/dist/zope.testbrowser-4.0.3dev.tar.gz