36536272ff
This is a patch to start work on re-writing the integration tests using pytest syntax and several improvements, as proposed on the upstream meeting, and summarized at https://etherpad.opendev.org/p/horizon-pytest The new tests are to eventually replace the existing integration tests. At the moment they don't run automatically, you have to explicitly run them using tox or pytest. When the new tests are complete, we will switch to them on the gate. Change-Id: Iea38e4f9771ff3cae7ae8675863e9c488f3f6d8a
Horizon Integration Tests
Horizon's integration tests treat Horizon as a black box.
Running the integration tests
Set up an OpenStack server
Prepare the configuration file at local-horizon.conf if you need to change the default configurations. Note that horizon.conf can be used for the same purpose too from the historical reason.
You can generate a sample configuration file by the following command:
$ oslo-config-generator \ --namespace openstack_dashboard_integration_tests --output-file openstack_dashboard/test/integration_tests/horizon.conf.sample
Run the tests. :
$ tox -e integration
More information
https://wiki.openstack.org/wiki/Horizon/Testing/UI
https://wiki.mozilla.org/QA/Execution/Web_Testing/Docs/Automation/StyleGuide#Page_Objects