I’d like to use Selenium for creating simple functional tests against Plone add-ons. The main driver here is that non-programmers can create and understand test cases with some effort, because they see in a web browser what’s happening. What is the recommended best practice to
-
The test case prepares Plone site environment where the test will be run (installs add-ons, mocks up mail host, creates sample content)
-
How to run Plone functional test case to the point you can start a Selenium recording in a browser and how to open a browser with recording enabled?
-
How later run the recorded test output from Python code?
Are there other test recording frameworks out there which you combine with Plone? Able to tests against Javascripted UI is a requirement.
plone.app.testing comes with seleniumtestlayer since 4.1.
Here is my own more sophisticated helper code:
“””
(Not on github yet)