Ticket #2934 (new enhancement)
Webtests for CKAN
Reported by: | Dominik | Owned by: | |
---|---|---|---|
Priority: | awaiting triage | Milestone: | |
Component: | ckan | Keywords: | webtest |
Cc: | Repository: | ckan | |
Theme: | none |
Description
The tests in CKAN only test single pages (functional tests) or single methods (unit tests). In order to make sure that the whole system still works as expected, we need tests that cover whole processes.
An example user story to be tested would be: "As a user with create permissions I want to be able to log in, create a new resource, save it and then make sure that it is in the system." or: "As a user I want to use the search functionality and open a resource from the search page."
These user stories require a different testing system with interaction and processes.
Change History
comment:2 Changed 20 months ago by dread
The functional tests actually do cover a logged in person editing a dataset and then checking it displays correctly in the view page again.
The webtest framework we use in CKAN has form filling and link click() function which allows navigation between pages like you describe these other ones having too.
Having said that, there is no reason why a newer library shouldn't be introduced if webtest is not sufficient. And if there are stories without tests then it would be good to add them.
This looks promising but seems to be discontinued: http://twill.idyll.org/python-api.html