plone / plone.app.robotframework

Provides Robot Framework compatible resources and tools for writing functional Selenium tests (including acceptance tests) for Plone CMS and its add-ons.
https://docs.plone.org/external/plone.app.robotframework/docs/source/index.html
11 stars 17 forks source link

Keyword not found for mutliple products #36

Closed fkubis closed 9 years ago

fkubis commented 9 years ago

Running test for more then one product at the same time fails.

Example:

$ bin/test -s my.product 
...
Ran 3 tests with 0 failures and 0 errors in 28.917 seconds

$ bin/test -m my.*
Running my.core
...
Ran 31 tests with 0 failures and 0 errors in 3 minutes 26.167 seconds
...

Running my.product
...
AssertionError: Parent suite setup failed:
No keyword with name 'Enable autologin as' found.
datakurre commented 9 years ago

Sounds like a test layer order issue in some of the products' test fixture. So that some teardown after AUTOLOGIN_LIBRARY_FIXTURE setup resets the Plone sandvox and removes the helper required for autologin keyword. Look closer into setup and teradown messages and maybe you can pick the teardown causing the issue.

fkubis commented 9 years ago

Fixed it, the layerorder was wrong. Thanks for your help.