c573b5b316
This change is similar to the change that introduced decorators for binding table-level and row-level actions to real table buttons - this time for forms. Its aim is to provide means to reference a form field in test using a name different from the one that exists in real html. Now it is possible to provide a dictionary for simple FormRegion, where key is the name to be used in test and the value is used for binding this name to a real html field widget. Also it is feasible to provide values other than strings in that dictionary - in this case they are mean to be a Python class. This Python class will be initialized as any BaseRegion is usually initialized and then the value's key will be used for referencing this object. This is useful when dealing with non-standard widgets in forms (like Membership widget in Create/Edit Project form or Networks widget in Launch Instance form). The old syntax for fields names in tests (the tuple of strings) is still compatible with new FormRegion-s. It is treated as we had simply used the same name both for referencing field and for binding it to a real widget. Changing TabbedForm region's tabs to be referenced by name instead of index is out of the scope of this change, but should be done in future. If not done, we're going to encounter problems with different tabs being shown or not shown based on RBAC/ enabled settings/ etc. Implements blueprint: integration-tests-improvements-part1 Change-Id: If3658119176d03dcd0742101ae2922f8e61ba757 |
||
---|---|---|
.. | ||
pages | ||
regions | ||
tests | ||
__init__.py | ||
basewebobject.py | ||
config.py | ||
decorators.py | ||
helpers.py | ||
horizon.conf | ||
README.rst | ||
webdriver.py |
Horizon Integration Tests
Horizon's integration tests treat Horizon as a black box.
Running the integration tests
Set up an OpenStack server
Update the configuration file at horizon.conf
Run the tests. :
$ ./run_tests.sh --integration
More information
https://wiki.openstack.org/wiki/Horizon/Testing/UI
https://wiki.mozilla.org/QA/Execution/Web_Testing/Docs/Automation/StyleGuide#Page_Objects